Get a prompt
One prompt: metrics, brands, sources, latest answers.
/api/v1/domains/{domain}/prompts/{prompt_id}Path parameters
domainstringRequiredThe domain's host, like acme.example, or its ID. List them with List domains.
prompt_idstringRequiredA prompt's id, from List prompts.
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
promptstringThe question.
kpisobjectThe same headline numbers as Get metrics, for this prompt.
brandsarrayBrands named in its answers, with visibility.
surfacesarrayPer surface: visibility, change, citations and position.
sourcesarrayThe ten sites cited most, with their top URLs.
latest_answersarrayEvery answer from the latest run.
Every response includes the domain and the filters that were applied. Errors use the standard error object.