Get metrics
Headline metrics with sample sizes and changes.
/api/v1/domains/{domain}/metricsPath parameters
domainstringRequiredThe domain's host, like acme.example, or its ID. List them with List domains.
Query parameters
rangestringdefault 30dHow far back to count: 7d, 30d, 90d or all. The previous period is the same length, just before.
7d30d90dallsurfacestringLimit to one surface, written engine:lane, e.g. chatgpt_app:chat.
topicstringLimit to prompts in one topic (exact name).
brandedstringdefault unbrandedWhether to count prompts that name your brand: unbranded (default), all or branded.
unbrandedallbrandedReturns
kpis.visibilityrate object + changeAnswers that name you, out of all answers. See Visibility.
kpis.citationsrate object + changeAnswers that cite a URL on a domain you own.
kpis.sovobjectShare of voice: k your mentions, n mentions of you and tracked competitors, rate, and prev for the previous period.
kpis.positionobjectavg mean rank where you're named (1 is first), n answers it's based on, top1 answers where you were first, prev the previous period's average.
kpis.sentimentobjectpositive, neutral and negative counts of your mentions, out of n.
kpis.answersintegerAnswers counted after filters.
kpis.promptsintegerDistinct prompts behind them.
kpis.runsintegerRuns in the period.
surfacesarraySurfaces with data in the period, as {key, label}. Pass a key back as surface.
topicsarrayTopic names you can pass as topic.
filtersobjectThe filters that were applied, after defaults.
Every response includes the domain and the filters that were applied. Errors use the standard error object.