Skip to content

Dates, time zone and filters

Every report endpoint speaks the same filter language. Once you have learned it, whatever you write in the visibility report you write the same way in the citation report.

The range is given with two parameters and both ends are inclusive.

ParameterTypeFormatDefault
date_fromstringYYYY-MM-DDLast 30 days
date_tostringYYYY-MM-DDToday
periodstringlast_7d, last_30d, last_90d, mtd, qtd, ytdnone

If you use period you do not send date_from and date_to; sending both together returns 400 invalid_parameter.

Terminal window
?date_from=2026-07-01&date_to=2026-07-31
?period=last_30d

The date of a measurement day is not the day the run finished, it is the day assigned to that run in the runs table. In the database this column is called date_iso and holds a YYYYMMDD value; the API converts it to an ISO 8601 date and returns it in the date field.

The default is UTC. All timestamps are returned in ISO 8601 with a Z suffix: 2026-08-27T09:12:44Z.

ParameterTypeDescription
timezonestringIANA time zone name, for example Europe/Istanbul. It only shifts day boundaries

The only thing that changes when you pass timezone is the moment at which daily buckets start and end. The timestamps that come back are still UTC; converting them on the client side is your job. This separation is kept on purpose, because two teams reading the same data from two different time zones should see the same row.

Where it matters most is the AI traffic report: server logs are accurate to the second, and choosing Europe/Istanbul shifts a daily bucket by three hours relative to UTC.

Dimension filters take comma separated multiple values and work with or logic. Between different dimensions the logic is and.

ParameterTypeAccepted valuesSource
brand_idUUIDA brand in your organizationbrands.id
platformstringchat_gpt, gemini, claude, perplexity, aimodeanswers.platform
topicstringTopic key, for example hediyelik, plus _othertopics.key
topic_idUUIDTopic idtopics.id
prompt_typestringbrand, non-brandprompts.type
intentstringinformation, recommendation, comparison, purchase, price, usage, brand, trustprompts.intent
prompt_idUUIDA single promptprompts.id
regionstringISO 3166-1 alpha-2, for example TR, GB, DEbrands.country_iso
languagestringISO 639-1, for example tr, enbrands.language
personaUUIDPersona idOn the roadmap

Topic keys are written in the language the brand is measured in, which is why the example above is Turkish; the parameter itself behaves the same in every language.

Platform values are the system’s keys, not the labels shown in the interface. The mapping is:

KeyName in the interface
chat_gptChatGPT
geminiGemini
claudeClaude
perplexityPerplexity
aimodeGoogle AI Mode

region and language are not dimensions that vary inside a measurement. A brand is set up with one market and one language; both live on the brands table. In practice these two filters are therefore a shorthand for “which brands in the organization should be reported”, and they are redundant once you pass brand_id. If you want to track the same brand in two markets, the right way is a second brand record; the reasoning is explained on the market, language and persona page.

Terminal window
# single value
?platform=perplexity
# multiple values, or logic: ChatGPT or Perplexity
?platform=chat_gpt,perplexity
# different dimensions, and logic: non-branded prompts, on Perplexity only
?platform=perplexity&prompt_type=non-brand
# all together
?brand_id=8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5&period=last_30d&timezone=Europe/Istanbul&platform=chat_gpt,gemini&topic=hediyelik,kurumsal&prompt_type=non-brand

Rules:

  • An unknown parameter is not ignored, it is an error. If you write platfrom=gemini the response is 400 unknown_parameter. Silent ignoring is what makes you take a wrong number for a right one.
  • An unknown value is an error. A call with platform=copilot returns 400 invalid_parameter with platform in the error.field field.
  • An empty result is not an error. If the filter is valid but no row matches, you get 200 and an empty data array.
  • Values must be URL encoded. Topic keys carrying non-ASCII characters and values with a slash in them, such as Europe/Istanbul, have to be encoded.

sort, limit and cursor work the same way in every list and are described on the response format page. The filter set and the cursor are bound together: if you use a cursor with a different filter set you get 400 cursor_filter_mismatch.

SymptomCauseFix
The numbers differ from the dashboardThe date range and platform filter selected in the dashboard differ from the ones in the API callUse the same date_from, date_to and platform values on both sides
Daily buckets are shifted by one daytimezone was not passed, so the day was split on UTCAdd timezone=Europe/Istanbul
The topic filter returns nothingThe topic label was written instead of the keyUse the topics.key value, not the label shown in the interface
Prompts without a topic disappearPrompts with no topic are collected under the _other keyAdd _other to the filter or drop the topic filter
400 cursor_filter_mismatchThe filter changed between pagesWhen using a cursor, repeat every filter from the first call exactly

feedback.question