Get a dataset as CSV
The same dataset as CSV (for Google Sheets IMPORTDATA).
/api/v1/domains/{domain}/datasets/{name}.csvThis is the one endpoint that also takes the key as ?key=, because spreadsheets can't send headers. Anyone with the URL can read the data, so use a dedicated read key you can revoke.
Path parameters
domainstringRequiredThe domain's host, like acme.example, or its ID. List them with List domains.
namestringRequiredThe dataset: visibility, prompts, sources or answers.
visibilitypromptssourcesanswersQuery parameters
keystringYour API key, for tools that can't send headers (Google Sheets IMPORTDATA). Use a dedicated read key.
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
(body)text/csvA header row, then one row per record. Values that start with =, +, - or @ are prefixed with '.
Every response includes the domain and the filters that were applied. Errors use the standard error object.