Project ASINs
get_project_asin_ranks
Get project ASIN ranks · Read-only, idempotent
Read stored daily organic and sponsored keyword ranks for one ASIN attached to a marketplace project, over up to 30 inclusive Los Angeles days including today.
- One page covers several keywords; each has a
daily_ranksentry for every day with a stored rank. - Days with no stored rank are omitted: never fill them with zero.
- Nonpositive stored ranks are returned as null.
- For several ASINs, several projects or a project's ranks over many days, do not repeat this call per ASIN: request one
ranks_by_asin.1export withrequest_export, settingprimary_asin_onlyfalse when the user wants ASINs other than each project's primary ASIN (asin_label_idsnarrows them), and read its rows withget_export_records. - Use an export only when its filters select what the user asked for within 10,000 rows (about ASINs x keywords x days); for a few specific ASINs no filter isolates, keep calling this tool, paced to its limit.
Cost and limits
- An export costs 1 credit per 100 records and has no 10-per-minute limit.
- Consumes 5 credits; separate 10-per-minute limit.
Input
| Name | Type | Required | Description |
|---|---|---|---|
project_id | integer | Required | A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group. Minimum 1. Maximum 2147483647. |
asin | string | Required | A 10-character ASIN attached to the project, as listed by list_project_asins. Maximum length 10. |
start_date | string | Required | First Los Angeles day, YYYY-MM-DD. Maximum length 10. |
end_date | string | Required | Last Los Angeles day, inclusive, YYYY-MM-DD, no later than today. Maximum length 10. |
keywords | string[] | Optional | Only these tracked project keywords, one per item. Items are never split, so a keyword may contain commas. Matching ignores letter case and surrounding spaces; unknown keywords are refused. Cannot be combined with keyword_label_ids. Default: all project keywords. At most 100 items. |
keyword_label_ids | integer[] | Optional | Only project keywords carrying at least one of these item labels, IDs from list_item_labels. Use it to read a labelled keyword group instead of every keyword. Cannot be combined with keywords. A label no keyword in this project carries returns empty ranks; a label missing from the account's item labels is refused. At least 1 item. At most 1000 items. |
limit | integer | Optional | Keywords per page. At most floor(600 / inclusive day count). Default 20, or that maximum when smaller. Minimum 1. Maximum 600. |
cursor | string | Optional | Opaque page.next_cursor from the previous page of this tool, unchanged. Omit for the first page. Maximum length 2048. |
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 |
|---|---|---|
project_id | integer | Required |
asin | string | Required |
start_date | string (date) | Required |
end_date | string (date) | Required |
ranks | RankHistoryItem[] | Required |
page | Page | Required |
data.ranks[]
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Required | |
daily_ranks | DailyRank[] | Required | One entry per day with a stored rank row. Missing days have no entry: never fill them with zero or treat them as unranked. |
data.page
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Required | Page size used for this call. |
next_cursor | string | null | Required | Opaque cursor for the next page, or null on the last page. Pass it unchanged with the same filters and limit. |
has_more | boolean | Required | Whether another page exists. When true, this page is a partial result. |
Full input and output JSON Schema
Code