Docs Sign inGet started
API reference · Metrics

Get metrics

Headline metrics with sample sizes and changes.

GET/api/v1/domains/{domain}/metrics

Path parameters

domainstringRequired

The domain's host, like acme.example, or its ID. List them with List domains.

Query parameters

rangestringdefault 30d

How far back to count: 7d, 30d, 90d or all. The previous period is the same length, just before.

7d30d90dall
surfacestring

Limit to one surface, written engine:lane, e.g. chatgpt_app:chat.

topicstring

Limit to prompts in one topic (exact name).

brandedstringdefault unbranded

Whether to count prompts that name your brand: unbranded (default), all or branded.

unbrandedallbranded

Returns

kpis.visibilityrate object + change

Answers that name you, out of all answers. See Visibility.

kpis.citationsrate object + change

Answers that cite a URL on a domain you own.

kpis.sovobject

Share of voice: k your mentions, n mentions of you and tracked competitors, rate, and prev for the previous period.

kpis.positionobject

avg 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.sentimentobject

positive, neutral and negative counts of your mentions, out of n.

kpis.answersinteger

Answers counted after filters.

kpis.promptsinteger

Distinct prompts behind them.

kpis.runsinteger

Runs in the period.

surfacesarray

Surfaces with data in the period, as {key, label}. Pass a key back as surface.

topicsarray

Topic names you can pass as topic.

filtersobject

The filters that were applied, after defaults.

Every response includes the domain and the filters that were applied. Errors use the standard error object.