Datarova
Exports

list_exports

List exports · Read-only, idempotent

List one page of the account's existing exports, newest first, with each export's type-specific parameters, state and file metadata.

  • Use exports[].id with get_export, get_export_records and get_export_download_link.
  • A cursor for an export that no longer exists can return an empty page; start again without it.
  • Use this to recover a request_export whose response was lost.

Cost and limits: Costs no credits.

Input

NameTypeRequiredDescription
limitintegerOptionalExports per page, 1 to 100. Default 50. Minimum 1. Maximum 100.
cursorstring (uuid)Optionalpage.next_cursor from the previous page, unchanged, with the same filters and limit. Omit for the first page. Pattern in the full JSON Schema below.
export_type"ranks_by_asin.1" | "project_keywords.1"OptionalOnly this export type.
date_fromstringOptionalOnly exports created on or after this Los Angeles day, YYYY-MM-DD (not the exported ranking dates). Maximum length 10.
date_tostringOptionalOnly exports created on or before this Los Angeles day, YYYY-MM-DD. Maximum length 10.

Output

Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.

Fields of data:

NameTypeRequired
exportsExportRun[]Required
pageobjectRequired

data.exports[]: RanksByAsinExportRun

NameTypeRequiredDescription
idstring (uuid)Required
statestringRequiredqueued and processing are unfinished; poll at least 5 seconds apart. ready has a file. failed and expired are terminal. Decide failure from state, not failure_code. One of queued, processing, ready, failed, expired.
failure_codestring | nullRequiredStable terminal failure code. export_record_limit_exceeded means the estimated or generated count exceeds 1,000,000 per export. insufficient_credits means the complete file costs more credits than its hold and the rest of the credit balance. export_allowance_insufficient is historical, from exports accepted before credits launched. See Get an export for recovery guidance.
failure_messagestring | nullRequiredPlain-language explanation and next step for a failed export. Null in every other state.
created_atstring (date-time)RequiredWhen the export request was accepted.
started_atstring | null (date-time)Required
completed_atstring | null (date-time)Required
resultobject | nullRequiredNull until successful completion, including failed exports. Ready and expired exports retain this metadata; a successful empty file has row_count 0. Download URLs are returned only by the download-link endpoint.
export_type"ranks_by_asin.1"Required
parametersRankingExportRunParametersRequiredThe parameters echoed on a stored export: the request parameters with format and primary_asin_only always present after defaults are applied.

data.exports[]: ProjectKeywordsExportRun

NameTypeRequiredDescription
idstring (uuid)Required
statestringRequiredqueued and processing are unfinished; poll at least 5 seconds apart. ready has a file. failed and expired are terminal. Decide failure from state, not failure_code. One of queued, processing, ready, failed, expired.
failure_codestring | nullRequiredStable terminal failure code. export_record_limit_exceeded means the estimated or generated count exceeds 1,000,000 per export. insufficient_credits means the complete file costs more credits than its hold and the rest of the credit balance. export_allowance_insufficient is historical, from exports accepted before credits launched. See Get an export for recovery guidance.
failure_messagestring | nullRequiredPlain-language explanation and next step for a failed export. Null in every other state.
created_atstring (date-time)RequiredWhen the export request was accepted.
started_atstring | null (date-time)Required
completed_atstring | null (date-time)Required
resultobject | nullRequiredNull until successful completion, including failed exports. Ready and expired exports retain this metadata; a successful empty file has row_count 0. Download URLs are returned only by the download-link endpoint.
export_type"project_keywords.1"Required
parametersobjectRequiredThe parameters echoed on a stored export: the request parameters with format always present after the default is applied.
metrics_windowMetricsWindowRequiredThe window the file's keyword metrics cover, fixed by the account's plan when the export was accepted.

data.page

NameTypeRequired
limitintegerRequired
has_morebooleanRequired
next_cursorstring | nullRequired
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "limit": { "description": "Exports per page, 1 to 100. Default 50.", "type": "integer", "minimum": 1, "maximum": 100 }, "cursor": { "description": "page.next_cursor from the previous page, unchanged, with the same filters and limit. Omit for the first page.", "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, "export_type": { "description": "Only this export type.", "type": "string", "enum": [ "ranks_by_asin.1", "project_keywords.1" ] }, "date_from": { "type": "string", "maxLength": 10, "description": "Only exports created on or after this Los Angeles day, YYYY-MM-DD (not the exported ranking dates)." }, "date_to": { "type": "string", "maxLength": 10, "description": "Only exports created on or before this Los Angeles day, YYYY-MM-DD." } }, "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "exports", "page" ], "properties": { "exports": { "type": "array", "items": { "$ref": "#/$defs/ExportRun" } }, "page": { "type": "object", "required": [ "limit", "has_more", "next_cursor" ], "properties": { "limit": { "type": "integer" }, "has_more": { "type": "boolean" }, "next_cursor": { "type": [ "string", "null" ] } } } } } }, "$defs": { "ExportRun": { "type": "object", "description": "One accepted export and its result. `failure_code` is machine-readable and `failure_message` says what to do next: `export_record_limit_exceeded` means the estimated or generated count exceeds 1,000,000 records; reduce the selection or dates. `insufficient_credits` means the complete file costs more credits than the balance covers, so submit a smaller request; `export_allowance_insufficient` is historical, from before credits, so submit a new export; `selected_label_deleted` and `project_access_changed` are retained historical failures, so submit a new export; `generation_failed` retries internally; `retry_exhausted` is terminal, so submit a new export; `invalid_export_context` means the saved request could not be processed, so submit a new export; Failed exports cost nothing. Finished details remain at least 90 days after activity and cycle end and longer while reconciliation needs them, then may return 404. Usage counters remain.", "required": [ "export_type" ], "oneOf": [ { "$ref": "#/$defs/RanksByAsinExportRun" }, { "$ref": "#/$defs/ProjectKeywordsExportRun" } ] }, "RanksByAsinExportRun": { "title": "Ranks by ASIN", "allOf": [ { "$ref": "#/$defs/ExportRunBase" }, { "type": "object", "required": [ "export_type", "parameters" ], "properties": { "export_type": { "type": "string", "enum": [ "ranks_by_asin.1" ] }, "parameters": { "$ref": "#/$defs/RankingExportRunParameters" } } } ] }, "ExportRunBase": { "type": "object", "required": [ "id", "state", "failure_code", "failure_message", "created_at", "started_at", "completed_at", "result" ], "properties": { "id": { "type": "string", "format": "uuid" }, "state": { "type": "string", "enum": [ "queued", "processing", "ready", "failed", "expired" ], "description": "`queued` and `processing` are unfinished; poll at least 5 seconds apart. `ready` has a file. `failed` and `expired` are terminal. Decide failure from `state`, not `failure_code`." }, "failure_code": { "type": [ "string", "null" ], "description": "Stable terminal failure code. export_record_limit_exceeded means the estimated or generated count exceeds 1,000,000 per export. insufficient_credits means the complete file costs more credits than its hold and the rest of the credit balance. export_allowance_insufficient is historical, from exports accepted before credits launched. See Get an export for recovery guidance." }, "failure_message": { "type": [ "string", "null" ], "description": "Plain-language explanation and next step for a `failed` export. Null in every other state." }, "created_at": { "type": "string", "format": "date-time", "description": "When the export request was accepted." }, "started_at": { "type": [ "string", "null" ], "format": "date-time" }, "completed_at": { "type": [ "string", "null" ], "format": "date-time" }, "result": { "type": [ "object", "null" ], "description": "Null until successful completion, including failed exports. Ready and expired exports retain this metadata; a successful empty file has row_count 0. Download URLs are returned only by the download-link endpoint.", "required": [ "row_count", "compressed_bytes", "expires_at" ], "properties": { "row_count": { "type": "integer", "minimum": 0 }, "compressed_bytes": { "type": "integer", "minimum": 0 }, "expires_at": { "type": "string", "format": "date-time" } } } } }, "RankingExportRunParameters": { "title": "ranks_by_asin.1 parameters (normalised)", "description": "The parameters echoed on a stored export: the request parameters with `format` and `primary_asin_only` always present after defaults are applied.", "allOf": [ { "$ref": "#/$defs/RankingExportParameters" }, { "type": "object", "required": [ "format", "primary_asin_only" ] } ] }, "RankingExportParameters": { "title": "ranks_by_asin.1 parameters", "type": "object", "required": [ "start_date", "end_date" ], "properties": { "format": { "type": "string", "enum": [ "json", "jsonl", "csv" ], "description": "CSV prefixes an apostrophe to text starting with an ASCII control character or DEL, or with =, +, - or @ after optional whitespace, so spreadsheets treat those cells as text. This includes project names and keywords. Numeric columns and JSON/JSONL values are unchanged.", "default": "json" }, "start_date": { "type": "string", "format": "date" }, "end_date": { "type": "string", "format": "date", "description": "Inclusive Los Angeles ranking day, no later than today in America/Los_Angeles. Today's records are a snapshot taken when the file is generated. Future dates return `400 future_dates_not_allowed`." }, "primary_asin_only": { "type": "boolean", "default": true }, "project_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "marketplaces": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "string", "enum": [ "US", "CA", "MX", "UK", "DE", "FR", "IT", "ES", "AU" ] } }, "project_label_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "asin_label_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "keyword_label_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } } }, "description": "Daily keyword ranks for the selected ASINs over an inclusive date range. Every option, including the output format and the filter parameters, is a direct property of this object. Before file generation, the background worker estimates selected ASINs × selected keywords × inclusive days per marketplace project and sums those products. Estimates above 1,000,000 fail asynchronously; equality passes. Acceptance holds credits for the estimate. Historical tracking periods do not reduce the estimate." }, "ProjectKeywordsExportRun": { "title": "Project keywords", "allOf": [ { "$ref": "#/$defs/ExportRunBase" }, { "type": "object", "required": [ "export_type", "parameters", "metrics_window" ], "properties": { "export_type": { "type": "string", "enum": [ "project_keywords.1" ] }, "parameters": { "$ref": "#/$defs/ProjectKeywordsExportRunParameters" }, "metrics_window": { "$ref": "#/$defs/MetricsWindow", "description": "The window the file's keyword metrics cover, fixed by the account's plan when the export was accepted." } } } ] }, "ProjectKeywordsExportRunParameters": { "title": "project_keywords.1 parameters (normalised)", "description": "The parameters echoed on a stored export: the request parameters with `format` always present after the default is applied.", "allOf": [ { "$ref": "#/$defs/ProjectKeywordsExportParameters" }, { "type": "object", "required": [ "format" ] } ] }, "ProjectKeywordsExportParameters": { "title": "project_keywords.1 parameters", "type": "object", "properties": { "format": { "type": "string", "enum": [ "json", "jsonl", "csv" ], "description": "CSV joins label names with \", \" and prefixes an apostrophe to text starting with an ASCII control character or DEL, or with =, +, - or @ after optional whitespace, so spreadsheets treat those cells as text. This includes project names, keywords and label names. Numeric columns and JSON/JSONL values are unchanged.", "default": "json" }, "project_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "marketplaces": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "string", "enum": [ "US", "CA", "MX", "UK", "DE", "FR", "IT", "ES", "AU" ] } }, "project_label_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "keyword_label_ids": { "type": "array", "minItems": 1, "maxItems": 1000, "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } } }, "description": "The current keyword metrics of every selected keyword attachment, one record each. Every parameter is optional; an empty object exports every keyword attachment in your projects. There are no dates: `start_date`, `end_date`, `asin_label_ids`, `primary_asin_only` and any other key are rejected with `invalid_export_parameters`. After acceptance, each generation attempt first estimates one record per selected keyword attachment. Estimates above 1,000,000 fail asynchronously; equality passes. Acceptance holds credits for the estimate." }, "MetricsWindow": { "type": "string", "enum": [ "four_weeks", "latest_month" ], "description": "The period the keyword metrics cover, set by the account's plan. `four_weeks`: the latest four loaded weeks, compared with the four weeks before them. `latest_month`: the latest loaded month, compared with the month before it, for plans without weekly data. Fields ending in `_l4w` hold values for this window whichever it is." } } } }