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[].idwithget_export,get_export_recordsandget_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_exportwhose response was lost.
Cost and limits: Costs no credits.
Input
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Exports per page, 1 to 100. Default 50. Minimum 1. Maximum 100. |
cursor | string (uuid) | Optional | page.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" | Optional | Only this export type. |
date_from | string | Optional | Only exports created on or after this Los Angeles day, YYYY-MM-DD (not the exported ranking dates). Maximum length 10. |
date_to | string | Optional | Only 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:
| Name | Type | Required |
|---|---|---|
exports | ExportRun[] | Required |
page | object | Required |
data.exports[]: RanksByAsinExportRun
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Required | |
state | string | Required | 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. One of queued, processing, ready, failed, expired. |
failure_code | string | null | Required | 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 | string | null | Required | Plain-language explanation and next step for a failed export. Null in every other state. |
created_at | string (date-time) | Required | When the export request was accepted. |
started_at | string | null (date-time) | Required | |
completed_at | string | null (date-time) | Required | |
result | object | null | Required | 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. |
export_type | "ranks_by_asin.1" | Required | |
parameters | RankingExportRunParameters | Required | The parameters echoed on a stored export: the request parameters with format and primary_asin_only always present after defaults are applied. |
data.exports[]: ProjectKeywordsExportRun
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Required | |
state | string | Required | 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. One of queued, processing, ready, failed, expired. |
failure_code | string | null | Required | 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 | string | null | Required | Plain-language explanation and next step for a failed export. Null in every other state. |
created_at | string (date-time) | Required | When the export request was accepted. |
started_at | string | null (date-time) | Required | |
completed_at | string | null (date-time) | Required | |
result | object | null | Required | 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. |
export_type | "project_keywords.1" | Required | |
parameters | object | Required | The parameters echoed on a stored export: the request parameters with format always present after the default is applied. |
metrics_window | MetricsWindow | Required | The window the file's keyword metrics cover, fixed by the account's plan when the export was accepted. |
data.page
| Name | Type | Required |
|---|---|---|
limit | integer | Required |
has_more | boolean | Required |
next_cursor | string | null | Required |
Full input and output JSON Schema
Code