Skip to main content
POST

Authorizations

Authorization
string
header
required

Team API key created in Team Settings. Use it with URLs for the same team.

Path Parameters

project
string<uuid>
required

Project UUID.

entity
enum<string>
required

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.

start_date
string<date>
required

Inclusive start of the window.

end_date
string<date>
required

Inclusive end of the window, on or after start_date.

measures
string[]
required

The numbers to compute per row. The schema endpoint lists the entity's measures.

Minimum array length: 1
compare_start_date
string<date> | null

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.

compare_end_date
string<date> | null

Required when compare_start_date is present; on or after it.

compare_rows
enum<string>
default:current

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.

Available options:
current,
previous,
any
dimensions
string[]

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.

scope
object[]

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:
filters
object[]

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:
order_by
object[]

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.

limit
integer
default:100
Required range: 1 <= x <= 1000
offset
integer
default:0
Required range: x >= 0

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.

top
object

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.

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.

id
enum<string>
required

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
title
string
required
columns
object[]
required

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.

rows
object[]
required

One object per row, keyed by column id. Percent measures are decimals; a null compare column means the compare window had no matching row.

page
object
required

One list per requested block, keyed by block id.

meta
object
required

What the report says about the query as a whole, so you need no second request to learn it.

benchmarks
object[]
required
description
string
empty
string

Text to show when rows is empty.

tooltip
object | null
label
string | null
badge
string | null
group
string
value
number | null

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.

column
object

How to format one column of rows. format: percent values are decimals (0.42 means 42%).

from
string<date>
to
string<date>
actions
object[]