Charts

Ask in plain words and get a finished chart card, with the right chart, key figures, a title that states the finding and the source of every value.

POST /v1/charts turns a question in plain words into a chart card that already made the data-visualization decisions: which chart, what to measure, how to aggregate it (totals, shares, weekly grouping, a moving average, a base-100 index), the key figures on top, a title that states the finding ("The blue dollar rose 4.1% this week"), annotations, and the source of every value. You can also send your own data and get the same card.

From a query, it first works out what you expect to see and then gets that data: "standings last Formula 1 race" finds the latest race and returns its finishing positions, "F1 winners" counts wins per driver this season, "elections in Brazil" shows poll shares per candidate, and "news in Diario Ejemplo this week" shows what that outlet published, by section.

  • The chart that tells it. One of 12 types, picked for the data. Force another and it's respected while the data allows it.
  • Numbers you can check. A figure, a position or a poll share is found in what was published, checked against its source, and comes with the articles it came from. It is never invented.
  • Always something to show. While there are articles on the topic, you get a chart. If the exact data isn't published or takes too long, you get the closest thing, and the response says so.
  • Ready to publish. An iframe that adapts to its width, a PNG at 2× and an SVG, in four themes, public by id. From the API, the MCP server or the dashboard's playground.
  • Fast. A card is drawn in under a millisecond on our side. Coverage charts come back in about a second; charts with figures, in 2 to 5 seconds. Exact data that has to be read from the articles can take longer, so a chart from a query answers within about 10 seconds with the best it has, and a stored chart keeps improving after that.

From a query

curl https://api.typesearch.ai/v1/charts \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "blue dollar this week" }'

It answers 201 with the card:

201 Created (abridged)
{
  "id": "chart_8k2m9q4x7w1p3n5z",
  "object": "chart",
  "type": "line",
  "theme": "light",
  "locale": "en",
  "chart": {
    "type": "line",
    "title": "The blue dollar rose 4.1% this week",
    "subtitle": "Selling rate, in pesos · Sep 19–25",
    "x": { "kind": "time", "granularity": "day" },
    "y": { "format": "currency", "currency": "ARS", "label": "Selling" },
    "series": [
      {
        "name": "Selling",
        "points": [
          { "x": "2026-09-19", "y": 1215, "sources": [2] },
          { "x": "2026-09-24", "y": 1250, "sources": [1] },
          { "x": "2026-09-25", "y": 1265, "sources": [0, 1] }
        ]
      }
    ],
    "kpis": [
      { "label": "Latest", "value": 1265, "change": { "value": 4.1, "percent": true } },
      { "label": "High", "value": 1265 },
      { "label": "Low", "value": 1215 }
    ]
  },
  "compatible_types": ["line", "area", "bar", "kpi", "table"],
  "plan": {
    "recipe": "figure_trend",
    "type": "line",
    "confidence": 0.92,
    "alternatives": [
      { "type": "area", "probability": 0.3 },
      { "type": "bar", "probability": 0.22 },
      { "type": "kpi", "probability": 0.14 }
    ],
    "topic": "the blue dollar",
    "needs": { "queries": ["blue dollar this week"], "mode": "fast", "days": 7, "min_points": 3, "max_results": 50 }
  },
  "interpretation": { "label": "The blue dollar over time", "confidence": 1, "alternatives": [] },
  "rung": "exact",
  "improving": false,
  "sources": [
    {
      "url": "https://diario.example/economia/dolar-blue-hoy",
      "title": "El dólar blue cerró a 1.265 pesos",
      "source": "Diario Ejemplo",
      "published_at": "2026-09-25T18:10:00Z"
    },
    {
      "url": "https://noticias.example/mercados/cotizacion",
      "title": "Cotización del dólar: el blue tocó su máximo del mes",
      "source": "Noticias Ejemplo",
      "published_at": "2026-09-24T17:02:00Z"
    },
    {
      "url": "https://cronica.example/economia/blue-arranca-la-semana",
      "title": "El blue arranca la semana en 1.215 pesos",
      "source": "La Crónica Demo",
      "published_at": "2026-09-19T15:40:00Z"
    }
  ],
  "embed_url": "https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z",
  "image_url": "https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z.png",
  "svg_url": "https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z.svg",
  "svg": null,
  "created_at": "2026-09-26T14:02:11.482Z",
  "expires_at": "2026-12-25T14:02:11.482Z",
  "cached": false,
  "usage": { "cost_usd": 0.0019, "mode": "fast", "queries": 1, "duration_ms": 2840 },
  "warnings": []
}
  • chart: what is drawn. The series, the key figures on top (kpis), the annotations, how each axis is formatted, and a title that states the finding (unless you send your own title).
  • plan: what was measured (recipe), the chart it chose, and alternatives: other types that fit, which you can switch to for free with PATCH.
  • compatible_types: every type this data supports.
  • interpretation: what we understood you expect to see, and other readings you can ask for. See What we understood.
  • rung and improving: how close the chart is to what you asked (exact here), and whether a better one is still on its way. See The closest thing.
  • sources and each point's sources: the articles behind the chart, and the indexes in sources where each value was published.
  • embed_url, image_url and svg_url: public by id, no key needed. See Embed it and PNG and SVG.
  • usage.cost_usd: what the request was billed. See Pricing.

Everything you know from search narrows a chart too: days, published_after, published_before, countries, languages, include_domains, exclude_domains and timezone. When the query doesn't name the things to compare with "vs", pass them in compare (2 to 5).

What you can ask

We read your query, work out what you expect to see and pick a recipe: what to measure, the chart that tells it, the days to look at and the cheapest mode that gets the data (mode: "auto", the default).

recipeAsk forWhat it measuresChartDaysMode
data"standings last Formula 1 race", "F1 winners", "elections in Brazil"The data itself: the finishing positions of the latest race, wins per driver this season, poll or result shares per candidate. Each value is checked against the articles that published it.table for positions, bar_horizontal or bar for counts and sharesSet by the question: the latest event, the seasonfast, or normal when it reads the articles
series"euro vs Argentine peso this month", "blue dollar in September 2026", "country risk from the 1st to the 15th"A figure over time: the rate day by day, read in the articles that publish it (one per day), each value checked against its source. vs between currencies is one exchange rate; "official vs blue" draws two lines.line, or kpi for today's valueThe period you name ("September 2026", "this month", "from the 1st to the 15th"), or 30 daysfast, or normal when it reads the articles
outlet"news in Diario Ejemplo this week"What that outlet published, by section, in percentages.bar_horizontal7, or since Monday for "this week"ultra
coverage"coverage of the Budget"Articles that mention the topic, per day, over the whole period. A clear peak is marked with that day's headline.area30ultra
coverage_compare"Milei vs Bullrich coverage over time"The same count for 2 to 5 names, one line each.line21ultra
share_of_voice"Milei vs Bullrich vs Kicillof coverage"Each name's share of the articles.donut30ultra
tone"tone of the coverage of the IMF"Positive, neutral and negative articles, relative to your query.donut14fast
tone_compare"tone of Milei vs Bullrich coverage"The same split, for each name.stacked_bar30fast
outlets"which outlets cover lithium"Articles per outlet.bar_horizontal30ultra
timeline"timeline of the dam case"The milestones of a story: the busiest day of each week, and the story most outlets told that day.timeline60fast
figure_trend"blue dollar this week"A figure the articles publish (a price, a rate, a poll), day by day.line, or kpi for "today"7fast
figure_compare"inflation" with compare: ["Chile", "Peru"]The latest published value of a figure, for each name.bar14fast
answersAny query, plus one typed question in questionsHow the answers split across the articles.donut7fast
index_prices"prices" with indexPrice per product, cheapest first (up to 12).bar_horizontalwhole indexfast
index_scatter"price and rating" with indexPrice against rating. Each dot's size is its number of reviews.scatterwhole indexfast
index_availability"availability" with indexProducts in stock, out of stock and on pre-order.donutwhole indexfast
index_brands"brands" with indexProducts per brand.donutwhole indexfast

When the exact data can't be shown, recipe can also be people (the names mentioned most on the topic) or stories (the most covered stories, in a table). See The closest thing.

  • Days. The defaults above apply unless a date in the query ("this week", "in August"), days, published_after or published_before sets the period.
  • Mode. Set mode to fix it. In auto, a figure chart that doesn't find enough figures in headlines and standfirsts reads the best articles (normal), and so does exact data that isn't in the headlines; the chart is billed in that mode. With mode set to ultra or fast, it never reads the articles.
  • Words first. When the query says it ("coverage", "tone", "which outlets", "timeline", "news in" an outlet, "vs"), the words decide (interpretation.confidence: 1). Otherwise we pick the most likely reading, return the others in interpretation.alternatives, and remember the reading for 7 days.
  • An outlet in the query. Name an outlet ("Milei in Diario Ejemplo") and the chart only counts what it published.
  • Custom index. With index (idx_…), the chart is built from the structured data each page of your custom index declares: price, rating, reviews, availability, brand.

A typed question makes an answers chart: how the articles answer it. One question per chart, with the same format as in structured output:

Request body
{
  "query": "the 2027 Budget",
  "questions": {
    "stance": {
      "type": "choice",
      "instructions": "What is the article’s stance on the budget?",
      "criteria": { "supportive": null, "critical": null, "neutral": "Reports without taking a side." }
    }
  }
}

What we understood

A query in words can mean more than one thing. interpretation says how we read it:

  • label: what we understood you expect to see, in words.
  • confidence: how sure we are of that reading, from 0 to 1.
  • alternatives: other readings of the same query, each with its probability.
curl https://api.typesearch.ai/v1/charts \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "Formula 1" }'
201 Created (abridged)
{
  "id": "chart_5r2k8w1m9q3x7v4n",
  "type": "table",
  "interpretation": {
    "label": "Finishing positions of the last Formula 1 race",
    "confidence": 0.64,
    "alternatives": [{ "label": "Wins per driver in the 2026 Formula 1 season", "probability": 0.36 }]
  },
  "rung": "exact",
  "improving": false
}

To chart another reading, send the same query with that alternative's label as interpretation:

curl https://api.typesearch.ai/v1/charts \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Formula 1",
    "interpretation": "Wins per driver in the 2026 Formula 1 season"
  }'

A label that isn't one of the readings of that query is ignored, and the query is read as usual. To see the reading and its alternatives before charting, send plan_only: true: it's free. interpretation is null for your own data, a custom index and a typed question, where there is nothing to interpret.

The closest thing

While there are articles on the topic, a chart from a query doesn't fail. If the exact data isn't published, can't be checked or takes too long, you get the closest thing we can show, and rung says how close it is:

rungWhat the chart showsWarning
exactWhat you asked for: the data itself, complete and checked against its sources, or the measure you named (coverage, when you asked for coverage).
partialA checked part of it, like the podium when the full classification isn't published.partial_data
relatedAnother view of the same question, like the names mentioned most on the topic.fallback
coverageThe coverage of the topic over time, or its timeline.fallback
storiesThe most covered stories on the topic, in a table.fallback

The warning's message says what was asked and what is shown instead. rung is null for your own data, a custom index and a typed question.

Still improving

A chart from a query answers within about 10 seconds with the best it has. If the exact data is still on its way, a stored chart comes back with improving: true and the improving warning, and we keep looking. When the data arrives, it replaces the chart in place: same id, and the embed and the image update themselves (within the 5 minutes they are cached). If it doesn't arrive, the chart stays as it is.

  • To know when it's done, poll GET /v1/charts/{id}: it shows improving: true until then. Or send stream: true and get the better chart as an improved event. See Stream the progress.
  • It isn't billed. You pay for the chart you got first, and the improvement is free.
  • Your changes win. If you change the chart with PATCH before the improvement arrives, your change stays and the improvement is dropped.
  • Without storing it (store: false) there is nothing to update later, so the request waits longer for the exact data before it answers.

Data checked recently comes back at once, with the verified_earlier warning saying the day it was checked.

How figures are found

A chart with figures (figure_trend, figure_compare) never makes a number up:

  • Verbatim. Numbers are found as written in the headlines, standfirsts and excerpts of the articles, with their currency or unit. Each one is then only confirmed, or discarded, as the value you asked for.
  • One value per day. Each point is the median of what was published that day, so two outlets with slightly different figures don't draw a zigzag. In a comparison, each name gets its latest published value.
  • A source for every point. Each point's sources lists indexes in the response's sources: the articles where that value was published. Show them in a tooltip or a footnote.
A point, and where it was published
{ "x": "2026-09-25", "y": 1265, "sources": [0, 1] }

If a publisher later asks not to be shown, its sources leave the card when it is served, and a point left without a source is hidden.

Standings, results and polls

A chart of the data itself (data) shows only the values it could check:

  • The event, resolved. "The last race" becomes the latest race that was actually run, and only articles from its days count, so the previous race doesn't leak in.
  • Read where it's published. It reads the articles that carry the data (and, for a season, its reference page), not just the headlines. Wins in a season are counted from the headlines that report each win, one per event.
  • Checked row by row. The name and the value have to be written in the article, and the value has to make sense (a position in the race, a share under 100%). When sources disagree, most of them win.
  • Nothing filled in. A row that can't be checked is left out. If some are missing, the chart is partial and says so.

In a table, each row's value is also in series, with the sources where it was published.

From your own data

Send data instead of query and you get the same card: we pick the chart (with type: "auto"), sort, summarize, add the key figures and write a title (unless you send title). It costs $0.30 per 1,000 charts. source sets the line in the footer.

Series

curl https://api.typesearch.ai/v1/charts \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "series": [
        {
          "name": "Subscribers",
          "points": [
            { "x": "2026-06-01", "y": 18200 },
            { "x": "2026-07-01", "y": 19650 },
            { "x": "2026-08-01", "y": 21400 },
            { "x": "2026-09-01", "y": 23900 }
          ]
        }
      ],
      "y": { "label": "Subscribers", "format": "number" }
    },
    "source": "Diario Ejemplo, internal data"
  }'
  • x is a date (2026-09-01) for a time axis, a number for a numeric one (a scatter), or text for categories. To say it yourself, set data.x.kind to time, category or number.
  • data.y formats the values: format (number, percent or currency, with currency: "USD"), unit, decimals, label, and higher_is_better: false when lower is better (a price): rankings then put the lowest first.
  • For a scatter, data.x_measure formats the x axis, each point's r sizes its dot and label names it.
  • role on a series (positive, neutral, negative, other) colors it as tone. highlight names the category to stand out.

Events

A list of dated events makes a timeline:

Request body
{
  "data": {
    "events": [
      { "date": "2026-07-30", "label": "Technical report on the dam leaks", "detail": "Diario Ejemplo" },
      { "date": "2026-08-06", "label": "The province halts construction" },
      { "date": "2026-08-19", "label": "The builder files an injunction", "end": "2026-08-22" }
    ]
  },
  "title": "The dam case, in three milestones"
}

Columns and rows

Request body
{
  "data": {
    "columns": [
      { "key": "model", "label": "Model" },
      { "key": "price", "label": "Price", "format": { "format": "currency", "currency": "USD" } },
      { "key": "rating", "label": "Rating", "format": { "decimals": 1 } }
    ],
    "rows": [
      { "model": "Ridgeline Trail 4", "price": 109, "rating": 4.6 },
      { "model": "Canyon Grip GTX", "price": 119, "rating": 4.4 }
    ]
  }
}
Limit
Series12, with up to 1,000 points each
Events50
Columns8
Rows100

With type: "auto", events make a timeline; columns and rows, a table; a numeric x, a scatter; dates, a line (a kpi for one or two points); several series of categories, a stacked_bar; percentages that add up to 100 in up to 6 parts, a donut; more than 7 categories, a bar_horizontal; fewer, a bar.

Chart types

type: "auto" (the default) picks the one that tells the data best. The other 12:

typeWhen auto picks itWhat the data needs
lineA figure over time, or several names over time.3 points in time or more.
areaCoverage over time: a volume.3 points in time or more.
barA few categories, or a figure compared across names.Up to 12 categories.
bar_horizontalRankings: outlets, prices, long names or more than 12 categories.One series of categories.
stacked_barEach category split into parts: tone by name.2 series or more, positive values, up to 12 categories.
pieParts of a whole.Positive values, 2 to 30 parts.
donutParts of a whole, with the total in the center: share of voice, tone, brands, availability.Positive values, 2 to 30 parts.
scatterTwo figures against each other: price and rating.A numeric x, 5 points or more.
funnelStages that shrink.One series of 3 to 7 categories that never grows.
timelineThe milestones of a story.Dated events.
kpiOne figure with its change: "today", "now".One point or more.
tableRows and columns.Always possible.

Forcing a type ("type": "donut") works while the data allows it. When it doesn't, the card is drawn with the closest type that fits and says so in warnings with chart_type_adjusted. compatible_types lists the types this data supports, best first.

The rules we apply

What someone who makes charts for a living would do, applied to every card. The same data always gives the same card.

  • Long daily series become weeks (past 45 days) or months (past 8 months), adding up counts and keeping the last value of a figure (grouped).
  • No dual axes. Lines on very different scales (more than 25 times apart) are compared as an index, base 100 (indexed).
  • Noisy daily series of three weeks or more get a 7-point moving average, with the raw series faint underneath (chart.smoothing).
  • Pies and donuts show at most 6 slices, with the rest in "Others", always last. Rankings show at most 12 bars; lines, areas and stacked bars, up to 6 series.
  • Rankings sort biggest first, or lowest first when lower is better: a price, inflation, country risk.
  • Long category names turn vertical bars into a horizontal ranking, so every label fits.
  • A log scale only on lines, and only when the values span more than 200 times. Never on bars.
  • Key figures on top: total, peak and daily average for coverage; latest (with its change), high and low for a figure.
  • The title states the finding: "Budget coverage peaked on Sep 10", "Milei gets 42% of the coverage", "The priciest models are not the best rated".

Themes

themeLooksFor
lightWhite and warm grays. The default.Apps, dashboards, docs.
darkNear black.Dark interfaces.
editorialWarm paper, print ink, serif figures.Media and blogs.
electricDeep blue gradient.Slides and landing pages.

The first series is always the typesearch electric blue, and the rest are told apart with color blindness too. Set theme when you create the chart, switch it for free with PATCH, or show one view in another theme with ?theme= on the embed or the image.

Embed it

embed_url is a page made to go in an iframe. It adapts to its width (under 480 px it switches to a compact layout), shows tooltips on hover and touch, weighs a few KB and loads nothing from third parties: the fonts are ours.

HTML
<iframe
  src="https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z"
  title="The blue dollar rose 4.1% this week"
  style="width: 100%; border: 0"
  height="440"
  loading="lazy"
></iframe>

The page tells its parent the height it needs, on load and on every resize, with { type: "typesearch:chart:resize", id, height }. Listen for it once and every chart on the page fits without scrollbars:

HTML
<script>
  window.addEventListener('message', (event) => {
    if (event.origin !== 'https://api.typesearch.ai') return;
    const data = event.data;
    if (!data || data.type !== 'typesearch:chart:resize') return;
    for (const frame of document.querySelectorAll('iframe')) {
      if (frame.contentWindow === event.source) frame.style.height = `${data.height}px`;
    }
  });
</script>

data.id is the chart id, if you'd rather match by it. Add ?theme=dark (or editorial, electric) to show it in another theme without making a new chart.

Embeds, images and SVGs are cached for 5 minutes, so a change made with PATCH shows up within that time. Each IP can load up to 600 per minute.

PNG and SVG

  • image_url (….png): the card at twice the resolution, for chat, email or slides. In Markdown: ![The blue dollar rose 4.1% this week](https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z.png).
  • svg_url (….svg): the vector card.
  • ?size=compact gives either one in the narrow layout, for phones and stories, and ?theme= in another theme: https://api.typesearch.ai/embed/chart_8k2m9q4x7w1p3n5z.png?size=compact&theme=electric.

Change a chart

PATCH /v1/charts/{id} switches the type, the theme, the title, the subtitle or the locale (en or es). It redraws from the same data, without searching again, and it's free. Pick the type from compatible_types. Without a title of your own, the title is rewritten for the new type and language.

curl -X PATCH https://api.typesearch.ai/v1/charts/chart_8k2m9q4x7w1p3n5z \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "area", "theme": "editorial" }'

It answers with the updated chart. The embed_url, image_url and svg_url stay the same.

List, get and delete

  • GET /v1/charts: your charts, newest first, limit at a time (up to 100). When has_more is true, pass next_before as before for the next page.
  • GET /v1/charts/{id}: one chart, with its data, plan and sources, and improving: true while it is still improving.
  • DELETE /v1/charts/{id}: deletes it ({ "id": "chart_…", "object": "chart", "deleted": true }). Its embed, image and SVG stop working.

Every key of your organization sees the same charts. Stored charts expire after 90 days on pay as you go and never on the monthly credit plan: expires_at says when, or null. See the reference.

See the plan first

plan_only: true returns what we understood (interpretation, with its alternatives) and the plan: the recipe, the chart type, its alternatives and what it would search (plan.needs: queries, mode, days, minimum points). It doesn't search or draw, and it's free. chart and id come back null.

Without storing it

store: false stores nothing: there is no id and no URLs, and the SVG comes in the response, in svg. It costs the same. To get the SVG with a stored chart too, add include_svg: true.

Stream the progress

Send stream: true and the response becomes a stream of Server-Sent Events: what it's doing while it works, the chart as soon as it's ready and, if the exact data arrives later, the better chart.

curl -N https://api.typesearch.ai/v1/charts \
  -H "Authorization: Bearer $TYPESEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "standings last Formula 1 race", "stream": true }'
EventdataWhen
step{ id, text, status, detail }A step starts (running: understanding the request, finding the event, reading the articles…) or ends (done, or failed before an error), with the same id.
resultA chart, like the 201 responseThe chart. If it isn't improving, the stream ends after it.
improvedA chart, like the 201 responseThe better chart, when the exact data arrives after result. The stream ends after it.
errorProblem detailsSomething failed, like 422 insufficient_data. The stream ends after it.

Here the finishing positions took longer than the deadline: the chart came back first with the names mentioned most (related), and then with the standings (exact), under the same id.

The raw stream
event: step
data: {"id":"chart-1","text":"Understanding the request","status":"running","detail":null}

event: step
data: {"id":"chart-1","text":"Understanding the request","status":"done","detail":null}

event: step
data: {"id":"chart-2","text":"Looking for: Finishing positions of the last Formula 1 race","status":"running","detail":null}

event: step
data: {"id":"chart-2","text":"Looking for: Finishing positions of the last Formula 1 race","status":"done","detail":null}

event: step
data: {"id":"chart-3","text":"Showing what is ready; still working on the rest","status":"running","detail":null}

event: step
data: {"id":"chart-3","text":"Showing what is ready; still working on the rest","status":"done","detail":null}

event: result
data: {"id":"chart_5r2k8w1m9q3x7v4n","object":"chart","type":"bar_horizontal","rung":"related","improving":true,…}

event: improved
data: {"id":"chart_5r2k8w1m9q3x7v4n","object":"chart","type":"table","rung":"exact","improving":false,…}

After a result with improving: true, the stream stays open for up to a minute waiting for improved. If it closes without one, the chart may still improve: GET /v1/charts/{id} tells you. Step text is meant to be shown to people and can change; use the event names in code. A request that isn't valid answers 400 as usual, without a stream. See Streaming for how search streams.

Errors and warnings

StatuscodeWhen
400invalid_requestNeither query nor data, or both; a field out of range; a PATCH with nothing to change. errors lists each field.
402insufficient_credits, spend_limit_reachedNo credit left, or the key reached its monthly limit.
404chart_not_foundNo chart with that id for your organization: it never existed, it was deleted or it expired.
422insufficient_dataFrom a query: no articles about the topic in the period. With index or questions: not enough data for the chart. Not billed.

From a query in words, a chart only fails for lack of data when there isn't a single article about the topic in the period. Anything less gets you the closest thing instead. Try more days or a broader query:

422
{
  "type": "urn:typesearch:error:insufficient_data",
  "status": 422,
  "code": "insufficient_data",
  "detail": "No articles about «the dam case» in this period. Try more days or a broader query. Not billed.",
  "request_id": "req_Vt4mQ8zK1pXa"
}

With a custom index or a typed question, detail says how many points the chart needed and how many it found.

Warnings don't stop the chart. They come in warnings, each with a code and a message:

codeWhat happened
chart_type_adjustedThe data doesn't fit the type you asked for: it was drawn with the closest one that does.
groupedA long daily series was grouped by week, month or year.
indexedSeries on very different scales were compared as an index, base 100.
partial_dataOnly part of the data you asked for could be checked: the chart shows that part (rung: "partial").
fallbackThe exact data isn't published, or couldn't be checked in time: the chart shows the closest thing (rung says which).
improvingWe're still looking for the exact data: the stored chart updates itself if it arrives.
verified_earlierThe data was checked recently and comes from then: the message says the day.

Pricing

A chart from a query costs its search, in the mode it needed and per query, plus $0.50 per 1,000 charts. With one query:

ModePer 1,000 chartsUsed by default for
ultra$1.50Coverage, share of voice, outlets.
fast$1.90Tone, timelines, figures, answers, custom index, and data found in the headlines, like wins in a season.
normal$2.70Figures, standings, results and polls, when it has to read the articles.
deep$6.10Only when you set it.

A chart that compares names searches one query per name: share of voice between three names in ultra costs three searches at $1.00 per 1,000, plus one add-on. Finding exact data can search in several languages or look up the event first: that is billed as one search. You pay for the chart you get, in the mode it ended in, even when it is the closest thing. From your own data, a chart costs $0.30 per 1,000. usage.cost_usd says what each one cost.

Free:

  • Every view of an embed, image or SVG.
  • GET, list, PATCH and DELETE.
  • The same request within 10 minutes: the same chart comes back with cached: true. If only the search came from the cache, you pay just the add-on.
  • Failures, including 422 insufficient_data.
  • plan_only.
  • The improvement of a chart that came back improving.

The list is in the OpenAPI document, in x-pricing.per_1000_charts: { "query_addon": 0.5, "from_data": 0.3 }. For reference, Tako's Search, which returns chart cards, lists $7 per 1,000. See Costs and caching.

From the MCP server

The MCP server's create_chart tool makes the same card from a query, so an agent can answer with a chart:

create_chart
{ "query": "Milei vs Bullrich vs Kicillof coverage", "theme": "dark" }

It takes query, type, theme, days, compare, countries, languages, index and interpretation, and returns the title, subtitle, image_url (to show), embed_url, key_figures, the values drawn in data, the rows of a table in table, events, what it understood and the other readings in alternatives (pass one back as interpretation), rung, improving when the image will still update, sources and cost_usd. Same key, same prices.

On this page