Answer map
get_answer_mapWhat each tracked query's latest AI answer says, query by query and engine by engine: one row per query text and country (an AI query has no city), one cell per AI engine it is tracked on, grouped by keyword cluster. Read as of dateTo (an archived project's archive day when earlier): each tracked query active on an AI engine that day stands on its latest check on or before it; a paused query, a query not active that day and a deleted query have no cell; dateFrom is validated but bounds nothing. A cell is answered (its AI response ids, readable with list_ai_responses, and the brands the answer names: own brand and competitors, each once at its best position), no_answer (the check came back with nothing to capture) or unchecked (not checked yet on the engine it runs on). While the checks run_checks started still run, and dateTo is on or after the day they were requested, a cell with an item in them takes its state from get_check_batch_items instead: queued (waiting or being asked), answered, no_answer, failed, or not_admitted with its cause; openRun says when they were requested. Filter cells by statuses and by namedBrand ("own" or a competitor id from get_available_filters); a row left without cells is left out. Each group gives its row count and, per engine, its cells by state and by brand named; totals give the same for the whole map. A query in several clusters shows in each (under queryClusterIds, only in the clusters asked for); queries in no cluster come last, in the group whose queryCluster is null. Pages hold whole groups while their rows fit in limit (1-200, default 50), at least one group; pass nextOffset back as offset. A group with more rows than limit comes alone with its first limit rows (queries shorter than queryCount; its counts stay whole) and the next page starts at the next group: read its other rows with the same filters plus group set to its queryCluster.id ("ungrouped" for the null group) and offset set to the rows already shown; the response then holds that group alone and offset and nextOffset count its rows. A call whose reads run past their time budget is refused; narrow the range or filters instead of retrying as is. Answers "which queries name us on ChatGPT", "where does a competitor show up instead of us", "which answers name no brand".
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": {
"organizationId": "<organizationId>",
"projectId": "<projectId>",
"dateFrom": "<dateFrom>",
"dateTo": "<dateTo>"
},
"name": "get_answer_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | read on a group cut on an earlier page: its queryCluster.id, or "ungrouped" for the group whose queryCluster is null; send the same filters, and offset counts the group's rows | |
| limit | No | the most rows a page holds, in whole groups; a larger group comes alone, cut to this many rows | |
| dateTo | Yes | ||
| offset | No | the groups before the page; with group, that group's rows before the page | |
| search | No | keep the queries whose text contains it, in any case; at most 255 characters | |
| engines | No | allowed values: chatgpt, claude, perplexity, google_ai_overview, google_ai_mode; omit for every AI engine | |
| dateFrom | Yes | ||
| statuses | No | keep the cells in any of these states: queued, answered, no_answer, failed, not_admitted, unchecked; omit for every cell | |
| countries | No | ISO-3166 alpha-2 country codes (e.g. "US", "GB", "DE"); a project's configured codes are listed by get_available_filters | |
| projectId | Yes | ||
| namedBrand | No | keep the answered cells naming this brand: "own" for the project's brand, or a competitor UUID from get_available_filters (competitors[].id) | |
| organizationId | Yes | ||
| queryClusterIds | No | restrict to these keyword clusters | |
| includeUngroupedQueries | No | Sent alone, restricts to tracked queries that belong to no cluster (refused if there are none). Sent with queryClusterIds, adds them to those clusters. Omit both for all tracked queries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ||
| limit | Yes | ||
| groups | Yes | ||
| offset | Yes | ||
| totals | Yes | The whole map under the filters, a row once whatever its groups; the same on every page, with group too. | |
| engines | Yes | The engines with a cell in the map, in engine order. | |
| openRun | Yes | The running checks the cells' states come from; null when none does. | |
| nextOffset | Yes | In groups or, with group, in its rows; null on the last page. |