Create a chart card from a query or your own data
Ask in plain words («blue dollar this week», «standings last Formula 1 race», «elections in Brazil», «Milei vs Bullrich coverage», «news in The Guardian this week», «prices in my catalog» with index). It first works out what you expect to see (interpretation, with other readings you can ask for), then gets that data: the finishing positions of the latest race, poll or result shares, wins in the season, coverage, tone, outlets, a timeline or the figures the articles publish, verified against the sources. It never fails while there are articles on the topic: if the exact data is not published or takes too long, it shows the closest thing (rung: exact, partial, related, coverage, stories) with a warning, and a stored chart keeps improving until the exact data arrives. With stream: true, server-sent events: step, result and improved. Or send data (series, events, or columns and rows) and it picks the chart, sorts, summarizes and titles it. type forces one of 12 types while the data allows. From a query it costs its search (the mode it ended in, one per compared name; free if cached) plus the chart add-on; from your data, the data price (see x-pricing, per_1000_charts). The same request within 10 minutes returns the same card, free. No articles at all: 422 insufficient_data, not billed.
Request
- Base URL: https://api.typesearch.ai
- URL: https://api.typesearch.ai/v1/charts
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Response
With plan_only, store: false, or the same request within 10 minutes (cached: true). With stream: true, text/event-stream: step, result (a Chart), improved (a Chart) or error (a Problem).
Changes
No recorded changes to this operation across all 1 revision of this API.