Runs one report query against the project and returns a dataset.
The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget.
Rows are dimension groups.dimensions: ["brand"] is one row per brand, ["brand", "service"] one row per brand per platform, ["brand", "date"] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, ["answer"] is one row per AI answer, a list.
scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [<your uuid>, competitors] ranks you among your marked competitors.
filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [<your uuid>] to filters beside the scope above and you get your row alone, ranked among your competitors.
Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project.
Compare window.compare_start_date and compare_end_date run the same query over a second window and add <measure>_compare and <measure>_change columns, usable in filters and order_by. Time buckets pair by position from each window’s start. A single-row result also fills benchmarks[0] for a KPI card.
Paging.limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is “top five per group”. Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank.
Related blocks.related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row.
GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.
The report entity.
A report entity. visibility: brand visibility, mentions, position, sentiment and rank; with the answer dimension, one row per AI answer (a list, no compare window). sources: cited domains, hostnames, URLs and pages. narratives: reputation narratives, themes and sentiment (needs the Reputation capability). queries: the web searches AI platforms ran while answering, per search text, prompt, platform or time bucket; only searches the platform ran count, never suggested follow-up questions.
Available options:
visibility,
sources,
narratives,
queries
Body
application/json
A report query. Rows are dimension groups; measures are the numbers computed per group; scope decides what is counted and ranked; filters decides which result rows come back and never changes a number. Omit dimensions for one project-level row.
Optional second window to compare against. Required when compare_end_date is present. Every measure then gains <measure>_compare and <measure>_change columns; on narratives, share also gains momentum, the band the Reputation narratives list gives its move (emerging, surging, steady, cooling, dormant), which filters can test with in / not_in. Not accepted with the answer dimension on visibility.
Which rows a report with a compare window returns. current (the default): rows with data in the current window; a row only the compare window has is left out. previous: rows with data in the compare window, including those with nothing in the current window, for reports about what was lost. any: rows with data in either window, for a breakdown that adds up across both, such as a waterfall. On a row only the compare window has, current counts are 0 and other current measures null; filters and order_by read the same values. previous and any need a compare window and cannot be used with a date, week or month dimension.
What each row groups by, in display order. Use at most one time bucket (date, week or month). On visibility, answer makes one row per AI answer. The schema endpoint lists the entity's dimensions.
Conditions that decide what is counted and ranked, combined with AND; the values of one condition are alternatives. Repeated conditions on an answer cut where an answer has one value (platform, country, topic, prompt, branded, mention_sentiment) keep the values they share, key and name fields alike; sharing none counts no answer. On a cut where an answer can match several values (tags, mentions_brand, cites_domain, carries_narrative, carries_theme, carries_sentiment, search_query) a second in or contains condition is a 422: list the values in one condition. not_in on mentions_brand and all on tag_uuid may repeat. Anything that changes a number goes here: which AI answers count (answer fields such as service_provider, country_code, topic_uuid, topic, tag_uuid, prompt, branded, mentions_brand, cites_domain, carries_narrative, search_query), which brand the answer or page columns describe (answer_brand, page_brand), which brands count as page competitors on sources (brand_uuid, scope-only, no dimension required, in or not_in with UUIDs or competitors; repeated predicates all apply; omitted means every other tracked brand, and the independent lens is always excluded), which cited pages count on sources (competitors_on_page, and page_type, category, brand_on_page, page_sentiment off the row), and which result rows take part in rank, top and the compare window (row fields such as brand_uuid, domain or narrative, with their dimension in dimensions). A kept row's other numbers stay as they are: share is still a share of the whole window. Measures, compare bands and null checks are a 422 here: they go in filters. The schema endpoint's scope_fields lists every field with its operators.
Conditions that decide which result rows come back, combined with AND. They never change a number, rank included, and run before paging, so page.total counts the rows they keep. Row fields (brand_uuid, brand, domain, url, narrative, query, search, ...) and dimension columns (topic_uuid, topic, service_provider, service, ...) need their dimension in dimensions; measures and their _compare and _change columns take comparisons and null checks; compare bands such as momentum need a compare window. Answer fields that are not row columns, the lenses and page conditions are a 422 here: they go in scope. The schema endpoint's filter_fields lists every field with its operators.
Defaults to the entity's own order (for example visibility descending on visibility, newest first with the answer dimension). Sort by a dimension, not its key field: brand, not brand_uuid. Rows without a value for a sort field (null) come last in either direction.
Extra per-row blocks the entity offers, such as brands_on_page, brand_summary and saved_sources on sources (saved_sources returns {row,sources:[{kind,value,uuid}]} for requested domain and URL dimensions, with null UUID when unsaved; hostname and nonaddress groupings return an empty block; read access follows the normal project view permission, including authorized shared links), brands_in_answer, sources_in_answer, answer_text, searches_in_answer and narratives_in_answer on visibility with the answer dimension, top_brands and change_breakdown on other visibility rows (change_breakdown gives each row contribution, share_of_change and within_noise, its part of the brand's visibility change, with the brand's totals in meta.change_breakdown; it needs brand in dimensions, a compare window and compare_rows: any), narrative_description, theme_description and evidence on narratives. Each entry in the response names its row by index.
Keep only the best values of one dimension, ranked over the whole window, on every row. {"field": "brand", "by": "visibility", "limit": 6} on ["brand", "date"] gives the six most visible brands for every day, where limit would give six rows. Lower-is-better measures rank ascending; ties go the way rank orders them. The values are picked among those the scope keeps, and a filters condition on the field narrows the candidates too; one on another dimension in the row (such as one brand) ranks the values by the rows it keeps. Measure filters apply row by row afterwards. Not with the answer dimension.
Show child attributes
Response
The report dataset.
The result of a report query: a column schema, raw rows keyed by column id, paging, optional related blocks and, for a single-row compare query, a benchmark.
A report entity. visibility: brand visibility, mentions, position, sentiment and rank; with the answer dimension, one row per AI answer (a list, no compare window). sources: cited domains, hostnames, URLs and pages. narratives: reputation narratives, themes and sentiment (needs the Reputation capability). queries: the web searches AI platforms ran while answering, per search text, prompt, platform or time bucket; only searches the platform ran count, never suggested follow-up questions.
The row schema in display order: each dimension's columns, its key column first where it has one (brand_uuid, prompt_uuid, topic_uuid, tag_uuid, service_provider, country_code, ...) and then its label, then each measure followed by its _compare and _change columns when a compare window is set.
Headline value of the first measure when the result has exactly one row, otherwise 0 (null for sentiment). Null when sentiment is the headline measure and its score is unavailable.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Surfacd","colors":{"primary":"#0022FF","light":"#DCFAFF","dark":"#0022FF"},"logo":{"light":"https://mintcdn.com/surfacd/65GopWtG2yt60uTI/logo/logo.svg?fit=max\u0026auto=format\u0026n=65GopWtG2yt60uTI\u0026q=85\u0026s=85d232e50682fcc869278871aa268280","dark":"https://mintcdn.com/surfacd/65GopWtG2yt60uTI/logo/dark-mode-logo.svg?fit=max\u0026auto=format\u0026n=65GopWtG2yt60uTI\u0026q=85\u0026s=0565d6e3852ca4ae622cba323c05c578"},"favicon":"https://mintcdn.com/surfacd/65GopWtG2yt60uTI/favicon/favicon.ico?fit=max\u0026auto=format\u0026n=65GopWtG2yt60uTI\u0026q=85\u0026s=3a80d8cdb1f5d36c3cbb2f2b86ba9dd7","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://surfacd.com","label":"Home"},{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.surfacd.com"}},"footer":{"socials":{}},"fonts":{"family":"Zalando Sans"},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"surfacd","hasAudioNarration":false,"actualSubdomain":"surfacd","customDomains":["docs.surfacd.com"],"gitSource":{"type":"github","owner":"clarityglobal","repo":"ai-visibility","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af600a42c14f7d2bdeccd8f","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"API Reference","count":68},{"language":"default","tag":"Docs","count":40},{"language":"default","tag":"Projects","count":19},{"language":"default","tag":"Reputation","count":18},{"language":"default","tag":"Team","count":15},{"language":"default","tag":"Reporting","count":10},{"language":"default","tag":"Reports \u0026 Analysis","count":9},{"language":"default","tag":"API \u0026 MCP","count":8},{"language":"default","tag":"Account","count":6},{"language":"default","tag":"Prompts","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".nav-logo{height:40px!important;padding:3px}#page-title{font-weight:600}"}],"page":{"pagePath":"api-reference/reports/run-a-report-query","slug":"/api-reference/reports/run-a-report-query","pageMetadata":{"title":"Run a Report Query","description":"Runs one report query against the project and returns a dataset.\n\nThe body says what to group by (`dimensions`), what to compute (`measures`), what to count and rank (`scope`) and which rows to return (`filters`). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget.\n\n- **Rows are dimension groups.** `dimensions: [\"brand\"]` is one row per brand, `[\"brand\", \"service\"]` one row per brand per platform, `[\"brand\", \"date\"]` a timeline. Omit `dimensions` for one project-level row. A brand with no mentions still gets a zero-filled row. On `visibility`, `[\"answer\"]` is one row per AI answer, a list.\n- **`scope` decides what is counted and ranked.** Answer fields (`service_provider`, `country_code`, `topic_uuid`, `tag_uuid`, `prompt_uuid` and their name fields `service`, `country`, `topic`, `tag`, `prompt`, plus `branded`, `mentions_brand`, `cites_domain`, `mention_sentiment` outside visibility, `carries_narrative`, `carries_theme`, `carries_sentiment`, `search_query`) narrow which AI answers count and so change every number, including denominators. The lenses (`answer_brand`, `page_brand`) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as `brand_uuid` keep the rows that take part in `rank`, `top` and the compare window: `brand_uuid in [\u003cyour uuid>, competitors]` ranks you among your marked competitors.\n- **`filters` decides which rows come back.** Row fields, dimension columns, measures and compare bands hide rows and never change a number, `rank` included. Add `brand_uuid in [\u003cyour uuid>]` to `filters` beside the scope above and you get your row alone, ranked among your competitors.\n- **Key fields and name fields.** A field matches the row column of the same name: `brand_uuid`, `topic_uuid`, `tag_uuid`, `prompt_uuid`, `narrative_uuid`, `theme_uuid`, `answer_uuid`, `service_provider` and `country_code` take ids, slugs and codes; `brand`, `topic`, `tag`, `prompt`, `narrative`, `theme`, `service` and `country` take names with `in` / `not_in`, ignoring letter case, and search them with `contains`. Values are checked against the project.\n- **Compare window.** `compare_start_date` and `compare_end_date` run the same query over a second window and add `\u003cmeasure>_compare` and `\u003cmeasure>_change` columns, usable in `filters` and `order_by`. Time buckets pair by position from each window's start. A single-row result also fills `benchmarks[0]` for a KPI card.\n- **Paging.** `limit` (default 100, max 1000) and `offset`; `page.total` is the row count before the page was cut. `rank` is assigned among the rows the scope keeps, before any filter, so `rank lte 5` in `filters` is \"top five per group\". Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null `rank`.\n- **Related blocks.** `related` adds per-row lists such as `brands_on_page` and `brand_summary` (sources), `top_brands` (visibility), `brands_in_answer`, `sources_in_answer`, `answer_text`, `searches_in_answer`, `narratives_in_answer` (visibility with the `answer` dimension; narratives need Reputation and `brand` in dimensions or `answer_brand` in `scope`), `narrative_description`, `theme_description`, `evidence` (narratives), `prompts_for_query` and `services_for_row` (queries). Each entry carries `row`, the index of its row.\n\n`GET /api/v1/reports/{entity}/schema` lists what each entity accepts in `scope` and `filters`, and `GET /api/v1/projects/{project}/reports/values/{field}` lists the identifiers and names a field takes. The `narratives` entity and the `carries_narrative`, `carries_theme` and `carries_sentiment` scope fields need the Reputation capability.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects/{project}/reports/{entity}","href":"/api-reference/reports/run-a-report-query","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Runs one report query against the project and returns a dataset.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The body says what to group by (\", _jsx(_components.code, {\n children: \"dimensions\"\n }), \"), what to compute (\", _jsx(_components.code, {\n children: \"measures\"\n }), \"), what to count and rank (\", _jsx(_components.code, {\n children: \"scope\"\n }), \") and which rows to return (\", _jsx(_components.code, {\n children: \"filters\"\n }), \"). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Rows are dimension groups.\"\n }), \" \", _jsx(_components.code, {\n children: \"dimensions: [\\\"brand\\\"]\"\n }), \" is one row per brand, \", _jsx(_components.code, {\n children: \"[\\\"brand\\\", \\\"service\\\"]\"\n }), \" one row per brand per platform, \", _jsx(_components.code, {\n children: \"[\\\"brand\\\", \\\"date\\\"]\"\n }), \" a timeline. Omit \", _jsx(_components.code, {\n children: \"dimensions\"\n }), \" for one project-level row. A brand with no mentions still gets a zero-filled row. On \", _jsx(_components.code, {\n children: \"visibility\"\n }), \", \", _jsx(_components.code, {\n children: \"[\\\"answer\\\"]\"\n }), \" is one row per AI answer, a list.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsxs(_components.strong, {\n children: [_jsx(_components.code, {\n children: \"scope\"\n }), \" decides what is counted and ranked.\"]\n }), \" Answer fields (\", _jsx(_components.code, {\n children: \"service_provider\"\n }), \", \", _jsx(_components.code, {\n children: \"country_code\"\n }), \", \", _jsx(_components.code, {\n children: \"topic_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"tag_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"prompt_uuid\"\n }), \" and their name fields \", _jsx(_components.code, {\n children: \"service\"\n }), \", \", _jsx(_components.code, {\n children: \"country\"\n }), \", \", _jsx(_components.code, {\n children: \"topic\"\n }), \", \", _jsx(_components.code, {\n children: \"tag\"\n }), \", \", _jsx(_components.code, {\n children: \"prompt\"\n }), \", plus \", _jsx(_components.code, {\n children: \"branded\"\n }), \", \", _jsx(_components.code, {\n children: \"mentions_brand\"\n }), \", \", _jsx(_components.code, {\n children: \"cites_domain\"\n }), \", \", _jsx(_components.code, {\n children: \"mention_sentiment\"\n }), \" outside visibility, \", _jsx(_components.code, {\n children: \"carries_narrative\"\n }), \", \", _jsx(_components.code, {\n children: \"carries_theme\"\n }), \", \", _jsx(_components.code, {\n children: \"carries_sentiment\"\n }), \", \", _jsx(_components.code, {\n children: \"search_query\"\n }), \") narrow which AI answers count and so change every number, including denominators. The lenses (\", _jsx(_components.code, {\n children: \"answer_brand\"\n }), \", \", _jsx(_components.code, {\n children: \"page_brand\"\n }), \") name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as \", _jsx(_components.code, {\n children: \"brand_uuid\"\n }), \" keep the rows that take part in \", _jsx(_components.code, {\n children: \"rank\"\n }), \", \", _jsx(_components.code, {\n children: \"top\"\n }), \" and the compare window: \", _jsx(_components.code, {\n children: \"brand_uuid in [\u003cyour uuid>, competitors]\"\n }), \" ranks you among your marked competitors.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsxs(_components.strong, {\n children: [_jsx(_components.code, {\n children: \"filters\"\n }), \" decides which rows come back.\"]\n }), \" Row fields, dimension columns, measures and compare bands hide rows and never change a number, \", _jsx(_components.code, {\n children: \"rank\"\n }), \" included. Add \", _jsx(_components.code, {\n children: \"brand_uuid in [\u003cyour uuid>]\"\n }), \" to \", _jsx(_components.code, {\n children: \"filters\"\n }), \" beside the scope above and you get your row alone, ranked among your competitors.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Key fields and name fields.\"\n }), \" A field matches the row column of the same name: \", _jsx(_components.code, {\n children: \"brand_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"topic_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"tag_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"prompt_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"narrative_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"theme_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"answer_uuid\"\n }), \", \", _jsx(_components.code, {\n children: \"service_provider\"\n }), \" and \", _jsx(_components.code, {\n children: \"country_code\"\n }), \" take ids, slugs and codes; \", _jsx(_components.code, {\n children: \"brand\"\n }), \", \", _jsx(_components.code, {\n children: \"topic\"\n }), \", \", _jsx(_components.code, {\n children: \"tag\"\n }), \", \", _jsx(_components.code, {\n children: \"prompt\"\n }), \", \", _jsx(_components.code, {\n children: \"narrative\"\n }), \", \", _jsx(_components.code, {\n children: \"theme\"\n }), \", \", _jsx(_components.code, {\n children: \"service\"\n }), \" and \", _jsx(_components.code, {\n children: \"country\"\n }), \" take names with \", _jsx(_components.code, {\n children: \"in\"\n }), \" / \", _jsx(_components.code, {\n children: \"not_in\"\n }), \", ignoring letter case, and search them with \", _jsx(_components.code, {\n children: \"contains\"\n }), \". Values are checked against the project.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Compare window.\"\n }), \" \", _jsx(_components.code, {\n children: \"compare_start_date\"\n }), \" and \", _jsx(_components.code, {\n children: \"compare_end_date\"\n }), \" run the same query over a second window and add \", _jsx(_components.code, {\n children: \"\u003cmeasure>_compare\"\n }), \" and \", _jsx(_components.code, {\n children: \"\u003cmeasure>_change\"\n }), \" columns, usable in \", _jsx(_components.code, {\n children: \"filters\"\n }), \" and \", _jsx(_components.code, {\n children: \"order_by\"\n }), \". Time buckets pair by position from each window’s start. A single-row result also fills \", _jsx(_components.code, {\n children: \"benchmarks[0]\"\n }), \" for a KPI card.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Paging.\"\n }), \" \", _jsx(_components.code, {\n children: \"limit\"\n }), \" (default 100, max 1000) and \", _jsx(_components.code, {\n children: \"offset\"\n }), \"; \", _jsx(_components.code, {\n children: \"page.total\"\n }), \" is the row count before the page was cut. \", _jsx(_components.code, {\n children: \"rank\"\n }), \" is assigned among the rows the scope keeps, before any filter, so \", _jsx(_components.code, {\n children: \"rank lte 5\"\n }), \" in \", _jsx(_components.code, {\n children: \"filters\"\n }), \" is “top five per group”. Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null \", _jsx(_components.code, {\n children: \"rank\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Related blocks.\"\n }), \" \", _jsx(_components.code, {\n children: \"related\"\n }), \" adds per-row lists such as \", _jsx(_components.code, {\n children: \"brands_on_page\"\n }), \" and \", _jsx(_components.code, {\n children: \"brand_summary\"\n }), \" (sources), \", _jsx(_components.code, {\n children: \"top_brands\"\n }), \" (visibility), \", _jsx(_components.code, {\n children: \"brands_in_answer\"\n }), \", \", _jsx(_components.code, {\n children: \"sources_in_answer\"\n }), \", \", _jsx(_components.code, {\n children: \"answer_text\"\n }), \", \", _jsx(_components.code, {\n children: \"searches_in_answer\"\n }), \", \", _jsx(_components.code, {\n children: \"narratives_in_answer\"\n }), \" (visibility with the \", _jsx(_components.code, {\n children: \"answer\"\n }), \" dimension; narratives need Reputation and \", _jsx(_components.code, {\n children: \"brand\"\n }), \" in dimensions or \", _jsx(_components.code, {\n children: \"answer_brand\"\n }), \" in \", _jsx(_components.code, {\n children: \"scope\"\n }), \"), \", _jsx(_components.code, {\n children: \"narrative_description\"\n }), \", \", _jsx(_components.code, {\n children: \"theme_description\"\n }), \", \", _jsx(_components.code, {\n children: \"evidence\"\n }), \" (narratives), \", _jsx(_components.code, {\n children: \"prompts_for_query\"\n }), \" and \", _jsx(_components.code, {\n children: \"services_for_row\"\n }), \" (queries). Each entry carries \", _jsx(_components.code, {\n children: \"row\"\n }), \", the index of its row.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"GET /api/v1/reports/{entity}/schema\"\n }), \" lists what each entity accepts in \", _jsx(_components.code, {\n children: \"scope\"\n }), \" and \", _jsx(_components.code, {\n children: \"filters\"\n }), \", and \", _jsx(_components.code, {\n children: \"GET /api/v1/projects/{project}/reports/values/{field}\"\n }), \" lists the identifiers and names a field takes. The \", _jsx(_components.code, {\n children: \"narratives\"\n }), \" entity and the \", _jsx(_components.code, {\n children: \"carries_narrative\"\n }), \", \", _jsx(_components.code, {\n children: \"carries_theme\"\n }), \" and \", _jsx(_components.code, {\n children: \"carries_sentiment\"\n }), \" scope fields need the Reputation capability.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run a Report Query","description":"Runs one report query against the project and returns a dataset.\n\nThe body says what to group by (`dimensions`), what to compute (`measures`), what to count and rank (`scope`) and which rows to return (`filters`). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget.\n\n- **Rows are dimension groups.** `dimensions: [\"brand\"]` is one row per brand, `[\"brand\", \"service\"]` one row per brand per platform, `[\"brand\", \"date\"]` a timeline. Omit `dimensions` for one project-level row. A brand with no mentions still gets a zero-filled row. On `visibility`, `[\"answer\"]` is one row per AI answer, a list.\n- **`scope` decides what is counted and ranked.** Answer fields (`service_provider`, `country_code`, `topic_uuid`, `tag_uuid`, `prompt_uuid` and their name fields `service`, `country`, `topic`, `tag`, `prompt`, plus `branded`, `mentions_brand`, `cites_domain`, `mention_sentiment` outside visibility, `carries_narrative`, `carries_theme`, `carries_sentiment`, `search_query`) narrow which AI answers count and so change every number, including denominators. The lenses (`answer_brand`, `page_brand`) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as `brand_uuid` keep the rows that take part in `rank`, `top` and the compare window: `brand_uuid in [\u003cyour uuid>, competitors]` ranks you among your marked competitors.\n- **`filters` decides which rows come back.** Row fields, dimension columns, measures and compare bands hide rows and never change a number, `rank` included. Add `brand_uuid in [\u003cyour uuid>]` to `filters` beside the scope above and you get your row alone, ranked among your competitors.\n- **Key fields and name fields.** A field matches the row column of the same name: `brand_uuid`, `topic_uuid`, `tag_uuid`, `prompt_uuid`, `narrative_uuid`, `theme_uuid`, `answer_uuid`, `service_provider` and `country_code` take ids, slugs and codes; `brand`, `topic`, `tag`, `prompt`, `narrative`, `theme`, `service` and `country` take names with `in` / `not_in`, ignoring letter case, and search them with `contains`. Values are checked against the project.\n- **Compare window.** `compare_start_date` and `compare_end_date` run the same query over a second window and add `\u003cmeasure>_compare` and `\u003cmeasure>_change` columns, usable in `filters` and `order_by`. Time buckets pair by position from each window's start. A single-row result also fills `benchmarks[0]` for a KPI card.\n- **Paging.** `limit` (default 100, max 1000) and `offset`; `page.total` is the row count before the page was cut. `rank` is assigned among the rows the scope keeps, before any filter, so `rank lte 5` in `filters` is \"top five per group\". Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null `rank`.\n- **Related blocks.** `related` adds per-row lists such as `brands_on_page` and `brand_summary` (sources), `top_brands` (visibility), `brands_in_answer`, `sources_in_answer`, `answer_text`, `searches_in_answer`, `narratives_in_answer` (visibility with the `answer` dimension; narratives need Reputation and `brand` in dimensions or `answer_brand` in `scope`), `narrative_description`, `theme_description`, `evidence` (narratives), `prompts_for_query` and `services_for_row` (queries). Each entry carries `row`, the index of its row.\n\n`GET /api/v1/reports/{entity}/schema` lists what each entity accepts in `scope` and `filters`, and `GET /api/v1/projects/{project}/reports/values/{field}` lists the identifiers and names a field takes. The `narratives` entity and the `carries_narrative`, `carries_theme` and `carries_sentiment` scope fields need the Reputation capability.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects/{project}/reports/{entity}","href":"/api-reference/reports/run-a-report-query","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"v1ProjectsReports","summary":"Run a Report Query","description":"Runs one report query against the project and returns a dataset.\n\nThe body says what to group by (`dimensions`), what to compute (`measures`), what to count and rank (`scope`) and which rows to return (`filters`). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget.\n\n- **Rows are dimension groups.** `dimensions: [\"brand\"]` is one row per brand, `[\"brand\", \"service\"]` one row per brand per platform, `[\"brand\", \"date\"]` a timeline. Omit `dimensions` for one project-level row. A brand with no mentions still gets a zero-filled row. On `visibility`, `[\"answer\"]` is one row per AI answer, a list.\n- **`scope` decides what is counted and ranked.** Answer fields (`service_provider`, `country_code`, `topic_uuid`, `tag_uuid`, `prompt_uuid` and their name fields `service`, `country`, `topic`, `tag`, `prompt`, plus `branded`, `mentions_brand`, `cites_domain`, `mention_sentiment` outside visibility, `carries_narrative`, `carries_theme`, `carries_sentiment`, `search_query`) narrow which AI answers count and so change every number, including denominators. The lenses (`answer_brand`, `page_brand`) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as `brand_uuid` keep the rows that take part in `rank`, `top` and the compare window: `brand_uuid in [\u003cyour uuid>, competitors]` ranks you among your marked competitors.\n- **`filters` decides which rows come back.** Row fields, dimension columns, measures and compare bands hide rows and never change a number, `rank` included. Add `brand_uuid in [\u003cyour uuid>]` to `filters` beside the scope above and you get your row alone, ranked among your competitors.\n- **Key fields and name fields.** A field matches the row column of the same name: `brand_uuid`, `topic_uuid`, `tag_uuid`, `prompt_uuid`, `narrative_uuid`, `theme_uuid`, `answer_uuid`, `service_provider` and `country_code` take ids, slugs and codes; `brand`, `topic`, `tag`, `prompt`, `narrative`, `theme`, `service` and `country` take names with `in` / `not_in`, ignoring letter case, and search them with `contains`. Values are checked against the project.\n- **Compare window.** `compare_start_date` and `compare_end_date` run the same query over a second window and add `\u003cmeasure>_compare` and `\u003cmeasure>_change` columns, usable in `filters` and `order_by`. Time buckets pair by position from each window's start. A single-row result also fills `benchmarks[0]` for a KPI card.\n- **Paging.** `limit` (default 100, max 1000) and `offset`; `page.total` is the row count before the page was cut. `rank` is assigned among the rows the scope keeps, before any filter, so `rank lte 5` in `filters` is \"top five per group\". Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null `rank`.\n- **Related blocks.** `related` adds per-row lists such as `brands_on_page` and `brand_summary` (sources), `top_brands` (visibility), `brands_in_answer`, `sources_in_answer`, `answer_text`, `searches_in_answer`, `narratives_in_answer` (visibility with the `answer` dimension; narratives need Reputation and `brand` in dimensions or `answer_brand` in `scope`), `narrative_description`, `theme_description`, `evidence` (narratives), `prompts_for_query` and `services_for_row` (queries). Each entry carries `row`, the index of its row.\n\n`GET /api/v1/reports/{entity}/schema` lists what each entity accepts in `scope` and `filters`, and `GET /api/v1/projects/{project}/reports/values/{field}` lists the identifiers and names a field takes. The `narratives` entity and the `carries_narrative`, `carries_theme` and `carries_sentiment` scope fields need the Reputation capability.","tags":["Reports"],"requestBody":"e695b38c-df95-4c19-9fb7-4db92c6fbad9","responses":{"200":"d757dcc6-6502-4beb-bc0c-7bbf41dda8aa","403":"af376ce7-4492-4c7f-90bd-aa1db76d38b6","404":"9e600864-b6d8-420a-85b6-3afbd49356ee","422":"9b053bd5-0537-4ff8-9d33-f3da3a7e7526"},"method":"post","type":"path","servers":["585d9884-bdce-435f-8d57-dd957b4940cc"],"security":["4679da14-28d3-4f79-a47f-b1bcec9e0cbd"],"path":"/api/v1/projects/{project}/reports/{entity}","baseUrlOptions":["https://app.surfacd.com"],"title":"Run a Report Query","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"3177411e-57cf-482d-85ea-20ccea2c45b7":{"name":"project","in":"path","required":true,"description":"Project UUID.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Project UUID.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"35fe3b83-e692-4680-b1c4-e041423b1d24":{"name":"entity","in":"path","required":true,"description":"The report entity.","schema":{"type":"string","enum":["visibility","sources","narratives","queries"],"description":"The report entity.\nA report entity. `visibility`: brand visibility, mentions, position, sentiment and rank; with the `answer` dimension, one row per AI answer (a list, no compare window). `sources`: cited domains, hostnames, URLs and pages. `narratives`: reputation narratives, themes and sentiment (needs the Reputation capability). `queries`: the web searches AI platforms ran while answering, per search text, prompt, platform or time bucket; only searches the platform ran count, never suggested follow-up questions.","isRequired":true,"uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"A report query. Rows are dimension groups; measures are the numbers computed per group; `scope` decides what is counted and ranked; `filters` decides which result rows come back and never changes a number. Omit `dimensions` for one project-level row.","properties":{"start_date":{"type":"string","format":"date","description":"Inclusive start of the window.","isRequired":true,"uniqueKey":"start_date","typeLabel":"string\u003cdate>"},"end_date":{"type":"string","format":"date","description":"Inclusive end of the window, on or after `start_date`.","isRequired":true,"uniqueKey":"end_date","typeLabel":"string\u003cdate>"},"measures":{"type":"array","items":{"type":"string","uniqueKey":"measures.items.[INDEX]","typeLabel":"string"},"minItems":1,"description":"The numbers to compute per row. The schema endpoint lists the entity's measures.","isRequired":true,"uniqueKey":"measures","typeLabel":"string[]"},"compare_start_date":{"oneOf":[{"type":"string","format":"date","description":"Optional second window to compare against. Required when `compare_end_date` is present. Every measure then gains `\u003cmeasure>_compare` and `\u003cmeasure>_change` columns; on `narratives`, `share` also gains `momentum`, the band the Reputation narratives list gives its move (`emerging`, `surging`, `steady`, `cooling`, `dormant`), which `filters` can test with `in` / `not_in`. Not accepted with the `answer` dimension on `visibility`.","uniqueKey":"compare_start_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Optional second window to compare against. Required when `compare_end_date` is present. Every measure then gains `\u003cmeasure>_compare` and `\u003cmeasure>_change` columns; on `narratives`, `share` also gains `momentum`, the band the Reputation narratives list gives its move (`emerging`, `surging`, `steady`, `cooling`, `dormant`), which `filters` can test with `in` / `not_in`. Not accepted with the `answer` dimension on `visibility`.","uniqueKey":"compare_start_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"compare_start_date","typeLabel":"string\u003cdate> | null"},"compare_end_date":{"oneOf":[{"type":"string","format":"date","description":"Required when `compare_start_date` is present; on or after it.","uniqueKey":"compare_end_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Required when `compare_start_date` is present; on or after it.","uniqueKey":"compare_end_date.oneOf.1","typeLabel":"null"}],"uniqueKey":"compare_end_date","typeLabel":"string\u003cdate> | null"},"compare_rows":{"type":"string","enum":["current","previous","any"],"default":"current","description":"Which rows a report with a compare window returns. `current` (the default): rows with data in the current window; a row only the compare window has is left out. `previous`: rows with data in the compare window, including those with nothing in the current window, for reports about what was lost. `any`: rows with data in either window, for a breakdown that adds up across both, such as a waterfall. On a row only the compare window has, current counts are `0` and other current measures `null`; filters and `order_by` read the same values. `previous` and `any` need a compare window and cannot be used with a `date`, `week` or `month` dimension.","uniqueKey":"compare_rows","typeLabel":"enum\u003cstring>"},"dimensions":{"type":"array","items":{"type":"string","uniqueKey":"dimensions.items.[INDEX]","typeLabel":"string"},"description":"What each row groups by, in display order. Use at most one time bucket (`date`, `week` or `month`). On `visibility`, `answer` makes one row per AI answer. The schema endpoint lists the entity's dimensions.","uniqueKey":"dimensions","typeLabel":"string[]"},"scope":{"type":"array","items":{"type":"object","description":"One condition, the same shape in `scope` and `filters`. The list decides what it does: in `scope` it decides what is counted and ranked (which AI answers count, the lens brand, which cited pages count, which rows are ranked); in `filters` it picks result rows and never changes a number, `rank` included. A field matches the row column of the same name: key fields (`brand_uuid`, `topic_uuid`, `service_provider`, `country_code`, ...) take ids, slugs and codes, name fields (`brand`, `topic`, `service`, `country`, ...) take names. The schema endpoint lists each list's fields under `scope_fields` and `filter_fields`, with their operators.","properties":{"field":{"type":"string","description":"A field from the entity schema's `scope_fields` (in `scope`) or `filter_fields` (in `filters`). On visibility, `brand_uuid` in `scope` with neither `brand` nor `answer` in dimensions combines just those brands (`in` / `not_in`, project brand UUIDs or `competitors`) without cutting the answer population. Visibility averages the chosen brands, counting unmentioned ones as 0; position and sentiment pool their mentions. With no brand left, those three measures are null while answers remain counted.","examples":["service_provider","topic","brand_uuid","visibility"],"isRequired":true,"uniqueKey":"scope.items.[INDEX].field","typeLabel":"string"},"op":{"type":"string","enum":["in","not_in","all","eq","gt","gte","lt","lte","contains","is_null","not_null"],"description":"`in` and `not_in` take `values`. `all` takes `values` and is only accepted by `tag_uuid` in `scope`, where it keeps prompts that carry every listed tag. `eq`, `gt`, `gte`, `lt` and `lte` take a numeric `value` and test a measure in `filters`. `contains` takes a text `value` and matches a name or label case-insensitively and literally: `%` and `_` match themselves. In `filters` it hides rows and never changes a number; in `scope`, on an answer field such as `topic` or `prompt`, it counts only the answers whose topic or prompt matches. `is_null` and `not_null` take neither and go in `filters`: they test a measure, or a row field or dimension column whose dimension is on the row, for a missing value, such as `citations_compare is_null` for sources with no observation in the compare window, or `topic not_null` to drop the group of prompts without a topic.","isRequired":true,"uniqueKey":"scope.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"values":{"type":"array","items":{"type":"string","maxLength":2048,"uniqueKey":"scope.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"minItems":1,"description":"Required with `in`, `not_in` and `all`. Key fields take public identifiers: brand, topic, tag, prompt, narrative, theme and answer UUIDs, platform slugs (`service_provider`) and ISO country codes (`country_code`). Name fields take names, compared ignoring letter case: brand, topic, tag and country names, platform names (as the `service` column shows them), prompt text, narrative and theme labels. Other fields take domain names or fixed vocabulary values. `in` and `not_in` values are checked against the project: an id or a name it does not have is a 422 that says which field matches what. So is an unknown `mentions_brand`, `carries_narrative`, `carries_theme`, `carries_sentiment` or `mention_sentiment` value in `scope`, or a `cites_domain` no answer has cited. Reserved values: `competitors` on the fields in the schema's `competitor_fields` (the brands marked as competitors; with none marked it matches no brand), `untagged` on `tag_uuid`, `no_topic` on `topic_uuid`, and `saved` on sources `domain` and `url` with normal project read access. Hostname lists do not accept `saved`. On visibility and narratives, a `brand_uuid` list in `scope` sets the brands `rank` numbers, from 1 among them, in both windows and for `top`; in `filters` it picks rows and leaves every rank as it was. On sources, `brand_uuid` is scope-only, needs no brand dimension and selects the page comparison set: project brand UUIDs, `competitors`, or both, with `in` or `not_in`. Repeated predicates all apply and the lens brand is always excluded.","uniqueKey":"scope.items.[INDEX].values","typeLabel":"string[]"},"value":{"oneOf":[{"type":"number","description":"Required with every operator but `in`, `not_in`, `all`, `is_null` and `not_null`: a number for comparisons, text for `contains`.","uniqueKey":"scope.items.[INDEX].value.oneOf.0","typeLabel":"number"},{"type":"string","description":"Required with every operator but `in`, `not_in`, `all`, `is_null` and `not_null`: a number for comparisons, text for `contains`.","uniqueKey":"scope.items.[INDEX].value.oneOf.1","typeLabel":"string"}],"uniqueKey":"scope.items.[INDEX].value","typeLabel":"number | string"}},"required":["field","op"],"examples":[{"field":"service_provider","op":"in","values":["chatgpt","gemini"]},{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35","competitors"]},{"field":"topic","op":"contains","value":"pricing"},{"field":"visibility","op":"gte","value":0.05},{"field":"topic","op":"not_null"}],"uniqueKey":"scope.items.[INDEX]","typeLabel":"object"},"description":"Conditions that decide what is counted and ranked, combined with AND; the values of one condition are alternatives. Repeated conditions on an answer cut where an answer has one value (platform, country, topic, prompt, `branded`, `mention_sentiment`) keep the values they share, key and name fields alike; sharing none counts no answer. On a cut where an answer can match several values (tags, `mentions_brand`, `cites_domain`, `carries_narrative`, `carries_theme`, `carries_sentiment`, `search_query`) a second `in` or `contains` condition is a 422: list the values in one condition. `not_in` on `mentions_brand` and `all` on `tag_uuid` may repeat. Anything that changes a number goes here: which AI answers count (answer fields such as `service_provider`, `country_code`, `topic_uuid`, `topic`, `tag_uuid`, `prompt`, `branded`, `mentions_brand`, `cites_domain`, `carries_narrative`, `search_query`), which brand the answer or page columns describe (`answer_brand`, `page_brand`), which brands count as page competitors on sources (`brand_uuid`, scope-only, no dimension required, `in` or `not_in` with UUIDs or `competitors`; repeated predicates all apply; omitted means every other tracked brand, and the independent lens is always excluded), which cited pages count on sources (`competitors_on_page`, and `page_type`, `category`, `brand_on_page`, `page_sentiment` off the row), and which result rows take part in `rank`, `top` and the compare window (row fields such as `brand_uuid`, `domain` or `narrative`, with their dimension in `dimensions`). A kept row's other numbers stay as they are: `share` is still a share of the whole window. Measures, compare bands and null checks are a 422 here: they go in `filters`. The schema endpoint's `scope_fields` lists every field with its operators.","examples":[[{"field":"service_provider","op":"in","values":["chatgpt"]},{"field":"country_code","op":"in","values":["US"]}],[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35","competitors"]}]],"uniqueKey":"scope","typeLabel":"object[]"},"filters":{"type":"array","items":{"type":"object","description":"One condition, the same shape in `scope` and `filters`. The list decides what it does: in `scope` it decides what is counted and ranked (which AI answers count, the lens brand, which cited pages count, which rows are ranked); in `filters` it picks result rows and never changes a number, `rank` included. A field matches the row column of the same name: key fields (`brand_uuid`, `topic_uuid`, `service_provider`, `country_code`, ...) take ids, slugs and codes, name fields (`brand`, `topic`, `service`, `country`, ...) take names. The schema endpoint lists each list's fields under `scope_fields` and `filter_fields`, with their operators.","properties":{"field":{"type":"string","description":"A field from the entity schema's `scope_fields` (in `scope`) or `filter_fields` (in `filters`). On visibility, `brand_uuid` in `scope` with neither `brand` nor `answer` in dimensions combines just those brands (`in` / `not_in`, project brand UUIDs or `competitors`) without cutting the answer population. Visibility averages the chosen brands, counting unmentioned ones as 0; position and sentiment pool their mentions. With no brand left, those three measures are null while answers remain counted.","examples":["service_provider","topic","brand_uuid","visibility"],"isRequired":true,"uniqueKey":"filters.items.[INDEX].field","typeLabel":"string"},"op":{"type":"string","enum":["in","not_in","all","eq","gt","gte","lt","lte","contains","is_null","not_null"],"description":"`in` and `not_in` take `values`. `all` takes `values` and is only accepted by `tag_uuid` in `scope`, where it keeps prompts that carry every listed tag. `eq`, `gt`, `gte`, `lt` and `lte` take a numeric `value` and test a measure in `filters`. `contains` takes a text `value` and matches a name or label case-insensitively and literally: `%` and `_` match themselves. In `filters` it hides rows and never changes a number; in `scope`, on an answer field such as `topic` or `prompt`, it counts only the answers whose topic or prompt matches. `is_null` and `not_null` take neither and go in `filters`: they test a measure, or a row field or dimension column whose dimension is on the row, for a missing value, such as `citations_compare is_null` for sources with no observation in the compare window, or `topic not_null` to drop the group of prompts without a topic.","isRequired":true,"uniqueKey":"filters.items.[INDEX].op","typeLabel":"enum\u003cstring>"},"values":{"type":"array","items":{"type":"string","maxLength":2048,"uniqueKey":"filters.items.[INDEX].values.items.[INDEX]","typeLabel":"string"},"minItems":1,"description":"Required with `in`, `not_in` and `all`. Key fields take public identifiers: brand, topic, tag, prompt, narrative, theme and answer UUIDs, platform slugs (`service_provider`) and ISO country codes (`country_code`). Name fields take names, compared ignoring letter case: brand, topic, tag and country names, platform names (as the `service` column shows them), prompt text, narrative and theme labels. Other fields take domain names or fixed vocabulary values. `in` and `not_in` values are checked against the project: an id or a name it does not have is a 422 that says which field matches what. So is an unknown `mentions_brand`, `carries_narrative`, `carries_theme`, `carries_sentiment` or `mention_sentiment` value in `scope`, or a `cites_domain` no answer has cited. Reserved values: `competitors` on the fields in the schema's `competitor_fields` (the brands marked as competitors; with none marked it matches no brand), `untagged` on `tag_uuid`, `no_topic` on `topic_uuid`, and `saved` on sources `domain` and `url` with normal project read access. Hostname lists do not accept `saved`. On visibility and narratives, a `brand_uuid` list in `scope` sets the brands `rank` numbers, from 1 among them, in both windows and for `top`; in `filters` it picks rows and leaves every rank as it was. On sources, `brand_uuid` is scope-only, needs no brand dimension and selects the page comparison set: project brand UUIDs, `competitors`, or both, with `in` or `not_in`. Repeated predicates all apply and the lens brand is always excluded.","uniqueKey":"filters.items.[INDEX].values","typeLabel":"string[]"},"value":{"oneOf":[{"type":"number","description":"Required with every operator but `in`, `not_in`, `all`, `is_null` and `not_null`: a number for comparisons, text for `contains`.","uniqueKey":"filters.items.[INDEX].value.oneOf.0","typeLabel":"number"},{"type":"string","description":"Required with every operator but `in`, `not_in`, `all`, `is_null` and `not_null`: a number for comparisons, text for `contains`.","uniqueKey":"filters.items.[INDEX].value.oneOf.1","typeLabel":"string"}],"uniqueKey":"filters.items.[INDEX].value","typeLabel":"number | string"}},"required":["field","op"],"examples":[{"field":"service_provider","op":"in","values":["chatgpt","gemini"]},{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35","competitors"]},{"field":"topic","op":"contains","value":"pricing"},{"field":"visibility","op":"gte","value":0.05},{"field":"topic","op":"not_null"}],"uniqueKey":"filters.items.[INDEX]","typeLabel":"object"},"description":"Conditions that decide which result rows come back, combined with AND. They never change a number, `rank` included, and run before paging, so `page.total` counts the rows they keep. Row fields (`brand_uuid`, `brand`, `domain`, `url`, `narrative`, `query`, `search`, ...) and dimension columns (`topic_uuid`, `topic`, `service_provider`, `service`, ...) need their dimension in `dimensions`; measures and their `_compare` and `_change` columns take comparisons and null checks; compare bands such as `momentum` need a compare window. Answer fields that are not row columns, the lenses and page conditions are a 422 here: they go in `scope`. The schema endpoint's `filter_fields` lists every field with its operators.","examples":[[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35"]}],[{"field":"topic","op":"contains","value":"pricing"},{"field":"visibility","op":"gte","value":0.05}]],"uniqueKey":"filters","typeLabel":"object[]"},"order_by":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"A dimension or measure on the row, including `\u003cmeasure>_compare` and `\u003cmeasure>_change` when a compare window is set.","isRequired":true,"uniqueKey":"order_by.items.[INDEX].field","typeLabel":"string"},"dir":{"type":"string","enum":["asc","desc"],"default":"desc","uniqueKey":"order_by.items.[INDEX].dir","typeLabel":"enum\u003cstring>"}},"required":["field"],"uniqueKey":"order_by.items.[INDEX]","typeLabel":"object"},"description":"Defaults to the entity's own order (for example visibility descending on `visibility`, newest first with the `answer` dimension). Sort by a dimension, not its key field: `brand`, not `brand_uuid`. Rows without a value for a sort field (`null`) come last in either direction.","uniqueKey":"order_by","typeLabel":"object[]"},"limit":{"type":"integer","minimum":1,"maximum":1000,"default":100,"uniqueKey":"limit","typeLabel":"integer"},"offset":{"type":"integer","minimum":0,"default":0,"uniqueKey":"offset","typeLabel":"integer"},"related":{"type":"array","items":{"type":"string","uniqueKey":"related.items.[INDEX]","typeLabel":"string"},"description":"Extra per-row blocks the entity offers, such as `brands_on_page`, `brand_summary` and `saved_sources` on `sources` (`saved_sources` returns `{row,sources:[{kind,value,uuid}]}` for requested domain and URL dimensions, with null UUID when unsaved; hostname and nonaddress groupings return an empty block; read access follows the normal project view permission, including authorized shared links), `brands_in_answer`, `sources_in_answer`, `answer_text`, `searches_in_answer` and `narratives_in_answer` on `visibility` with the `answer` dimension, `top_brands` and `change_breakdown` on other `visibility` rows (`change_breakdown` gives each row `contribution`, `share_of_change` and `within_noise`, its part of the brand's visibility change, with the brand's totals in `meta.change_breakdown`; it needs `brand` in `dimensions`, a compare window and `compare_rows: any`), `narrative_description`, `theme_description` and `evidence` on `narratives`. Each entry in the response names its row by index.","uniqueKey":"related","typeLabel":"string[]"},"top":{"type":"object","description":"Keep only the best values of one dimension, ranked over the whole window, on every row. `{\"field\": \"brand\", \"by\": \"visibility\", \"limit\": 6}` on `[\"brand\", \"date\"]` gives the six most visible brands for every day, where `limit` would give six rows. Lower-is-better measures rank ascending; ties go the way `rank` orders them. The values are picked among those the scope keeps, and a `filters` condition on the field narrows the candidates too; one on another dimension in the row (such as one brand) ranks the values by the rows it keeps. Measure filters apply row by row afterwards. Not with the `answer` dimension.","properties":{"field":{"type":"string","description":"A dimension in `dimensions`, not `date`, `week` or `month`.","isRequired":true,"uniqueKey":"top.field","typeLabel":"string"},"by":{"type":"string","description":"The measure that ranks the values.","isRequired":true,"uniqueKey":"top.by","typeLabel":"string"},"limit":{"type":"integer","minimum":1,"maximum":1000,"isRequired":true,"uniqueKey":"top.limit","typeLabel":"integer"}},"required":["field","by","limit"],"uniqueKey":"top","typeLabel":"object"}},"required":["start_date","end_date","measures"],"uniqueKey":"","typeLabel":"object"},"examples":{"kpi_card":{"title":"kpi_card","value":{"start_date":"2026-09-01","end_date":"2026-09-28","compare_start_date":"2026-08-04","compare_end_date":"2026-08-31","dimensions":["brand"],"measures":["visibility","sentiment","avg_position"],"filters":[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35"]}]}},"rankings":{"title":"rankings","value":{"start_date":"2026-09-22","end_date":"2026-09-28","compare_start_date":"2026-09-15","compare_end_date":"2026-09-21","dimensions":["brand"],"measures":["visibility","mentions","avg_position","sentiment","rank"]}},"rank_among_competitors":{"title":"rank_among_competitors","description":"The scope ranks your brand and the brands marked as competitors against each other; the filter returns your row. `rank` is your place among them, from 1. `visibility` is unchanged.","value":{"start_date":"2026-10-01","end_date":"2026-10-20","dimensions":["brand"],"measures":["visibility","rank"],"scope":[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35","competitors"]}],"filters":[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35"]}]}},"platform_scope":{"title":"platform_scope","description":"Answer fields in the scope narrow which answers count, so every number is a share of ChatGPT answers in the US.","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["brand"],"measures":["visibility","answers"],"scope":[{"field":"service_provider","op":"in","values":["chatgpt"]},{"field":"country_code","op":"in","values":["US"]}]}},"topic_rows_search":{"title":"topic_rows_search","description":"`topic contains` in `filters` keeps the topic rows whose name contains the text; every number and rank stays as it was. In `scope` the same condition would count only the answers in those topics.","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["topic"],"measures":["visibility","answers","rank"],"filters":[{"field":"topic","op":"contains","value":"pricing"}]}},"timeline":{"title":"timeline","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["brand","date"],"measures":["visibility"],"order_by":[{"field":"date","dir":"asc"}],"limit":1000}},"sources_domains":{"title":"sources_domains","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["domain"],"measures":["citations","responses","citation_rate","avg_rank","share","rank","analysed_pages","mentioning_pages"],"related":["brands_on_page"],"limit":25}},"sources_gaps":{"title":"sources_gaps","description":"Off the row, `brand_on_page` and `competitors_on_page` in the scope narrow which cited pages count, so each domain is counted and ranked by its gap pages.","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["domain"],"measures":["citations","pages","rank"],"scope":[{"field":"brand_uuid","op":"in","values":["competitors"]},{"field":"brand_on_page","op":"in","values":["gap"]},{"field":"competitors_on_page","op":"gte","value":1}],"related":["brand_summary"],"limit":25}},"answers_list":{"title":"answers_list","value":{"start_date":"2026-09-01","end_date":"2026-09-28","dimensions":["answer","brand","mention_sentiment","service","prompt"],"measures":["avg_position","citations"],"filters":[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35"]}],"order_by":[{"field":"answered_at","dir":"desc"}],"related":["brands_in_answer"],"limit":25}},"narratives_list":{"title":"narratives_list","value":{"start_date":"2026-09-01","end_date":"2026-09-28","compare_start_date":"2026-08-04","compare_end_date":"2026-08-31","dimensions":["narrative","narrative_sentiment","theme","brand"],"measures":["answers","share","sentiment"],"filters":[{"field":"brand_uuid","op":"in","values":["4e1f77d6-35d8-4a29-9fb6-d83e51469b35"]}],"related":["narrative_description"],"order_by":[{"field":"share","dir":"desc"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"d757dcc6-6502-4beb-bc0c-7bbf41dda8aa":{"description":"The report dataset.","content":{"application/json":{"schema":{"type":"object","description":"The result of a report query: a column schema, raw rows keyed by column id, paging, optional related blocks and, for a single-row compare query, a benchmark.","properties":{"id":{"type":"string","enum":["visibility","sources","narratives","queries"],"description":"A report entity. `visibility`: brand visibility, mentions, position, sentiment and rank; with the `answer` dimension, one row per AI answer (a list, no compare window). `sources`: cited domains, hostnames, URLs and pages. `narratives`: reputation narratives, themes and sentiment (needs the Reputation capability). `queries`: the web searches AI platforms ran while answering, per search text, prompt, platform or time bucket; only searches the platform ran count, never suggested follow-up questions.","isRequired":true,"uniqueKey":"id","typeLabel":"enum\u003cstring>"},"title":{"type":"string","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"columns":{"type":"array","items":{"type":"object","description":"How to format one column of `rows`. `format: percent` values are decimals (0.42 means 42%).","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"columns.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"columns.items.[INDEX].title","typeLabel":"string"},"type":{"type":"string","enum":["dimension","measure","date"],"isRequired":true,"uniqueKey":"columns.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"format":{"type":"string","enum":["number","percent"],"isRequired":true,"uniqueKey":"columns.items.[INDEX].format","typeLabel":"enum\u003cstring>"},"decimals":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"columns.items.[INDEX].decimals.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"columns.items.[INDEX].decimals.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"columns.items.[INDEX].decimals","typeLabel":"integer | null"},"prefix":{"type":"string","isRequired":true,"uniqueKey":"columns.items.[INDEX].prefix","typeLabel":"string"},"suffix":{"type":"string","isRequired":true,"uniqueKey":"columns.items.[INDEX].suffix","typeLabel":"string"}},"required":["id","title","type","format","decimals","prefix","suffix"],"uniqueKey":"columns.items.[INDEX]","typeLabel":"object"},"description":"The row schema in display order: each dimension's columns, its key column first where it has one (`brand_uuid`, `prompt_uuid`, `topic_uuid`, `tag_uuid`, `service_provider`, `country_code`, ...) and then its label, then each measure followed by its `_compare` and `_change` columns when a compare window is set.","isRequired":true,"uniqueKey":"columns","typeLabel":"object[]"},"rows":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"rows.items.[INDEX]","typeLabel":"object"},"description":"One object per row, keyed by column id. Percent measures are decimals; a `null` compare column means the compare window had no matching row.","isRequired":true,"uniqueKey":"rows","typeLabel":"object[]"},"page":{"type":"object","properties":{"offset":{"type":"integer","isRequired":true,"uniqueKey":"page.offset","typeLabel":"integer"},"limit":{"type":"integer","isRequired":true,"uniqueKey":"page.limit","typeLabel":"integer"},"total":{"type":"integer","description":"Rows before the page was cut. Also correct on a page past the end.","isRequired":true,"uniqueKey":"page.total","typeLabel":"integer"}},"required":["offset","limit","total"],"isRequired":true,"uniqueKey":"page","typeLabel":"object"},"related":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","description":"One block entry. `row` is the index of the row it belongs to in `rows`; the other keys depend on the block. For example, a `sources_in_answer` entry carries `sources: [{url, title, domain, rank}]`, where `title` is the cited page's recorded title, or null when none was recorded.","properties":{"row":{"type":"integer","isRequired":true,"uniqueKey":"related.additionalProperties.items.[INDEX].row","typeLabel":"integer"}},"required":["row"],"additionalProperties":true,"uniqueKey":"related.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"related.additionalProperties","typeLabel":"object[]"},"description":"One list per requested block, keyed by block id.","isRequired":true,"uniqueKey":"related","typeLabel":"object"},"meta":{"type":"object","description":"What the report says about the query as a whole, so you need no second request to learn it.","properties":{"answers":{"type":"integer","description":"AI answers in the population of the window, after the population filters and before any dimension splits them: what every share and rate divides by.","isRequired":true,"uniqueKey":"meta.answers","typeLabel":"integer"},"answers_compare":{"oneOf":[{"type":"integer","description":"The same for the compare window; null without one. 0 means the compare window has no answers, so its empty values say nothing about change.","isRequired":true,"uniqueKey":"meta.answers_compare.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The same for the compare window; null without one. 0 means the compare window has no answers, so its empty values say nothing about change.","isRequired":true,"uniqueKey":"meta.answers_compare.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.answers_compare","typeLabel":"integer | null"},"page_competitors":{"oneOf":[{"type":"integer","description":"Sources only: how many tracked brands count as competitors on cited pages for this request (the comparison set selected by `brand_uuid` in scope, or every other tracked brand when omitted, never the independent `page_brand` lens). 0 means no page can be a gap. Null on other entities.","isRequired":true,"uniqueKey":"meta.page_competitors.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Sources only: how many tracked brands count as competitors on cited pages for this request (the comparison set selected by `brand_uuid` in scope, or every other tracked brand when omitted, never the independent `page_brand` lens). 0 means no page can be a gap. Null on other entities.","isRequired":true,"uniqueKey":"meta.page_competitors.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.page_competitors","typeLabel":"integer | null"},"change_breakdown":{"oneOf":[{"type":"array","items":{"type":"object","description":"One brand's visibility change, split by the `change_breakdown` block. `before` + every row's `contribution` + `mix_contribution` = `after`.","properties":{"brand_uuid":{"type":"string","format":"uuid","description":"The brand the rows are for.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].brand_uuid","typeLabel":"string\u003cuuid>"},"before":{"type":"number","description":"Visibility in the compare window, 0 to 1.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].before","typeLabel":"number"},"after":{"type":"number","description":"Visibility in the window, 0 to 1.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].after","typeLabel":"number"},"change":{"type":"number","description":"`after` − `before`.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].change","typeLabel":"number"},"relative_change":{"oneOf":[{"type":"number","description":"`after` ÷ `before` − 1; `null` when `before` is 0.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].relative_change.oneOf.0","typeLabel":"number"},{"type":"null","description":"`after` ÷ `before` − 1; `null` when `before` is 0.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].relative_change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].relative_change","typeLabel":"number | null"},"mix_contribution":{"type":"number","description":"The coverage \u0026 mix bar: the effect of the answer mix shifting between the rows.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].mix_contribution","typeLabel":"number"},"mix_share_of_change":{"oneOf":[{"type":"number","description":"`mix_contribution` as a share of `change`; `null` when the change is under a tenth of a percentage point.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].mix_share_of_change.oneOf.0","typeLabel":"number"},{"type":"null","description":"`mix_contribution` as a share of `change`; `null` when the change is under a tenth of a percentage point.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].mix_share_of_change.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX].mix_share_of_change","typeLabel":"number | null"}},"required":["brand_uuid","before","after","change","relative_change","mix_contribution","mix_share_of_change"],"uniqueKey":"meta.change_breakdown.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"With the `change_breakdown` related block on `visibility`: one entry per brand, the ends of its waterfall and its coverage \u0026 mix bar. `null` without the block.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","description":"One brand's visibility change, split by the `change_breakdown` block. `before` + every row's `contribution` + `mix_contribution` = `after`.","properties":{"brand_uuid":{"type":"string","format":"uuid","description":"The brand the rows are for."},"before":{"type":"number","description":"Visibility in the compare window, 0 to 1."},"after":{"type":"number","description":"Visibility in the window, 0 to 1."},"change":{"type":"number","description":"`after` − `before`."},"relative_change":{"oneOf":[{"type":"number","description":"`after` ÷ `before` − 1; `null` when `before` is 0."},{"type":"null","description":"`after` ÷ `before` − 1; `null` when `before` is 0."}]},"mix_contribution":{"type":"number","description":"The coverage \u0026 mix bar: the effect of the answer mix shifting between the rows."},"mix_share_of_change":{"oneOf":[{"type":"number","description":"`mix_contribution` as a share of `change`; `null` when the change is under a tenth of a percentage point."},{"type":"null","description":"`mix_contribution` as a share of `change`; `null` when the change is under a tenth of a percentage point."}]}},"required":["brand_uuid","before","after","change","relative_change","mix_contribution","mix_share_of_change"]},"description":"With the `change_breakdown` related block on `visibility`: one entry per brand, the ends of its waterfall and its coverage \u0026 mix bar. `null` without the block.","isRequired":true,"uniqueKey":"meta.change_breakdown.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.change_breakdown","typeLabel":"object[] | null"},"brands":{"oneOf":[{"type":"object","properties":{"count":{"type":"integer","description":"How many brands the aggregate rows combine: every tracked brand, or with a scope `brand_uuid` list the brands it picks, named in an answer or not. It is the count `visibility` averages over.","isRequired":true,"uniqueKey":"meta.brands.oneOf.0.count","typeLabel":"integer"}},"required":["count"],"description":"With the `brand_count` related block on `visibility`, without `brand` or `answer` in dimensions. Counted in the same query as `answers`. `null` without the block.","isRequired":true,"uniqueKey":"meta.brands.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"count":{"type":"integer","description":"How many brands the aggregate rows combine: every tracked brand, or with a scope `brand_uuid` list the brands it picks, named in an answer or not. It is the count `visibility` averages over."}},"required":["count"],"description":"With the `brand_count` related block on `visibility`, without `brand` or `answer` in dimensions. Counted in the same query as `answers`. `null` without the block.","isRequired":true,"uniqueKey":"meta.brands.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"meta.brands","typeLabel":"object | null"}},"required":["answers","answers_compare","page_competitors","change_breakdown","brands"],"isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"benchmarks":{"type":"array","items":{"type":"object","description":"Set on a single-row query with a compare window, so a KPI card can show the trend of the first measure.","properties":{"name":{"type":"string","examples":["Compare period"],"uniqueKey":"benchmarks.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","examples":["compare"],"uniqueKey":"benchmarks.items.[INDEX].type","typeLabel":"string"},"from":{"type":"string","format":"date-time","uniqueKey":"benchmarks.items.[INDEX].from","typeLabel":"string\u003cdate-time>"},"to":{"type":"string","format":"date-time","uniqueKey":"benchmarks.items.[INDEX].to","typeLabel":"string\u003cdate-time>"},"value":{"type":"number","description":"The first measure over the compare window.","uniqueKey":"benchmarks.items.[INDEX].value","typeLabel":"number"},"rows":{"type":"array","items":{"type":"object","uniqueKey":"benchmarks.items.[INDEX].rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"benchmarks.items.[INDEX].rows","typeLabel":"object[]"},"difference":{"oneOf":[{"type":"number","description":"Current minus compare.","uniqueKey":"benchmarks.items.[INDEX].difference.oneOf.0","typeLabel":"number"},{"type":"null","description":"Current minus compare.","uniqueKey":"benchmarks.items.[INDEX].difference.oneOf.1","typeLabel":"null"}],"uniqueKey":"benchmarks.items.[INDEX].difference","typeLabel":"number | null"},"ratio":{"oneOf":[{"type":"number","uniqueKey":"benchmarks.items.[INDEX].ratio.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"benchmarks.items.[INDEX].ratio.oneOf.1","typeLabel":"null"}],"uniqueKey":"benchmarks.items.[INDEX].ratio","typeLabel":"number | null"},"change":{"oneOf":[{"type":"number","description":"Relative change as a decimal.","uniqueKey":"benchmarks.items.[INDEX].change.oneOf.0","typeLabel":"number"},{"type":"null","description":"Relative change as a decimal.","uniqueKey":"benchmarks.items.[INDEX].change.oneOf.1","typeLabel":"null"}],"uniqueKey":"benchmarks.items.[INDEX].change","typeLabel":"number | null"},"favourable":{"type":"boolean","description":"Whether the move is good for the measure; `avg_position` counts down as good.","uniqueKey":"benchmarks.items.[INDEX].favourable","typeLabel":"boolean"},"aboveOrBelow":{"type":"string","enum":["above","below","equal"],"uniqueKey":"benchmarks.items.[INDEX].aboveOrBelow","typeLabel":"enum\u003cstring>"},"lowerIsBetter":{"type":"boolean","uniqueKey":"benchmarks.items.[INDEX].lowerIsBetter","typeLabel":"boolean"}},"uniqueKey":"benchmarks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"benchmarks","typeLabel":"object[]"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"empty":{"type":"string","description":"Text to show when `rows` is empty.","uniqueKey":"empty","typeLabel":"string"},"tooltip":{"oneOf":[{"type":"object","uniqueKey":"tooltip.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tooltip.oneOf.1","typeLabel":"null"}],"uniqueKey":"tooltip","typeLabel":"object | null"},"label":{"oneOf":[{"type":"string","uniqueKey":"label.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"label.oneOf.1","typeLabel":"null"}],"uniqueKey":"label","typeLabel":"string | null"},"badge":{"oneOf":[{"type":"string","uniqueKey":"badge.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"badge.oneOf.1","typeLabel":"null"}],"uniqueKey":"badge","typeLabel":"string | null"},"group":{"type":"string","uniqueKey":"group","typeLabel":"string"},"value":{"oneOf":[{"type":"number","description":"Headline value of the first measure when the result has exactly one row, otherwise 0 (null for sentiment). Null when sentiment is the headline measure and its score is unavailable.","uniqueKey":"value.oneOf.0","typeLabel":"number"},{"type":"null","description":"Headline value of the first measure when the result has exactly one row, otherwise 0 (null for sentiment). Null when sentiment is the headline measure and its score is unavailable.","uniqueKey":"value.oneOf.1","typeLabel":"null"}],"uniqueKey":"value","typeLabel":"number | null"},"column":{"type":"object","description":"How to format one column of `rows`. `format: percent` values are decimals (0.42 means 42%).","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"column.id","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"column.title","typeLabel":"string"},"type":{"type":"string","enum":["dimension","measure","date"],"isRequired":true,"uniqueKey":"column.type","typeLabel":"enum\u003cstring>"},"format":{"type":"string","enum":["number","percent"],"isRequired":true,"uniqueKey":"column.format","typeLabel":"enum\u003cstring>"},"decimals":{"oneOf":[{"type":"integer","isRequired":true,"uniqueKey":"column.decimals.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"column.decimals.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"column.decimals","typeLabel":"integer | null"},"prefix":{"type":"string","isRequired":true,"uniqueKey":"column.prefix","typeLabel":"string"},"suffix":{"type":"string","isRequired":true,"uniqueKey":"column.suffix","typeLabel":"string"}},"required":["id","title","type","format","decimals","prefix","suffix"],"uniqueKey":"column","typeLabel":"object"},"from":{"type":"string","format":"date","uniqueKey":"from","typeLabel":"string\u003cdate>"},"to":{"type":"string","format":"date","uniqueKey":"to","typeLabel":"string\u003cdate>"},"actions":{"type":"array","items":{"type":"object","uniqueKey":"actions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"actions","typeLabel":"object[]"}},"required":["id","title","columns","rows","page","related","meta","benchmarks"],"uniqueKey":"","typeLabel":"object"},"example":{"id":"visibility","title":"Visibility","description":"How brands appear in AI answers: totals per group, or one row per answer","empty":"No visibility data for the selected filters","tooltip":null,"label":null,"badge":null,"group":"Report","value":0.16157205,"column":{"id":"value","title":"Visibility","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},"from":"2026-09-01","to":"2026-09-28","columns":[{"id":"brand_uuid","title":"Brand id","type":"dimension","format":"number","decimals":null,"prefix":"","suffix":""},{"id":"brand","title":"Brand","type":"dimension","format":"number","decimals":null,"prefix":"","suffix":""},{"id":"visibility","title":"Visibility","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},{"id":"visibility_compare","title":"Visibility (compare)","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},{"id":"visibility_change","title":"Visibility (change)","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""}],"rows":[{"brand_uuid":"4e1f77d6-35d8-4a29-9fb6-d83e51469b35","brand":"Apple","visibility":0.16157205,"visibility_compare":0.16397849,"visibility_change":-0.0024064332}],"page":{"offset":0,"limit":100,"total":1},"related":{},"benchmarks":[{"name":"Compare period","type":"compare","from":"2026-08-04T00:00:00.000000Z","to":"2026-08-31T00:00:00.000000Z","value":0.16397849,"rows":[],"difference":-0.00240644,"ratio":0.99,"change":-0.01,"favourable":false,"aboveOrBelow":"below","lowerIsBetter":false}],"actions":[]},"examples":{"Example":{"title":"Example","value":{"id":"visibility","title":"Visibility","description":"How brands appear in AI answers: totals per group, or one row per answer","empty":"No visibility data for the selected filters","tooltip":null,"label":null,"badge":null,"group":"Report","value":0.16157205,"column":{"id":"value","title":"Visibility","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},"from":"2026-09-01","to":"2026-09-28","columns":[{"id":"brand_uuid","title":"Brand id","type":"dimension","format":"number","decimals":null,"prefix":"","suffix":""},{"id":"brand","title":"Brand","type":"dimension","format":"number","decimals":null,"prefix":"","suffix":""},{"id":"visibility","title":"Visibility","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},{"id":"visibility_compare","title":"Visibility (compare)","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""},{"id":"visibility_change","title":"Visibility (change)","type":"measure","format":"percent","decimals":1,"prefix":"","suffix":""}],"rows":[{"brand_uuid":"4e1f77d6-35d8-4a29-9fb6-d83e51469b35","brand":"Apple","visibility":0.16157205,"visibility_compare":0.16397849,"visibility_change":-0.0024064332}],"page":{"offset":0,"limit":100,"total":1},"related":{},"benchmarks":[{"name":"Compare period","type":"compare","from":"2026-08-04T00:00:00.000000Z","to":"2026-08-31T00:00:00.000000Z","value":0.16397849,"rows":[],"difference":-0.00240644,"ratio":0.99,"change":-0.01,"favourable":false,"aboveOrBelow":"below","lowerIsBetter":false}],"actions":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"af376ce7-4492-4c7f-90bd-aa1db76d38b6":{"description":"The query reads reputation data (the `narratives` entity, or a `carries_narrative`, `carries_theme` or `carries_sentiment` scope condition) and the team does not have the Reputation capability.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"9e600864-b6d8-420a-85b6-3afbd49356ee":{"description":"Project not found in the current team.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"9b053bd5-0537-4ff8-9d33-f3da3a7e7526":{"description":"Validation failed. `errors` is keyed by the offending path: `scope.0.field` or `filters.0.field` for the field, `scope.0` for the operator and the shape of the values, `scope.0.values` for the values themselves. A field in the wrong list says which list it belongs in. An id or a name the project does not have, in either list, names the value and says what the field matches; names compare ignoring letter case. An unknown answer-cut value (`mentions_brand`, `carries_narrative`, `carries_theme`, `cites_domain`, `mention_sentiment`, `carries_sentiment`) is a 422 at `scope.0.values` as well. A second `in` or `contains` condition on a cut where an answer can match several values (tags, `mentions_brand`, `cites_domain`, `carries_*`, `search_query`) is a 422 at its `scope.N.field` that names the first condition.","content":{"application/json":{"schema":{"type":"object","description":"Returned when one or more request parameters fail validation.","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"isRequired":true,"uniqueKey":"errors","typeLabel":"object"}},"required":["message","errors"],"uniqueKey":"","typeLabel":"object"},"examples":{"wrong_list":{"title":"wrong_list","value":{"message":"`mentions_brand` decides which answers are counted, so it belongs in scope, not filters.","errors":{"filters.0.field":["`mentions_brand` decides which answers are counted, so it belongs in scope, not filters."]}}},"id_in_name_field":{"title":"id_in_name_field","value":{"message":"Not a topic name of this project: 3f2c9a7e-1d4b-4c8e-9a51-2b7f0e6d8c13. topic matches names; topic_uuid matches ids.","errors":{"scope.0.values":["Not a topic name of this project: 3f2c9a7e-1d4b-4c8e-9a51-2b7f0e6d8c13. topic matches names; topic_uuid matches ids."]}}},"removed_answer_field":{"title":"removed_answer_field","value":{"message":"Use answer_uuid to pick answers, or answer_search to search their text.","errors":{"filters.0.field":["Use answer_uuid to pick answers, or answer_search to search their text."]}}},"repeated_cut":{"title":"repeated_cut","value":{"message":"scope.0 already cuts by mentions_brand. An answer can name several brands, so list them in one condition: in keeps the answers naming any of them.","errors":{"scope.1.field":["scope.0 already cuts by mentions_brand. An answer can name several brands, so list them in one condition: in keeps the answers naming any of them."]}}},"unknown_narrative":{"title":"unknown_narrative","value":{"message":"Not a narrative of this project: 9f1c3b2a-6d4e-4f7a-8c1b-2e5d7a9f0b34.","errors":{"scope.0.values":["Not a narrative of this project: 9f1c3b2a-6d4e-4f7a-8c1b-2e5d7a9f0b34."]}}},"unknown_sentiment":{"title":"unknown_sentiment","value":{"message":"Not a sentiment: angry. carries_sentiment takes positive, negative or neutral.","errors":{"scope.0.values":["Not a sentiment: angry. carries_sentiment takes positive, negative or neutral."]}}},"uncited_domain":{"title":"uncited_domain","value":{"message":"Not a cited domain: exampel.com. cites_domain matches domain names, such as example.com.","errors":{"scope.0.values":["Not a cited domain: exampel.com. cites_domain matches domain names, such as example.com."]}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"4679da14-28d3-4f79-a47f-b1bcec9e0cbd":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"token","description":"Team API key created in Team Settings. Use it with URLs for the same team.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"585d9884-bdce-435f-8d57-dd957b4940cc":{"url":"https://app.surfacd.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"token","description":"Team API key created in Team Settings. Use it with URLs for the same team.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Team API key created in Team Settings. Use it with URLs for the same team.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"surfacd","siteName":"Surfacd","title":"Run a Report Query - Surfacd","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T18:08:51.082Z","originalFileLocation":"api-reference/reports/run-a-report-query.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Runs one report query against the project and returns a dataset. The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget. - Rows are dimension groups. dimensions: [\u0026quot;brand\u0026quot;] is one row per brand, [\u0026quot;brand\u0026quot;, \u0026quot;service\u0026quot;] one row per brand per platform, [\u0026quot;brand\u0026quot;, \u0026quot;date\u0026quot;] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, [\u0026quot;answer\u0026quot;] is one row per AI answer, a list. - scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [, competitors] ranks you among your marked competitors. - filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [] to filters beside the scope above and you get your row alone, ranked among your competitors. - Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project. - Compare window. compare_start_date and compare_end_date run the same query over a second window and add _compare and _change columns, usable in filters and order_by. Time buckets pair by position from each window\u0026#x27;s start. A single-row result also fills benchmarks[0] for a KPI card. - Paging. limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is \u0026quot;top five per group\u0026quot;. Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank. - Related blocks. related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row. GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Surfacd\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run a Report Query - Surfacd\">\u003cmeta data-mint-head property=\"og:description\" content=\"Runs one report query against the project and returns a dataset. The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget. - Rows are dimension groups. dimensions: [\u0026quot;brand\u0026quot;] is one row per brand, [\u0026quot;brand\u0026quot;, \u0026quot;service\u0026quot;] one row per brand per platform, [\u0026quot;brand\u0026quot;, \u0026quot;date\u0026quot;] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, [\u0026quot;answer\u0026quot;] is one row per AI answer, a list. - scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [, competitors] ranks you among your marked competitors. - filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [] to filters beside the scope above and you get your row alone, ranked among your competitors. - Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project. - Compare window. compare_start_date and compare_end_date run the same query over a second window and add _compare and _change columns, usable in filters and order_by. Time buckets pair by position from each window\u0026#x27;s start. A single-row result also fills benchmarks[0] for a KPI card. - Paging. limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is \u0026quot;top five per group\u0026quot;. Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank. - Related blocks. related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row. GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Surfacd\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.surfacd.com/api-reference/reports/run-a-report-query\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://surfacd.mintlify.site/_mintlify/api/og/v2?division=Reports\u0026amp;title=Run+a+Report+Query\u0026amp;description=Runs+one+report+query+against+the+project+and+returns+a+dataset.%0A%0AThe+body+says+what+to+group+by+%28%60dimensions%60%29%2C+what+to+compute+%28%60measures%60%29%2C+what+to+count+and\u0026amp;theme=35819ffbe2459afb1f458868\u0026amp;signature=12988024b8b939fb49b7285e12bca70cc29e58f383ea895e3948c507c95577b7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run a Report Query - Surfacd\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Runs one report query against the project and returns a dataset. The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget. - Rows are dimension groups. dimensions: [\u0026quot;brand\u0026quot;] is one row per brand, [\u0026quot;brand\u0026quot;, \u0026quot;service\u0026quot;] one row per brand per platform, [\u0026quot;brand\u0026quot;, \u0026quot;date\u0026quot;] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, [\u0026quot;answer\u0026quot;] is one row per AI answer, a list. - scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [, competitors] ranks you among your marked competitors. - filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [] to filters beside the scope above and you get your row alone, ranked among your competitors. - Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project. - Compare window. compare_start_date and compare_end_date run the same query over a second window and add _compare and _change columns, usable in filters and order_by. Time buckets pair by position from each window\u0026#x27;s start. A single-row result also fills benchmarks[0] for a KPI card. - Paging. limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is \u0026quot;top five per group\u0026quot;. Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank. - Related blocks. related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row. GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://surfacd.mintlify.site/_mintlify/api/og/v2?division=Reports\u0026amp;title=Run+a+Report+Query\u0026amp;description=Runs+one+report+query+against+the+project+and+returns+a+dataset.%0A%0AThe+body+says+what+to+group+by+%28%60dimensions%60%29%2C+what+to+compute+%28%60measures%60%29%2C+what+to+count+and\u0026amp;theme=35819ffbe2459afb1f458868\u0026amp;signature=12988024b8b939fb49b7285e12bca70cc29e58f383ea895e3948c507c95577b7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/surfacd/CCDK0O2pAaAm02eC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Surfacd\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0022FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.surfacd.com/api-reference/reports/run-a-report-query\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/reports/run-a-report-query.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.surfacd.com/#organization\",\"name\":\"Surfacd\",\"url\":\"https://docs.surfacd.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/surfacd/65GopWtG2yt60uTI/logo/logo.svg?fit=max\u0026auto=format\u0026n=65GopWtG2yt60uTI\u0026q=85\u0026s=85d232e50682fcc869278871aa268280\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.surfacd.com#website\",\"name\":\"Surfacd\",\"url\":\"https://docs.surfacd.com\",\"publisher\":{\"@id\":\"https://docs.surfacd.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query#webpage\",\"url\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query\",\"name\":\"Run a Report Query\",\"description\":\"Runs one report query against the project and returns a dataset. The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget. - Rows are dimension groups. dimensions: [\\\"brand\\\"] is one row per brand, [\\\"brand\\\", \\\"service\\\"] one row per brand per platform, [\\\"brand\\\", \\\"date\\\"] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, [\\\"answer\\\"] is one row per AI answer, a list. - scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [, competitors] ranks you among your marked competitors. - filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [] to filters beside the scope above and you get your row alone, ranked among your competitors. - Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project. - Compare window. compare_start_date and compare_end_date run the same query over a second window and add _compare and _change columns, usable in filters and order_by. Time buckets pair by position from each window's start. A single-row result also fills benchmarks[0] for a KPI card. - Paging. limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is \\\"top five per group\\\". Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank. - Related blocks. related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row. GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.\",\"dateModified\":\"2026-11-12T18:08:51.082Z\",\"isPartOf\":{\"@id\":\"https://docs.surfacd.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Surfacd\",\"item\":\"https://docs.surfacd.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run a Report Query\",\"item\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query#apireference\",\"headline\":\"Run a Report Query\",\"name\":\"Run a Report Query\",\"description\":\"Runs one report query against the project and returns a dataset. The body says what to group by (dimensions), what to compute (measures), what to count and rank (scope) and which rows to return (filters). Every app report can be rebuilt with this endpoint; the Reports API guide in the docs shows the body for each page and widget. - Rows are dimension groups. dimensions: [\\\"brand\\\"] is one row per brand, [\\\"brand\\\", \\\"service\\\"] one row per brand per platform, [\\\"brand\\\", \\\"date\\\"] a timeline. Omit dimensions for one project-level row. A brand with no mentions still gets a zero-filled row. On visibility, [\\\"answer\\\"] is one row per AI answer, a list. - scope decides what is counted and ranked. Answer fields (service_provider, country_code, topic_uuid, tag_uuid, prompt_uuid and their name fields service, country, topic, tag, prompt, plus branded, mentions_brand, cites_domain, mention_sentiment outside visibility, carries_narrative, carries_theme, carries_sentiment, search_query) narrow which AI answers count and so change every number, including denominators. The lenses (answer_brand, page_brand) name the brand the answer or page columns describe. Page conditions on sources narrow which cited pages count. Row fields such as brand_uuid keep the rows that take part in rank, top and the compare window: brand_uuid in [, competitors] ranks you among your marked competitors. - filters decides which rows come back. Row fields, dimension columns, measures and compare bands hide rows and never change a number, rank included. Add brand_uuid in [] to filters beside the scope above and you get your row alone, ranked among your competitors. - Key fields and name fields. A field matches the row column of the same name: brand_uuid, topic_uuid, tag_uuid, prompt_uuid, narrative_uuid, theme_uuid, answer_uuid, service_provider and country_code take ids, slugs and codes; brand, topic, tag, prompt, narrative, theme, service and country take names with in / not_in, ignoring letter case, and search them with contains. Values are checked against the project. - Compare window. compare_start_date and compare_end_date run the same query over a second window and add _compare and _change columns, usable in filters and order_by. Time buckets pair by position from each window's start. A single-row result also fills benchmarks[0] for a KPI card. - Paging. limit (default 100, max 1000) and offset; page.total is the row count before the page was cut. rank is assigned among the rows the scope keeps, before any filter, so rank lte 5 in filters is \\\"top five per group\\\". Ties never share a place, and a row with nothing to rank (a brand not named in its group, a narrative no answer carries, a prompt that ran no search) has a null rank. - Related blocks. related adds per-row lists such as brands_on_page and brand_summary (sources), top_brands (visibility), brands_in_answer, sources_in_answer, answer_text, searches_in_answer, narratives_in_answer (visibility with the answer dimension; narratives need Reputation and brand in dimensions or answer_brand in scope), narrative_description, theme_description, evidence (narratives), prompts_for_query and services_for_row (queries). Each entry carries row, the index of its row. GET /api/v1/reports/{entity}/schema lists what each entity accepts in scope and filters, and GET /api/v1/projects/{project}/reports/values/{field} lists the identifiers and names a field takes. The narratives entity and the carries_narrative, carries_theme and carries_sentiment scope fields need the Reputation capability.\",\"url\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query\",\"mainEntityOfPage\":{\"@id\":\"https://docs.surfacd.com/api-reference/reports/run-a-report-query#webpage\"},\"dateModified\":\"2026-11-12T18:08:51.082Z\",\"publisher\":{\"@id\":\"https://docs.surfacd.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.surfacd.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Surfacd\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Surfacd\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/reports/run-a-report-query.md","siteName":"Surfacd","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/docs/introduction"}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"List available countries","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/countries","href":"/api-reference/reference/list-available-countries"},{"title":"List available platforms","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/platforms","href":"/api-reference/reference/list-available-platforms"},{"title":"List domain categories","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/domain-categories","href":"/api-reference/reference/list-domain-categories"},{"title":"List Brands","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/brands","href":"/api-reference/reference/list-brands"},{"title":"List Topics","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/topics","href":"/api-reference/reference/list-topics"}]},{"group":"Projects","pages":[{"title":"List Projects","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects","href":"/api-reference/projects/list-projects"},{"title":"Create Project","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects","href":"/api-reference/projects/create-project"},{"title":"Show Project","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}","href":"/api-reference/projects/show-project"},{"title":"Delete Project","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/projects/{project}","href":"/api-reference/projects/delete-project"},{"title":"Update Project","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}","href":"/api-reference/projects/update-project"},{"title":"Archive or Restore Project","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/archive","href":"/api-reference/projects/archive-or-restore-project"},{"title":"Promote Pitch Project","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/promote","href":"/api-reference/projects/promote-pitch-project"},{"title":"Manage Project Sharing","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/share","href":"/api-reference/projects/manage-project-sharing"},{"title":"List Projects (team-scoped)","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams/{teamUuid}/projects","href":"/api-reference/projects/list-projects-team-scoped"},{"title":"Create Project (team-scoped)","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/teams/{teamUuid}/projects","href":"/api-reference/projects/create-project-team-scoped"}]},{"group":"Prompts","pages":[{"title":"List Prompts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/prompts","href":"/api-reference/prompts/list-prompts"},{"title":"Create Prompts","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects/{project}/prompts","href":"/api-reference/prompts/create-prompts"},{"title":"Show Prompt","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/prompts/{prompt}","href":"/api-reference/prompts/show-prompt"},{"title":"Delete Prompt","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/projects/{project}/prompts/{prompt}","href":"/api-reference/prompts/delete-prompt"},{"title":"Update Prompt","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/prompts/{prompt}","href":"/api-reference/prompts/update-prompt"},{"title":"Update Prompt Tags","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/prompts/tags","href":"/api-reference/prompts/update-prompt-tags"}]},{"group":"Reporting","pages":[{"title":"Brand Rankings","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/brand-rankings","href":"/api-reference/reporting/brand-rankings"},{"title":"Visibility Over Time","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/visibility-over-time","href":"/api-reference/reporting/visibility-over-time"},{"title":"Visibility Change Decomposition","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/visibility-decomposition","href":"/api-reference/reporting/visibility-change-decomposition"},{"title":"Brand Mentions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/mentions","href":"/api-reference/reporting/brand-mentions"},{"title":"Matrix Analysis","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/matrix-analysis","href":"/api-reference/reporting/matrix-analysis"},{"title":"Sources (Domains)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/sources-data/domains","href":"/api-reference/reporting/sources-domains"},{"title":"Sources (Hostnames)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/sources-data/hostnames","href":"/api-reference/reporting/sources-hostnames"},{"title":"Sources (URLs)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/sources-data/urls","href":"/api-reference/reporting/sources-urls"},{"title":"Sources (Category Distribution)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/sources-data/category-distribution","href":"/api-reference/reporting/sources-category-distribution"},{"title":"Get Answer","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/responses/{response}","href":"/api-reference/reporting/get-answer"}]},{"group":"Tags","pages":[{"title":"List Tags","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/tags","href":"/api-reference/tags/list-tags"},{"title":"Create Tag","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects/{project}/tags","href":"/api-reference/tags/create-tag"},{"title":"Show Tag","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/tags/{tag}","href":"/api-reference/tags/show-tag"},{"title":"Delete Tag","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/projects/{project}/tags/{tag}","href":"/api-reference/tags/delete-tag"},{"title":"Update Tag","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/projects/{project}/tags/{tag}","href":"/api-reference/tags/update-tag"}]},{"group":"Reputation","pages":[{"title":"Get Theme Record","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/themes/{theme}","href":"/api-reference/reputation/get-theme-record"},{"title":"Get Narrative Record","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/narratives/{narrative}","href":"/api-reference/reputation/get-narrative-record"},{"title":"Reputation Overview","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/overview","href":"/api-reference/reputation/reputation-overview"},{"title":"List Themes","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/themes","href":"/api-reference/reputation/list-themes"},{"title":"Get Theme","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/themes/{theme}","href":"/api-reference/reputation/get-theme"},{"title":"List Narratives","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/narratives","href":"/api-reference/reputation/list-narratives"},{"title":"Get Narrative","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/narratives/{narrative}","href":"/api-reference/reputation/get-narrative"},{"title":"List Responses","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/responses","href":"/api-reference/reputation/list-responses"},{"title":"Get Response","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/responses/{response}","href":"/api-reference/reputation/get-response"},{"title":"Reputation Sources (Domains)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/sources/domains","href":"/api-reference/reputation/reputation-sources-domains"},{"title":"Reputation Sources (URLs)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/sources/urls","href":"/api-reference/reputation/reputation-sources-urls"},{"title":"Reputation Sources (Prompts)","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/sources/prompts","href":"/api-reference/reputation/reputation-sources-prompts"},{"title":"Sentiment Over Time","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/sentiment-series","href":"/api-reference/reputation/sentiment-over-time"},{"title":"Sentiment by Platform","deprecated":true,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reputation/sentiment-by-model","href":"/api-reference/reputation/sentiment-by-platform"}]},{"group":"Team","pages":[{"title":"Get Team Settings","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams/{teamUuid}","href":"/api-reference/team/get-team-settings"},{"title":"Get Team Usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams/{teamUuid}/usage","href":"/api-reference/team/get-team-usage"},{"title":"List Team Members","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams/{teamUuid}/members","href":"/api-reference/team/list-team-members"},{"title":"Invite Team Member","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/teams/{teamUuid}/members","href":"/api-reference/team/invite-team-member"},{"title":"Show Team Member","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams/{teamUuid}/members/{email}","href":"/api-reference/team/show-team-member"},{"title":"Remove Team Member","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/teams/{teamUuid}/members/{email}","href":"/api-reference/team/remove-team-member"},{"title":"Update Member Role","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/teams/{teamUuid}/members/{email}","href":"/api-reference/team/update-member-role"},{"title":"List teams","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/teams","href":"/api-reference/team/list-teams"},{"title":"Get Team Settings","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/team","href":"/api-reference/team/get-team-settings-1"},{"title":"Get Team Usage","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/team/usage","href":"/api-reference/team/get-team-usage-1"},{"title":"List Team Members","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/team/members","href":"/api-reference/team/list-team-members-1"},{"title":"Invite Team Member","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/team/members","href":"/api-reference/team/invite-team-member-1"},{"title":"Show Team Member","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/team/members/{email}","href":"/api-reference/team/show-team-member-1"},{"title":"Remove Team Member","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/team/members/{email}","href":"/api-reference/team/remove-team-member-1"},{"title":"Update Member Role","description":"Changes a member's role. The team owner's role cannot be changed, and Owner cannot be assigned (ownership is transferred through a separate flow). Operates on the token's default team; use the /teams/{teamUuid} variant to target a specific team.","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/team/members/{email}","href":"/api-reference/team/update-member-role-1"}]},{"group":"Reports","pages":[{"title":"Run a Report Query","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/projects/{project}/reports/{entity}","href":"/api-reference/reports/run-a-report-query"},{"title":"List Report Field Values","description":"The values one scope or filter field accepts for the project, so a condition can be filled without guessing. A key field lists its keys with their names as labels: brand UUIDs (`brand_uuid`; primary brand first; `brand_uuid` and `mentions_brand` start with `competitors`, the brands marked as competitors), narrative, theme, prompt, topic (`no_topic` first) and tag (`untagged` first) UUIDs, platform slugs (`service_provider`) and country codes (`country_code`), so a client never maps codes to names itself. A name field (`brand`, `topic`, `tag`, `prompt`, `service`, `country`, `narrative`, `theme`) lists the names. Also listed: the domains the project's answers cite (most cited first) and the fixed vocabularies (`page_type`, `category`, `brand_on_page`, `mention_sentiment`, `page_sentiment`, `narrative_sentiment`, `carries_sentiment`).\n\nPut the returned `value` in the condition; `label` and `description` are for people. `search` matches the label case-insensitively (prompts, domains and narratives search in the database). `total` counts the matches before `limit`. The narrative and theme fields need the Reputation capability.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects/{project}/reports/values/{field}","href":"/api-reference/reports/list-report-field-values"},{"title":"Report Entity Schema","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/reports/{entity}/schema","href":"/api-reference/reports/report-entity-schema"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Run a Report Query - Surfacd","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}