Keyword data
get_keyword_data
Get keyword data ยท Read-only, idempotent
Before choosing keyword-data dates, call get_data_availability unless already known in this conversation; explain unavailable history rather than silently shortening the request.
- Read stored weekly or monthly Amazon search market data (clicks, sales, conversion) for any keywords in one marketplace, with optional top-3 ASIN details per period.
- Not limited to project keywords and not rank data.
- Weekly periods start on Sunday and monthly periods on the 1st.
- Pass period start dates: a
start_dateinside a period skips that period, and anend_dateinside one can drop the last period. - Up to 26 weekly or 24 monthly periods, all inside the plan history window.
- Each result returns that window as
plan_history_window(start_periodtolatest_loaded_period, both period start dates). - A request reaching outside it is rejected whole, with
allowed_start_dateandlatest_loaded_periodin the error. - Missing keywords return empty records.
Cost and limits: Costs 1 credit per record returned (one keyword in one period), at least 1 credit; the call is refused before it runs unless the credit balance covers every keyword requested times every period requested; separate 10-per-minute limit.
Input
| Name | Type | Required | Description |
|---|---|---|---|
marketplace | string | Required | Marketplace code: US, CA, MX, UK, DE, FR, IT, ES, AU. Maximum length 2. |
keywords | string[] | Required | Keywords to read, one per item. Items are never split, so a keyword may contain commas. Trimmed, lowercased and deduplicated. At most 100, or 25 with include_asins. At most 100 items. |
start_date | string | Required | Start date of the first period (a Sunday for weekly, the 1st for monthly), YYYY-MM-DD, no later than today in Los Angeles. Maximum length 10. |
end_date | string | Optional | Start date of the last period, inclusive, YYYY-MM-DD. Defaults to start_date. Maximum length 10. |
interval | "weekly" | "monthly" | Required | Period length. |
include_asins | boolean | Optional | Include asin_1 to asin_3 market-period details for each record. Default false. |
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 | Description |
|---|---|---|---|
marketplace | string | Required | |
start_date | string (date) | Required | |
end_date | string (date) | Required | |
interval | "weekly" | "monthly" | Required | |
plan_history_window | object | Required | The caller's plan history window for the requested marketplace and interval. Both bounds are period start dates. Plans with a history limit must stay between them; on other plans, periods outside them are missing from records. |
requested_keywords | string[] | Required | |
keywords | KeywordIntervalItem[] | Required |
data.plan_history_window
| Name | Type | Required | Description |
|---|---|---|---|
start_period | string (date) | Required | Start date of the first readable period: the oldest stored period, or later when the plan limits history. Same value as allowed_start_date in period errors. |
latest_loaded_period | string (date) | Required | Start date of the newest period Datarova has loaded for this marketplace and interval. |
data.keywords[]
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Required | |
records | KeywordIntervalRecord[] | Required | One record per stored period. Empty when nothing is stored for the keyword. |
Full input and output JSON Schema
Code