Reports
list_reports
List reports ยท Read-only, idempotent
List one page of the account's existing keywords_for_keyword.1 (Keyword Spy data) and keywords_for_asin.1 (ASIN Insights data) reports, newest first, with each report's parameters, state and file metadata, including reports requested with the account's API key.
- Use
reports[].idwithget_report,get_report_recordsandget_report_download_link. - A cursor for a report that no longer exists can return an empty page; start again without it.
- Use this to recover a
request_reportwhose response was lost.
Cost and limits: Costs no credits.
Input
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Reports 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. |
report_type | "keywords_for_keyword.1" | "keywords_for_asin.1" | Optional | Only this report type. |
date_from | string | Optional | Only reports created on or after this Los Angeles day, YYYY-MM-DD (not the researched dates). Maximum length 10. |
date_to | string | Optional | Only reports 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 |
|---|---|---|
reports | Report[] | Required |
page | object | Required |
data.reports[]: KeywordsForKeywordReport
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Required | |
report_type | "keywords_for_keyword.1" | Required | |
parameters | object | Required | The request's parameters as accepted: normalised, with the defaults of interval, include_periods and format filled in. |
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. See Get a report for recovery. |
failure_message | string | null | Required | Plain-language explanation and next step for a failed report. Null in every other state. |
created_at | string (date-time) | Required | When the 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. Ready and expired reports keep this metadata; a report with no matching keywords has row_count 0. Download links come only from the download endpoint. |
data.reports[]: KeywordsForAsinReport
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Required | |
report_type | "keywords_for_asin.1" | Required | |
parameters | object | Required | The request's parameters as accepted: normalised, with the defaults of interval, include_periods and format filled in. |
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. See Get a report for recovery. |
failure_message | string | null | Required | Plain-language explanation and next step for a failed report. Null in every other state. |
created_at | string (date-time) | Required | When the 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. Ready and expired reports keep this metadata; a report with no matching keywords has row_count 0. Download links come only from the download endpoint. |
data.page
| Name | Type | Required |
|---|---|---|
limit | integer | Required |
has_more | boolean | Required |
next_cursor | string | null | Required |
Full input and output JSON Schema
Code