Datarova User API
Datarova User API
Use the Datarova User API to access your Datarova data programmatically with an API key. This reference documents every published endpoint; pick one from the sidebar.
- API base URL:
https://api.datarova.com/v0 - OpenAPI document: /openapi.json
Send your API key on every request in the Authorization header as Bearer <api_key>. Generate a key in Datarova Connections.
New to the API? Start with the Introduction, Authentication and Quick start guides. Pagination, rate limits and errors covers the rules every endpoint shares, and Projects and labels explains managing projects, ASINs, keywords and labels.
Tags
Account
Account-level
/v0 endpoints, including usage and credit balance visibility.Keywords
Keyword and interval analytics endpoints under
/v0.Project management
List, create, inspect, and delete marketplace projects in your account.
Project ASINs
View the ASINs in a project, add ASINs, or remove them.
Project keywords
View the keywords in a project, add keywords, or remove them.
Project notes
Read and manage the ASIN annotations in a marketplace project.
Rank history
Read daily keyword-rank history for an ASIN in a project.
Project labels
Reusable labels for categorizing projects in your account. Creating a label does not assign it to a project. Deleting a label removes it from all projects that use it.
Item labels
Reusable labels shared by ASINs and keywords in your account. Creating a label does not assign it to an ASIN or keyword. Deleting a label removes it from both wherever it is used.
Exports
Files of the data already in your projects. Asynchronous exports of your project data as complete gzip files. Request one with
Filters combine with AND; values within one filter combine with OR. Each supplied array needs at least one value;
Daily keyword ranks for the selected ASINs over an inclusive date range. One record per tracked day, marketplace project, selected ASIN and keyword.
Required parameters
Optional parameters
Output columns, in CSV order
Days before tracking began are omitted. Tracked days without an observation are included with null ranks and count as records toward the export's credit cost.
Eligibility and charging
Requires current User API and general plan eligibility. All supported marketplaces, including AU, are available without a separate export marketplace entitlement. An export costs 1 credit per 100 records, rounded up, with a minimum of 1 credit, so an empty export costs 1 credit. Its estimated credits are held from your credit balance when it is accepted; a request the balance cannot cover is refused with
The keyword metrics shown on each project's Keywords tab, for every selected keyword attachment. One record per marketplace project and keyword attachment: a keyword attached to two projects appears once for each, with that project's values. Each attempt reads your projects' current keywords; there is no date range.
Required parameters
None.
A keyword without search-term data is exported with zero metrics and an empty
POST /v0/exports, poll GET /v0/exports/{exportId} until its state is ready, then fetch a temporary download link. Every file is kept for 30 days.
export_type chooses what the file contains and which parameters apply. Each type below lists its required parameters, optional parameters, output columns, eligibility and charging. Parameters that do not belong to the chosen type are rejected.
Filter parameters
Types that read from your projects accept these optional filter parameters directly insideparameters. Omit all of them to cover every project you own in supported marketplaces when each generation attempt discovers projects, including projects added after acceptance. Each type lists which filters it supports:
| Parameter | Description |
|---|---|
project_ids | Marketplace project IDs from GET /v0/projects. |
marketplaces | Marketplace codes. Listing every supported marketplace is the same as omitting the field. |
project_label_ids | Only projects carrying one of these project labels. |
asin_label_ids | Only ASINs carrying one of these item labels. |
keyword_label_ids | Only keywords carrying one of these item labels. |
null and [] are invalid. Duplicate values are ignored. Each attempt discovers matching projects once, then reads each project's current name and selected attachments when processing it. Rankings use the same current project membership and variation settings as Google Sheets and report downloads. Keywords removed before a later ranking read are omitted from that read; already generated rows remain unchanged. Retries read fresh inputs. Projects created concurrently have no exact inclusion guarantee. Deleted projects or labels contribute no remaining matches without broadening the original filters. Remaining matches are exported, or an empty file succeeds.
Export types
ranks_by_asin.1
Daily keyword ranks for the selected ASINs over an inclusive date range. One record per tracked day, marketplace project, selected ASIN and keyword.
Required parameters
| Parameter | Description |
|---|---|
start_date | First day of the range as YYYY-MM-DD in America/Los_Angeles. |
end_date | Last day of the range, inclusive. The range must cover 1 to 31 days and end no later than today in America/Los_Angeles; a future start_date or end_date returns 400 future_dates_not_allowed. Yesterday can be requested from Los Angeles midnight, and today at any time. Today's records are a snapshot taken when the file is generated. Historical ranges are accepted even when no ranking data exists for them. |
| Parameter | Default | Description |
|---|---|---|
format | json | Output format: json, jsonl or csv. |
primary_asin_only | true | Export only each project's primary ASIN. Set false to include every attached ASIN in the selected projects. With true, a project whose primary ASIN does not match asin_label_ids is left out rather than replaced. |
project_ids, marketplaces, project_label_ids, asin_label_ids, keyword_label_ids | none | All five filter parameters are supported. |
| Column | Type | Description |
|---|---|---|
date | date | Tracking day in America/Los_Angeles. On today's date, ranks are provisional: a keyword not yet checked today can show yesterday's latest observation, unmarked. |
project_id | integer | Marketplace project ID. |
project_name | string | Project name when that project is read during the successful attempt. |
marketplace | string | Marketplace code such as US. |
asin | string | The selected ASIN. |
keyword | string | The tracked keyword. |
organic_rank | integer or null | Organic search position, or null when no rank was observed that day. |
sponsored_rank | integer or null | Sponsored position, or null when no rank was observed that day. |
choice_badge | boolean or null | Whether the Amazon's Choice badge was shown. Null when no rank was observed. |
ranked_asin | string or null | The ASIN that held the rank. It can be a variation of asin when variations are tracked. Null when no rank was observed. |
402 insufficient_credits. When it completes, the credits for its actual result.row_count are charged once, to the allowance cycle current at acceptance, and the hold is released. Check credits.balance on GET /v0/usage before large requests.
Record limits
Before retrieving rankings or generating a file, each attempt estimates records by multiplying selected ASINs by selected keywords by inclusive requested days for each marketplace project, then summing those project totals. All project, marketplace, label and primary-ASIN filters apply. The estimate ignores historical tracking periods and missing observations, so it can reject a request whose actual file would be smaller or empty.
The maximum is 1,000,000 records per export. An estimate above that limit fails with export_record_limit_exceeded; equality passes. These rules are identical for JSON, JSONL and CSV; a CSV header is not a record.
This check runs after 202 Accepted. Polling returns state: failed, a failure_code and failure_message, and result: null. A failed export generates no file, costs nothing and releases its held credits. Reduce the selected projects, ASINs, keywords or dates and submit a new request. Limit failures are terminal. Generation also enforces the limit if project contents change after the estimate. If they grow so much that the complete file costs more than its held credits and the rest of your credit balance, it fails with insufficient_credits.
project_keywords.1
The keyword metrics shown on each project's Keywords tab, for every selected keyword attachment. One record per marketplace project and keyword attachment: a keyword attached to two projects appears once for each, with that project's values. Each attempt reads your projects' current keywords; there is no date range.
Required parameters
None. {} exports every keyword attachment in your projects.
Optional parameters
| Parameter | Default | Description |
|---|---|---|
format | json | Output format: json, jsonl or csv. |
project_ids, marketplaces, project_label_ids, keyword_label_ids | none | Filter parameters. asin_label_ids is not supported. |
start_date, end_date, asin_label_ids, primary_asin_only and any other key return 400 invalid_export_parameters. Ranking export date rules, including the 31-day range limit, do not apply.
Output fields, in JSON and CSV order
After the three project fields, each field has the name and meaning of the matching ProjectKeyword field in GET /v0/projects/{projectId}/keywords. For the same project on the same day the values agree with that endpoint. tracked_from is not exported.
The metrics cover the account plan's metrics window, as in GET /v0/projects/{projectId}/keywords: the latest four loaded weeks, or the latest loaded month on plans without weekly data. The plan when the export is accepted decides it, and metrics_window on the export names it. The columns are the same either way, so descriptions below that say four weeks mean the latest month for a latest_month export.
| Field | Type | Description |
|---|---|---|
project_id | integer | Marketplace project ID. |
project_name | string | Project name when that project is read during the successful attempt. |
marketplace | string | Marketplace code such as US. |
keyword | string | The keyword. |
keyword_clicks_l4w | number | Clicks from searches for the keyword over the marketplace's latest four completed weeks. |
keyword_sales_l4w | number | Sales from those searches over the same four weeks. |
keyword_conversion_l4w | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. 0 when there are no clicks. |
top_asin | string | The ASIN with the most sales for the keyword. An empty string when the keyword has no search-term data. |
top_asin_sales_l4w | integer | The top ASIN's sales for the keyword. |
top_asin_clicks_l4w | integer | The top ASIN's clicks for the keyword. |
top_asin_conversion_l4w | number | The top ASIN's conversion, 0 to 100, rounded to one decimal place. 0 when there are no clicks. |
trend_l4w | number | Percentage change in keyword_sales_l4w against the previous four weeks, rounded to one decimal place. With no previous sales the change is measured against 1 sale. |
sales_distribution | number | The keyword's share of the four-week keyword sales of every keyword attachment in its marketplace project, as a percentage rounded to one decimal place. Export filters do not change it. 0 for a project with no keyword sales. |
dstr | integer | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3. |
organic_rank | integer or null | The primary ASIN's organic position on the latest Los Angeles day: yesterday, or today for a project created today. 0 when the keyword was tracked but no rank was found, including days without a successful scrape. Null when the keyword was not tracked, is still being checked, or the project has no ASINs. |
sponsored_rank | integer or null | The primary ASIN's sponsored position on the same day, with the same 0 and null rules. Both ranks are null while a keyword is still being checked. |
asins_in_top_10 | integer | How many of the project's ASINs rank in the organic top 10 for the keyword, at most 10. 0 for a project without ASINs. |
labels | array | The keyword attachment's item labels as {label_id, label_name, color}. In CSV, the label names separated by a comma and a space, such as Core, Brand. |
top_asin. Records are ordered by project_id; within a project the order is not guaranteed.
JSON example:
The same record in CSV:Code
The example values are illustrative. Eligibility and charging The same eligibility and charging asCode
ranks_by_asin.1: 1 credit per 100 records, rounded up, with a minimum of 1 credit, held from your credit balance at acceptance and charged for the actual result.row_count once when the export completes. A failed export costs nothing. The downloaded file is named project-keywords-export.<format>.gz.
Record limits
Before reading keyword data, each attempt estimates one record per selected keyword attachment; acceptance holds credits for the same estimate. The 1,000,000-record limit and its error code are the same as for ranks_by_asin.1. Generation also enforces the limit if keywords are added after the estimate.Live search
Real-time retrieval of Amazon search results pages. It is available to every account with User API access.
Reports
Data generated on request for any ASIN or keyword. Request a report with
The report covers the keyword and every keyword that contains it, as the app's default Keyword Spy search finds them, with each keyword's clicks, sales, conversion and top ASIN over the range.
Records are ordered by
The report covers the keywords the app's ASIN Insights search finds for the ASIN and its variations, with each keyword's clicks, sales, conversion and top ASIN over the range, and the ASIN's KPS, relevancy and ranks for it.
Records are ordered by
POST /v0/reports, poll GET /v0/reports/{reportId} until its state is ready, then fetch a temporary download link. Every file is kept for 30 days.
report_type chooses what the report contains and which parameters apply, whether or not you track the keyword or ASIN in a project. Each type is named after what it returns and what you pass: keywords_for_keyword.1 returns the keywords related to one keyword, and keywords_for_asin.1 returns the keywords one ASIN and its variations get sales from. Each type below lists its parameters, the file's fields and its charging. Parameters that do not belong to the chosen type are rejected.
A report has the same fields and states as an export, with report_type in place of export_type, so the same polling code works for both. Reports and exports are separate: a report never appears in GET /v0/exports, an export never appears in GET /v0/reports, and an ID of one requested through the other's path returns 404.
Each accepted report holds its credit cost from your credit balance: 100 credits, plus 100 per period requested with per-period detail. The credits are charged when the report is ready and released if it finally fails. Reports and exports share the account's limit of five outstanding requests and are generated one at a time per account, in the order they were accepted.
Report types
keywords_for_keyword.1
The report covers the keyword and every keyword that contains it, as the app's default Keyword Spy search finds them, with each keyword's clicks, sales, conversion and top ASIN over the range.
Parameters
keyword,marketplace,start_dateandend_dateare required;intervaldefaults tomonthly,include_periodstofalseandformattojson. Any other parameter, includingasin, returns400 invalid_report_parameters.include_periodsmust betrueorfalse; any other value returns400 invalid_include_periods.formatmust bejson,jsonlorcsv; any other value returns400 invalid_format.start_datemust start a period: the first day of a month, or the Sunday that starts a week.end_dateis the last day the report covers.- The range covers at most 12 weeks or months; a 13th returns
400 invalid_date_range. It must lie within your plan's research history and the latest loaded week or month; otherwise the request returns400 unavailable_dateswitherror.earliest_dateanderror.latest_date. - Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check
GET /v0/reportsbefore requesting again.
The file
A ready report is one gzip-compressed file with one record per keyword, in the format you choose (see File formats below). Every field is present on every record, numbers are JSON numbers, and a missing value isnull, never a formatted string or a placeholder number:
| Field | Type | Description |
|---|---|---|
keyword | string | The keyword. |
clicks | integer | Average clicks per week or month over the range, rounded to a whole number. 0 when the keyword has no data in the range. |
sales | integer | Average sales per week or month over the range, rounded to a whole number. 0 when the keyword has no data in the range. |
conversion_rate | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. 0 when the keyword has no data in the range. |
top_asin | string or null | The ASIN with the most sales for the keyword over the range. Null when there is none. |
top_asin_clicks | integer or null | The top ASIN's average clicks for the keyword in the weeks or months it was among the keyword's top three ASINs, rounded to a whole number. Null when top_asin is null. |
top_asin_sales | integer or null | The top ASIN's average sales for the keyword over the same weeks or months. Null when top_asin is null. |
top_asin_conversion_rate | number or null | The top ASIN's sales as a percentage of its clicks, rounded to one decimal place. 0 when it has sales but no clicks. Null when top_asin is null. |
dstr | integer or null | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3, from the marketplace's latest four weeks of data whatever the requested range. Null when there is no value. |
clicks, highest first, then by keyword A to Z, so the same request returns the same order. Every matching keyword is included. A report with no matching keywords is ready with a file that has no records.
The example values are illustrative.Code
Per-period detail
Setinclude_periods to true to add each keyword's week-by-week or month-by-month detail. Every record then keeps all the fields above and gains a periods array, oldest first, with one entry for each week or month in the range that has data for the keyword. A keyword with no data in the range has "periods": []. Without include_periods, or with false, records have no periods field.
Each entry has exactly the shape of a period record from GET /v0/keywords requested with include_asins=true, and its values match the app's detailed CSV for the same keyword, marketplace and dates:
| Field | Type | Description |
|---|---|---|
date | string | Start date of the week or month, YYYY-MM-DD. |
clicks | number | The keyword's clicks in the period. |
sales | number | The keyword's sales in the period. |
conversion_rate | number | Sales as a percentage of clicks, rounded to one decimal place. 0 when clicks is 0. |
asin_1, asin_2, asin_3 | object | The keyword's top three clicked ASINs in the period, each with asin, clicks, sales and conversion_rate as above. Every field of a slot is null when the slot is empty. |
Code
File formats
Setformat to choose the file format. Every format holds the same keywords with the same values in the same order, and a report costs the same in each.
json(the default): one array of records,[]when nothing matched.jsonl: one record per line, each with the same fields as in JSON, includingperiodswhen requested. The file is empty when nothing matched.csv: a header row with the API field names, then one row per keyword, or per keyword and period with periods. The header is not a record; a report with no matching keywords is the header alone. An empty cell stands fornull. Numbers are plain numbers and dates areYYYY-MM-DD, never formatted strings such as percentages. Text cells are quoted, and a text value a spreadsheet could read as a formula, such as one starting with=,+,-or@, is written with a leading'.
marketplace, keyword, clicks, sales, conversion_rate, top_asin, top_asin_clicks, top_asin_sales, top_asin_conversion_rate, dstr.
WithCode
include_periods: true the CSV has one row per keyword and period, oldest period first within each keyword, in the same keyword order. Each row repeats the keyword's columns and adds the period's fields, with each top-ASIN slot flattened: period_date, period_clicks, period_sales, period_conversion_rate, period_asin_1, period_asin_1_clicks, period_asin_1_sales, period_asin_1_conversion_rate, period_asin_2, period_asin_2_clicks, period_asin_2_sales, period_asin_2_conversion_rate, period_asin_3, period_asin_3_clicks, period_asin_3_sales, period_asin_3_conversion_rate. A keyword with no period data has one row with empty period cells. result.row_count still counts keywords, not rows.
Code
Charging
- A report costs 100 credits, whatever its date range, plus 100 credits per period requested when
include_periodsistrue: one month with per-period detail costs 200 credits, twelve months 1,300. The cost is held from your credit balance when the report is accepted. When the balance cannot cover it the request returns402 insufficient_creditsand nothing is created. - The held credits are charged when the report is ready. Automatic retries, polling, listing and downloads cost nothing more. A report that finally fails costs nothing, and its held credits are released.
keywords_for_asin.1
The report covers the keywords the app's ASIN Insights search finds for the ASIN and its variations, with each keyword's clicks, sales, conversion and top ASIN over the range, and the ASIN's KPS, relevancy and ranks for it.
Parameters
asin,marketplace,start_dateandend_dateare required;intervaldefaults tomonthly,include_periodstofalseandformattojson. Any other parameter, includingkeyword, returns400 invalid_report_parameters.asinmust be 10 letters and digits; anything else returns400 invalid_asinand creates nothing. Whether Amazon lists the ASIN in the marketplace is checked while the report is generated: if it does not, the report fails withfailure_codeinvalid_asin.- The report always includes the ASIN's variations, as the app does. There is no option to exclude them.
include_periodsmust betrueorfalse; any other value returns400 invalid_include_periods.formatmust bejson,jsonlorcsv; any other value returns400 invalid_format.start_datemust start a period: the first day of a month, or the Sunday that starts a week.end_dateis the last day the report covers.- The range covers at most 12 weeks or months; a 13th returns
400 invalid_date_range. It must lie within your plan's research history and the latest loaded week or month; otherwise the request returns400 unavailable_dateswitherror.earliest_dateanderror.latest_date. - Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check
GET /v0/reportsbefore requesting again.
The file
A ready report is one gzip-compressed file with one record per keyword, in the format you choose (see File formats below). Every field is present on every record, numbers are JSON numbers, and a missing value isnull, never a formatted string or a placeholder number:
| Field | Type | Description |
|---|---|---|
keyword | string | The keyword. |
clicks | integer | Average clicks per week or month over the range, rounded down to a whole number. 0 when the keyword has no data in the range. |
sales | integer | Average sales per week or month over the range, rounded down to a whole number. 0 when the keyword has no data in the range. |
conversion_rate | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. 0 when the keyword has no data in the range. |
top_asin | string or null | The ASIN with the most sales for the keyword over the range. Null when there is none. |
top_asin_clicks | integer or null | The top ASIN's average clicks for the keyword in the weeks or months it was among the keyword's top three ASINs, rounded down to a whole number. Null when top_asin is null. |
top_asin_sales | integer or null | The top ASIN's average sales for the keyword over the same weeks or months. Null when top_asin is null. |
top_asin_conversion_rate | number or null | The top ASIN's sales as a percentage of its clicks, rounded to one decimal place. 0 when it has sales but no clicks. Null when top_asin is null. |
dstr | integer or null | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3, from the marketplace's latest four weeks of data whatever the requested range. Null when there is no value. |
kps | integer or null | Keyword Performance Score, from 1 (best) to 5, combining relevancy with the keyword's sales over the marketplace's latest four weeks. Null when the keyword does not reach a score. |
relevancy | integer | How closely the keyword relates to the ASIN, from 0 to 100, based on the sales and ranks of the ASIN and similar products. 0 when there is none. |
organic_rank | integer or null | The best organic search position Datarova holds for the ASIN or one of its variations on the keyword, not limited to the requested range. Null when unknown. |
sponsored_rank | integer or null | The best sponsored search position Datarova holds for the ASIN or one of its variations on the keyword, not limited to the requested range. Null when unknown. |
periods_in_top_3 | integer | The weeks or months in the range in which the ASIN or one of its variations was among the keyword's top three clicked ASINs. |
kps, lowest first with keywords that have no KPS last, then by relevancy, highest first, then by clicks, highest first, then by keyword A to Z. This is the app's default order, so the same request returns the same order. Every matching keyword is included. A report for an ASIN with no matching keywords is ready with a file that has no records.
The example values are illustrative.Code
Per-period detail
Setinclude_periods to true to add each keyword's week-by-week or month-by-month detail. Every record then keeps all the fields above and gains a periods array, oldest first, with one entry for each week or month in the range that has data for the keyword. A keyword with no data in the range has "periods": []. Without include_periods, or with false, records have no periods field.
Each entry has exactly the shape of a period record from GET /v0/keywords requested with include_asins=true, and its values match the app's detailed CSV for the same ASIN, marketplace and dates:
| Field | Type | Description |
|---|---|---|
date | string | Start date of the week or month, YYYY-MM-DD. |
clicks | number | The keyword's clicks in the period. |
sales | number | The keyword's sales in the period. |
conversion_rate | number | Sales as a percentage of clicks, rounded to one decimal place. 0 when clicks is 0. |
asin_1, asin_2, asin_3 | object | The keyword's top three clicked ASINs in the period, each with asin, clicks, sales and conversion_rate as above. Every field of a slot is null when the slot is empty. |
Code
File formats
Setformat to choose the file format. Every format holds the same keywords with the same values in the same order, and a report costs the same in each.
json(the default): one array of records,[]when nothing matched.jsonl: one record per line, each with the same fields as in JSON, includingperiodswhen requested. The file is empty when nothing matched.csv: a header row with the API field names, then one row per keyword, or per keyword and period with periods. The header is not a record; a report with no matching keywords is the header alone. An empty cell stands fornull. Numbers are plain numbers and dates areYYYY-MM-DD, never formatted strings such as percentages. Text cells are quoted, and a text value a spreadsheet could read as a formula, such as one starting with=,+,-or@, is written with a leading'.
marketplace, keyword, clicks, sales, conversion_rate, top_asin, top_asin_clicks, top_asin_sales, top_asin_conversion_rate, dstr, kps, relevancy, organic_rank, sponsored_rank, periods_in_top_3.
WithCode
include_periods: true the CSV has one row per keyword and period, oldest period first within each keyword, in the same keyword order. Each row repeats the keyword's columns and adds the period's fields, with each top-ASIN slot flattened: period_date, period_clicks, period_sales, period_conversion_rate, period_asin_1, period_asin_1_clicks, period_asin_1_sales, period_asin_1_conversion_rate, period_asin_2, period_asin_2_clicks, period_asin_2_sales, period_asin_2_conversion_rate, period_asin_3, period_asin_3_clicks, period_asin_3_sales, period_asin_3_conversion_rate. A keyword with no period data has one row with empty period cells. result.row_count still counts keywords, not rows.
Code
Charging
- A report costs 100 credits, whatever its date range, plus 100 credits per period requested when
include_periodsistrue: one month with per-period detail costs 200 credits, twelve months 1,300. The cost is held from your credit balance when the report is accepted. When the balance cannot cover it the request returns402 insufficient_creditsand nothing is created. - The held credits are charged when the report is ready. Automatic retries, polling, listing and downloads cost nothing more. A report that finally fails, including for an ASIN Amazon does not list, costs nothing, and its held credits are released.
Security Schemes
bearerAuth
To try an endpoint with Test, paste your API key from Datarova Connections into its Authorize box, then click Authorize.
Paste only the key. Don't type "Bearer" in front of it; that's added for you.
http