API reference
Read an export
GET /v1/exports/{exportId}
Returns the export owned by the key’s workspace. A successful GET is 200 for every state, failed, expired and erased included:
inspect state and errorCode. A file lives for 7 days from the creation of the export, then the export reads expired. An export whose file was
removed because a field it carries was switched off for output reads erased.
A CSV opened on its own carries no freshness or limitation flags. They are repeated here, and so is the source of a YouTube export (sourceAttribution). A manifest.json is written beside the file but no route serves it yet.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”The current export record. A succeeded export’s file is at /v1/exports/{exportId}/file.
The export row as a caller may see it. Closed, so a field not listed here is not returned.
object
pending and running are in progress. succeeded has a file. failed has none and names errorCode. expired is a file
removed after 7 days. erased is a file removed because a field it carries was switched off for output.
The X-Request-Id of the create call.
When the file is removed. null until the export succeeds.
Rows written, header excluded. null until the export succeeds. Equal to the rows the pinned query returns, or the export fails.
Digest of the file, as written.
Why a failed export failed; null in every other state.
The field ids of the file’s columns, in order. They are the header row.
From the extraction instants of the pinned snapshots, copied from the query result at plan time; null when the publication carries none. Over several sources
one record spans them: the oldest and newest extraction of any source, stale when any source is stale by its own threshold, and the smallest of their thresholds.
object
True when the oldest snapshot is older than thresholdHours.
Hours after which the oldest snapshot is stale: two effective refresh cadences plus the source finality lag.
The profile’s limitations, then the pinned generation’s history limitations (Shopify
commerce, sorted), then, over several sources, account_local_dates when the accounts’
time zones differ, then stale_source_snapshot when the pinned snapshot is stale (for any
source). Surface them wherever the number is shown.
Present on an export of a YouTube profile only, copied from the query result at plan time. The CSV has no room for it (its first line is the header row), so show it with the file wherever the file is offered.
object
The channel the values were read from (the request’s account).
The channel’s public YouTube page.
The channel’s analytics page in YouTube Studio.
The CSV options of a CSV export; null for a Parquet export.
object
Text columns only; a value starting with =, +, -, @, a tab or a carriage return is prefixed with a single quote.
Example
{ "exportId": "exp_8d2c41f0a6", "state": "succeeded", "format": "csv", "requestId": "7b6b8f4e-3d0b-4f64-9a43-2f8f5f1d2a10", "createdAt": "2026-10-26T09:30:00.000Z", "expiresAt": "2026-11-02T09:30:00.000Z", "rows": 5, "bytes": 103, "sha256": "3f786850e387550fdab836ed7e6dc881de23001b3f786850e387550fdab836ed", "errorCode": null, "fields": [ "date", "sessions" ], "freshness": { "oldestExtractedAt": "2026-09-04T01:02:03.000Z", "newestExtractedAt": "2026-09-05T01:02:03.000Z", "stale": true, "thresholdHours": 26 }, "flags": [ "provider_may_revise_recent_data", "not_independently_reconciled", "stale_source_snapshot" ], "csv": { "bom": true, "formulaNeutralization": "text-columns-single-quote" }}invalid_query — the URL carried a query delimiter. This route reads no query parameters.
object
object
object
unauthorized — missing, unknown, expired or revoked key.
object
object
object
Headers
Section titled “Headers ”forbidden — the key lacks the required scope, or the workspace has no plan that allows this.
object
object
object
export_not_found — the workspace has no such export. An export of another workspace is indistinguishable from one that does not exist.
object
object
object
method_not_allowed — Allow names the method this route accepts.
object
object
object
Headers
Section titled “Headers ”rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up.
It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is
limited the same way, after its lookup, by the key that issued it and the export’s workspace.
Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining
count is returned. The limits themselves are not published here.
object
object
object
Headers
Section titled “Headers ”export_unavailable — the export store could not be reached. Retry with backoff.