Top AI web searches
get_top_web_searchesThe web searches AI models ran while answering this brand's prompts.
These are the terms the models themselves typed into a search engine before writing their answer — the queries a brand has to rank for if it wants to be in the sources those answers draw on. Ranked by how often each search was run.
Searches are grouped case- and whitespace-insensitively, so the same query issued by two models on two days is one row.
By default rows are topics: a hierarchy mined nightly from this
brand's own searches, because models rephrase the same question
constantly and a raw list fragments at the top. Rows come back in
pre-order — a topic, then its sub-topics, then the next topic — with
depth, topic_id and parent_topic_id on each so you can rebuild
the nesting. A topic's label names what the topic is about, in the
brand's own vocabulary — shopify ads, google shopping — built from
the words the topic is defined by, spelled and ordered the way searches in
the window actually use them. It is a description, not a quotation: do not
expect to find it verbatim in group_by="search" output, and do not
treat it as a search string to re-run. variants says how many distinct
phrasings it covers. Grouping and labelling are lexical and deterministic;
no model is involved. Pass group_by="search" for one flat row per
exact search string.
occurrences on a topic includes its sub-topics, which is what a
customer reads off it, so those numbers deliberately do not sum to
total_occurrences — a parent counts its children. direct_occurrences
is the row's own share and those do sum exactly, together with the one
Other searches row. That row is the one label that names no subject:
it is the terminal bucket for searches too rare or too
idiosyncratic to have been mined into a topic, it is always last, and
unmatched_terms / unmatched_pct_of_searches report its size beside
the list. It is kept rather than dropped because it is a large share of
volume, and without it the visible rows would look like the whole picture.
A brand running prompts in more than one language has one tree per
language, and you always read exactly one of them. Trees are mined with
a per-language stemmer, so they cannot be merged and there is no
"all languages" view. language selects one by ISO 639-1 code and
narrows the rows to match; omit it for the brand's largest. Every language
the brand has is listed in available_languages with its own search
count, so nothing is hidden by the absence of a combined view — the counts
there sum to the brand's whole volume. language in the response says
which one these numbers describe; an empty string means the searches are
not stemmed at all, which is what an untagged or unsupported language
gets. To select that bucket, pass und — its code is the empty
string, which over HTTP is indistinguishable from omitting the argument. An
unrecognised code is treated as naming nothing and falls back to the
default rather than landing on it. A single-language brand — which is most — gets an empty
available_languages and can ignore all of this.
Every row carries searches_by_provider, a provider code -> count
map summing to occurrences. Do not read those percentages as "this
model favours this topic": the raw split conflates how many runs the
customer bought on each model with how much each model searches per run,
and on real data that turned a 1.7x preference into an apparent 15x one.
Divide by searches_by_provider_total — the same map over every row in
scope — to get the topic's share of that provider's own searching, which
cancels both. A provider that publishes nothing is absent from both maps
rather than present at zero, so a missing key means "unknown", never
"never searched this".
Every row carries first_seen_in_range, the earliest run within the
window you asked for — not the first time the term was ever searched. On a
30-day read every value is bounded below by start_date, so a term the
brand has been triggering for a year reads as new. Widen the window to push
the bound back; there is no never-seen-before flag to ask for.
A raw row also carries triggered_by: the prompt that produced that
search most often, as {brand_prompt_id, prompt, other_prompts}, with
brand_prompt_id the same opaque token list_prompts returns — pass it
straight back as the brand_prompt_id filter here or on any other tool.
It names one prompt rather than listing them because 94.6% of terms come
from exactly one, and other_prompts counts the rest; it is null
only when the prompt has since been removed. Topic rows carry
prompt_count instead, for the same reason depth appears only on
topics: a topic genuinely spans several prompts, so naming one of them
would be a lie of omission.
topics_ready is false for a brand whose tree has not been mined yet —
a brand crawled for the first time today. Rows are then one topic per
search term, which is honest but not yet a grouping; say so rather than
describing them as topics.
total_occurrences is the same number in either mode, because every
search is assigned to exactly one topic or to Other searches, and
total_unique_searches counts distinct search strings in either mode.
Neither is the pagination total — walk on total_count, which
counts topic rows here and search strings under group_by="search"; in
topic mode total_unique_searches is usually the larger number and
paging off it runs past the end.
Every row-level count reads as zero for a provider that publishes
nothing, because there is nothing to count — total_count,
total_occurrences, total_unique_searches and unmatched_terms
alike. None of them means "this model searched nothing"; the coverage
block below is what tells the two apart, and exposes_searches: false
is the answer that applies. Read it before quoting any of these.
coverage carries the honest denominator, and reading it matters:
exposes_searches: falsemeans the provider does not publish the searches it runs, so its answers cannot be counted here at all. That is a provider policy, not missing data, and not a zero.no_search_rate_pctis the share of readable answers where the model searched nothing and replied from what it already knew. It is computed overruns_with_readable_searches, never overruns, and isnullwhen nothing was readable. For prompts in that share, better search rankings cannot reach the answer — the lever is different.
coverage lists every provider with runs in the selected window, and
keeps listing all of them when llm_provider narrows everything else,
so the comparison between providers stays available. It is not a list of
subscriptions: query_tag, brand_prompt_id and the date range
narrow which providers appear, so a provider's absence means "no runs in
this window", not "not subscribed".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brand": "<brand>"
},
"name": "get_top_web_searches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | Brand name from ``list_tracked_brands``. | |
| limit | No | Page size. Default 20, max 100. | |
| offset | No | Rows to skip — the cursor for reading past ``limit``. Default 0. Negatives are treated as 0. ``total_count`` is the true size of whichever set ``group_by`` selected — topic rows by default, distinct search strings under ``search`` — so walk by advancing ``offset`` by ``returned_count`` while ``has_more`` is true. A page boundary can fall between a topic and its sub-topics; read every page before rebuilding the tree. | |
| search | No | Case-insensitive substring match on the search text. Narrows the rows and ``total_occurrences`` (their share denominator), so ``pct_of_searches`` still adds to 100 across a filtered page. Everything under ``coverage`` is run-level and stays put, so filtering here cannot move the no-search rate. Applied before grouping, so under a filter a topic's label and counts describe only its matching phrasings. Topic *identity* is mined nightly and does not move with the filter. | |
| end_date | No | ||
| group_by | No | ``topic`` (default) returns the mined hierarchy, pre-order; ``search`` returns one flat row per exact search string. Anything else is a validation error rather than a silent fallback — this picks which rows you get, so quietly returning the other shape would be wrong data with a 200. ``theme`` is accepted as a deprecated spelling of ``topic``, the name this projection had before it became a hierarchy; use ``topic``. | topic |
| language | No | ||
| query_tag | No | User-defined tag slug. | |
| start_date | No | ||
| llm_provider | No | ``openai`` | ``claude`` | ``gemini`` | ``perplexity`` | ``grok``. Narrows the rows and the totals, but not ``coverage``. | |
| brand_prompt_id | No | Opaque token from ``list_prompts`` — scope to one prompt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||