Datarova
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_ranks entry 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.1 export with request_export, setting primary_asin_only false when the user wants ASINs other than each project's primary ASIN (asin_label_ids narrows them), and read its rows with get_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

NameTypeRequiredDescription
project_idintegerRequiredA marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group. Minimum 1. Maximum 2147483647.
asinstringRequiredA 10-character ASIN attached to the project, as listed by list_project_asins. Maximum length 10.
start_datestringRequiredFirst Los Angeles day, YYYY-MM-DD. Maximum length 10.
end_datestringRequiredLast Los Angeles day, inclusive, YYYY-MM-DD, no later than today. Maximum length 10.
keywordsstring[]OptionalOnly 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_idsinteger[]OptionalOnly 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.
limitintegerOptionalKeywords per page. At most floor(600 / inclusive day count). Default 20, or that maximum when smaller. Minimum 1. Maximum 600.
cursorstringOptionalOpaque 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:

NameTypeRequired
project_idintegerRequired
asinstringRequired
start_datestring (date)Required
end_datestring (date)Required
ranksRankHistoryItem[]Required
pagePageRequired

data.ranks[]

NameTypeRequiredDescription
keywordstringRequired
daily_ranksDailyRank[]RequiredOne 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

NameTypeRequiredDescription
limitintegerRequiredPage size used for this call.
next_cursorstring | nullRequiredOpaque cursor for the next page, or null on the last page. Pass it unchanged with the same filters and limit.
has_morebooleanRequiredWhether another page exists. When true, this page is a partial result.
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "project_id": { "type": "integer", "minimum": 1, "maximum": 2147483647, "description": "A marketplace project ID: list_projects data.projects[].marketplaces[].project_id, not a project group." }, "asin": { "type": "string", "maxLength": 10, "description": "A 10-character ASIN attached to the project, as listed by list_project_asins." }, "start_date": { "type": "string", "maxLength": 10, "description": "First Los Angeles day, YYYY-MM-DD." }, "end_date": { "type": "string", "maxLength": 10, "description": "Last Los Angeles day, inclusive, YYYY-MM-DD, no later than today." }, "keywords": { "description": "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.", "maxItems": 100, "type": "array", "items": { "type": "string", "maxLength": 1024 } }, "keyword_label_ids": { "description": "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.", "minItems": 1, "maxItems": 1000, "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 2147483647 } }, "limit": { "description": "Keywords per page. At most floor(600 / inclusive day count). Default 20, or that maximum when smaller.", "type": "integer", "minimum": 1, "maximum": 600 }, "cursor": { "description": "Opaque page.next_cursor from the previous page of this tool, unchanged. Omit for the first page.", "type": "string", "maxLength": 2048 } }, "required": [ "project_id", "asin", "start_date", "end_date" ], "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "project_id", "asin", "start_date", "end_date", "ranks", "page" ], "properties": { "project_id": { "type": "integer" }, "asin": { "type": "string" }, "start_date": { "type": "string", "format": "date" }, "end_date": { "type": "string", "format": "date" }, "ranks": { "type": "array", "items": { "$ref": "#/$defs/RankHistoryItem" } }, "page": { "$ref": "#/$defs/Page" } } } }, "$defs": { "RankHistoryItem": { "type": "object", "required": [ "keyword", "daily_ranks" ], "properties": { "keyword": { "type": "string" }, "daily_ranks": { "type": "array", "items": { "$ref": "#/$defs/DailyRank" }, "description": "One entry per day with a stored rank row. Missing days have no entry: never fill them with zero or treat them as unranked." } }, "description": "Daily ranks of the requested ASIN for one project keyword." }, "DailyRank": { "type": "object", "required": [ "date", "organic_rank", "sponsored_rank", "choice_badge", "ranked_asin" ], "properties": { "date": { "type": "string", "format": "date", "description": "Los Angeles calendar day." }, "organic_rank": { "type": [ "integer", "null" ], "description": "Organic search position that day, or null when no positive rank was stored." }, "sponsored_rank": { "type": [ "integer", "null" ], "description": "Sponsored position that day, or null when no positive rank was stored." }, "choice_badge": { "type": [ "boolean", "null" ], "description": "Whether `ranked_asin` had an Amazon’s Choice badge that day, or null when unknown." }, "ranked_asin": { "type": [ "string", "null" ], "description": "The ASIN that ranked: the requested ASIN or, when the group tracks variations, one of its variations. Null when unknown." } } }, "Page": { "type": "object", "required": [ "limit", "next_cursor", "has_more" ], "properties": { "limit": { "type": "integer", "description": "Page size used for this call." }, "next_cursor": { "type": [ "string", "null" ], "description": "Opaque cursor for the next page, or null on the last page. Pass it unchanged with the same filters and limit." }, "has_more": { "type": "boolean", "description": "Whether another page exists. When true, this page is a partial result." } } } } } }