Datarova
Datarova User API

Data generated on request for any ASIN or keyword. Request a report with 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_date and end_date are required; interval defaults to monthly, include_periods to false and format to json. Any other parameter, including asin, returns 400 invalid_report_parameters.
  • include_periods must be true or false; any other value returns 400 invalid_include_periods.
  • format must be json, jsonl or csv; any other value returns 400 invalid_format.
  • start_date must start a period: the first day of a month, or the Sunday that starts a week. end_date is 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 returns 400 unavailable_dates with error.earliest_date and error.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/reports before 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 is null, never a formatted string or a placeholder number:

FieldTypeDescription
keywordstringThe keyword.
clicksintegerAverage clicks per week or month over the range, rounded to a whole number. 0 when the keyword has no data in the range.
salesintegerAverage sales per week or month over the range, rounded to a whole number. 0 when the keyword has no data in the range.
conversion_ratenumberSales as a percentage of clicks, 0 to 100, rounded to one decimal place. 0 when the keyword has no data in the range.
top_asinstring or nullThe ASIN with the most sales for the keyword over the range. Null when there is none.
top_asin_clicksinteger or nullThe 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_salesinteger or nullThe top ASIN's average sales for the keyword over the same weeks or months. Null when top_asin is null.
top_asin_conversion_ratenumber or nullThe 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.
dstrinteger or nullDaily 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.

Records are ordered by 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.

JSONCode
[ { "keyword": "yoga mat", "clicks": 18240, "sales": 1532, "conversion_rate": 8.4, "top_asin": "B000000001", "top_asin_clicks": 2210, "top_asin_sales": 301, "top_asin_conversion_rate": 13.6, "dstr": 14 }, { "keyword": "yoga mat strap", "clicks": 0, "sales": 0, "conversion_rate": 0, "top_asin": null, "top_asin_clicks": null, "top_asin_sales": null, "top_asin_conversion_rate": null, "dstr": null } ]

The example values are illustrative.

Per-period detail

Set include_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:

FieldTypeDescription
datestringStart date of the week or month, YYYY-MM-DD.
clicksnumberThe keyword's clicks in the period.
salesnumberThe keyword's sales in the period.
conversion_ratenumberSales as a percentage of clicks, rounded to one decimal place. 0 when clicks is 0.
asin_1, asin_2, asin_3objectThe 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.
JSONCode
"periods": [ { "date": "2026-08-01", "clicks": 18950, "sales": 1610, "conversion_rate": 8.5, "asin_1": { "asin": "B000000002", "clicks": 2300, "sales": 310, "conversion_rate": 13.5 }, "asin_2": { "asin": "B000000003", "clicks": 1200, "sales": 98, "conversion_rate": 8.2 }, "asin_3": { "asin": null, "clicks": null, "sales": null, "conversion_rate": null } } ]

File formats

Set format 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, including periods when 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 for null. Numbers are plain numbers and dates are YYYY-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 '.

Without periods the CSV columns are the requested marketplace followed by the record fields above: marketplace, keyword, clicks, sales, conversion_rate, top_asin, top_asin_clicks, top_asin_sales, top_asin_conversion_rate, dstr.

Code
marketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr "US","yoga mat",18240,1532,8.4,"B000000001",2210,301,13.6,14 "US","yoga mat strap",0,0,0,,,,,

With 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
marketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr,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 "US","yoga mat",18240,1532,8.4,"B000000001",2210,301,13.6,14,"2026-08-01",18950,1610,8.5,"B000000002",2300,310,13.5,"B000000003",1200,98,8.2,,,, "US","yoga mat strap",0,0,0,,,,,,,,,,,,,,,,,,,,,

Charging

  • A report costs 100 credits, whatever its date range, plus 100 credits per period requested when include_periods is true: 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 returns 402 insufficient_credits and 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_date and end_date are required; interval defaults to monthly, include_periods to false and format to json. Any other parameter, including keyword, returns 400 invalid_report_parameters.
  • asin must be 10 letters and digits; anything else returns 400 invalid_asin and creates nothing. Whether Amazon lists the ASIN in the marketplace is checked while the report is generated: if it does not, the report fails with failure_code invalid_asin.
  • The report always includes the ASIN's variations, as the app does. There is no option to exclude them.
  • include_periods must be true or false; any other value returns 400 invalid_include_periods.
  • format must be json, jsonl or csv; any other value returns 400 invalid_format.
  • start_date must start a period: the first day of a month, or the Sunday that starts a week. end_date is 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 returns 400 unavailable_dates with error.earliest_date and error.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/reports before 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 is null, never a formatted string or a placeholder number:

FieldTypeDescription
keywordstringThe keyword.
clicksintegerAverage clicks per week or month over the range, rounded down to a whole number. 0 when the keyword has no data in the range.
salesintegerAverage 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_ratenumberSales as a percentage of clicks, 0 to 100, rounded to one decimal place. 0 when the keyword has no data in the range.
top_asinstring or nullThe ASIN with the most sales for the keyword over the range. Null when there is none.
top_asin_clicksinteger or nullThe 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_salesinteger or nullThe top ASIN's average sales for the keyword over the same weeks or months. Null when top_asin is null.
top_asin_conversion_ratenumber or nullThe 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.
dstrinteger or nullDaily 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.
kpsinteger or nullKeyword 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.
relevancyintegerHow 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_rankinteger or nullThe 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_rankinteger or nullThe 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_3integerThe weeks or months in the range in which the ASIN or one of its variations was among the keyword's top three clicked ASINs.

Records are ordered by 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.

JSONCode
[ { "keyword": "yoga mat", "clicks": 18240, "sales": 1532, "conversion_rate": 8.4, "top_asin": "B000000002", "top_asin_clicks": 2210, "top_asin_sales": 301, "top_asin_conversion_rate": 13.6, "dstr": 14, "kps": 1, "relevancy": 92, "organic_rank": 4, "sponsored_rank": 2, "periods_in_top_3": 3 }, { "keyword": "yoga mat strap", "clicks": 0, "sales": 0, "conversion_rate": 0, "top_asin": null, "top_asin_clicks": null, "top_asin_sales": null, "top_asin_conversion_rate": null, "dstr": null, "kps": null, "relevancy": 0, "organic_rank": null, "sponsored_rank": null, "periods_in_top_3": 0 } ]

The example values are illustrative.

Per-period detail

Set include_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:

FieldTypeDescription
datestringStart date of the week or month, YYYY-MM-DD.
clicksnumberThe keyword's clicks in the period.
salesnumberThe keyword's sales in the period.
conversion_ratenumberSales as a percentage of clicks, rounded to one decimal place. 0 when clicks is 0.
asin_1, asin_2, asin_3objectThe 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.
JSONCode
"periods": [ { "date": "2026-08-01", "clicks": 18950, "sales": 1610, "conversion_rate": 8.5, "asin_1": { "asin": "B000000002", "clicks": 2300, "sales": 310, "conversion_rate": 13.5 }, "asin_2": { "asin": "B000000003", "clicks": 1200, "sales": 98, "conversion_rate": 8.2 }, "asin_3": { "asin": null, "clicks": null, "sales": null, "conversion_rate": null } } ]

File formats

Set format 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, including periods when 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 for null. Numbers are plain numbers and dates are YYYY-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 '.

Without periods the CSV columns are the requested marketplace followed by the record fields above: 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.

Code
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 "US","yoga mat",18240,1532,8.4,"B000000002",2210,301,13.6,14,1,92,4,2,3 "US","yoga mat strap",0,0,0,,,,,,,0,,,0

With 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
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,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 "US","yoga mat",18240,1532,8.4,"B000000002",2210,301,13.6,14,1,92,4,2,3,"2026-08-01",18950,1610,8.5,"B000000002",2300,310,13.5,"B000000003",1200,98,8.2,,,, "US","yoga mat strap",0,0,0,,,,,,,0,,,0,,,,,,,,,,,,,,,,

Charging

  • A report costs 100 credits, whatever its date range, plus 100 credits per period requested when include_periods is true: 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 returns 402 insufficient_credits and 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.

List reports

GET
https://api.datarova.com
/v0/reports
Bearer (API key)

Lists your account's reports of every type under data.reports, newest first, with the same fields as the request and status responses. Use it to find report IDs, types and states, or to recover a request whose response was lost. Exports are not listed.

Request rules

  • report_type optionally restricts the list to one report type; an unknown value, including an export type, returns 400 unsupported_report_type.
  • date_from and date_to optionally filter creation dates as strict YYYY-MM-DD calendar dates in America/Los_Angeles. Either bound may be omitted; both boundary days are included. These filters use created_at, not the dates inside parameters.
  • Malformed or impossible dates return 400 invalid_date. A date_to before date_from returns 400 invalid_date_range.
  • limit defaults to 50 and accepts 1 to 100.

Pagination

Continue while data.page.has_more is true, passing data.page.next_cursor unchanged as the next request's opaque cursor with the same limit, report_type, date_from and date_to. Restart without a cursor when changing filters. A cursor that is unknown or belongs to another account returns an empty page.

Limits

  • Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.
  • The burst limit is 60 requests per 60 seconds. After a 429, wait for the Retry-After delay before retrying.

Examples

Replace <api_key> with your API key. This example finds keywords-for-ASIN reports created during November 2026 in Los Angeles time.

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/reports?limit=50&report_type=keywords_for_asin.1&date_from=2026-11-01&date_to=2026-11-30' \ --header 'Authorization: Bearer <api_key>'

For the next page, replace <next_cursor> with the returned value; --data-urlencode encodes it for the URL:

TerminalCode
curl --request GET --get \ --url 'https://api.datarova.com/v0/reports' \ --header 'Authorization: Bearer <api_key>' \ --data-urlencode 'limit=50' \ --data-urlencode 'report_type=keywords_for_asin.1' \ --data-urlencode 'date_from=2026-11-01' \ --data-urlencode 'date_to=2026-11-30' \ --data-urlencode 'cursor=<next_cursor>'

List reports › query Parameters

date_from
​string · date · pattern: ^\d{4}-\d{2}-\d{2}$

First included creation day, a strict YYYY-MM-DD date in America/Los_Angeles. Omit for no lower bound.

date_to
​string · date · pattern: ^\d{4}-\d{2}-\d{2}$

Last included creation day, on or after date_from. Omit for no upper bound.

report_type
​string · enum

Return only reports of this type.

Enum values:
keywords_for_keyword.1
keywords_for_asin.1
limit
​integer · min: 1 · max: 100
Default: 50
cursor
​string · uuid

Opaque cursor returned by the previous page.

List reports › Responses

Successful response.

​object · required

Request a report

POST
https://api.datarova.com
/v0/reports
Bearer (API key)

Requests a report and returns 202 Accepted with the new report under data. Use it to get keyword data for any keyword or ASIN, whether or not you track it in a project. The report has the same fields as list entries and status responses, with result: null until it is ready. Use data.id (also returned in the Location header) to poll GET /v0/reports/{reportId}, then request a download link once state is ready. Acceptance does not mean the file is ready.

Request rules

  • report_type chooses what the report contains and which parameters apply: keywords_for_keyword.1 or keywords_for_asin.1. Each type's parameters, file fields and charging are listed in the Reports overview above. The suffix on each id is the version of that type's parameters and file; a change ships as a new id and existing ids keep working.
  • A missing or unknown report_type, including an export type such as ranks_by_asin.1, returns 400 unsupported_report_type and creates nothing.
  • parameters is required and must contain only the chosen type's parameters. A missing parameters object, a parameter of the other type, or any unknown parameter returns 400 invalid_report_parameters. Any other top-level field returns 400 unknown_body_parameter.
  • Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check GET /v0/reports before requesting again.

Errors

  • 400: unsupported_report_type, invalid_report_parameters, an unknown body field, an invalid keyword, ASIN, marketplace, interval, include_periods, format or date, a range of more than 12 weeks or months, or dates outside your plan's research data. error.code names the problem; correct the request and submit it again.
  • 402: no active subscription (plan_required), or the credit balance cannot cover the report's credit cost (insufficient_credits, with credit_cost, credit_balance and resets_at). Nothing is held or created. Renew the subscription, request fewer periods, or wait until resets_at (null during the renewal grace, when the credits reset as the subscription renews).
  • 403 weekly_interval_not_allowed: your plan has no weekly research data; use monthly.
  • 403: User API access or general plan eligibility is unavailable for your account; check your plan.
  • 429 outstanding_export_limit_reached: the account already has five outstanding exports and reports. Wait for one to finish, then submit again.
  • 503 research_data_unavailable: the available research dates could not be read. Retry later.
  • 503 credit_balance_unavailable: the credit balance could not be verified. Nothing is created; retry later.

Limits

  • Only the report itself is charged, as the Reports overview describes. Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.
  • The burst limit is 60 requests per 60 seconds. After a 429, wait for the Retry-After delay before retrying.
  • An account can have at most five outstanding exports and reports together: accepted requests that are waiting, being generated or waiting for an automatic retry. The account's API keys and team members share the limit, and reports requested with a team member's use of the account's API key belong to the account. A sixth returns 429 outstanding_export_limit_reached with Retry-After: 30, creates nothing and charges nothing.
  • Each account has one export or report generated at a time, in the order they were accepted.

Examples

Replace <api_key> with your API key. The keyword, ASIN and dates are illustrative.

TerminalCode
curl --request POST \ --url 'https://api.datarova.com/v0/reports' \ --header 'Authorization: Bearer <api_key>' \ --header 'Content-Type: application/json' \ --data '{"report_type":"keywords_for_keyword.1","parameters":{"keyword":"yoga mat","marketplace":"US","start_date":"2026-05-01","end_date":"2026-09-30"}}'

For the keywords of one ASIN, use this body with the same method, URL and headers:

JSONCode
{"report_type":"keywords_for_asin.1","parameters":{"asin":"B000000001","marketplace":"US","start_date":"2026-05-01","end_date":"2026-09-30"}}

For weekly data from August to September 2026, use this body:

JSONCode
{"report_type":"keywords_for_keyword.1","parameters":{"keyword":"yoga mat","marketplace":"US","interval":"weekly","start_date":"2026-08-02","end_date":"2026-09-27"}}

For each keyword's month-by-month detail from July to September 2026 as a CSV file, use this body, which adds include_periods and format:

JSONCode
{"report_type":"keywords_for_asin.1","parameters":{"asin":"B000000001","marketplace":"US","start_date":"2026-07-01","end_date":"2026-09-30","include_periods":true,"format":"csv"}}

Request a report › Request Body

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · report_type="keywords_for_keyword.1" · requires: parameters
type = object · report_type="keywords_for_asin.1" · requires: parameters
Properties for Keywords for a keyword:
Request body for a keywords_for_keyword.1 report. The version suffix on `report_type` identifies the parameter set and file fields; a future change ships as a new id.
report_type
​string · enum · required
Enum values:
keywords_for_keyword.1
​KeywordsForKeywordReportParameters · required

What to research. Any other key, including asin, returns 400 invalid_report_parameters.

Request a report › Responses

Accepted. Poll Location after at least Retry-After seconds; no completion-time guarantee.

​Report · required

One accepted report and its result. report_type says which type it is and which parameters it has. failure_code is machine-readable and failure_message says what to do next; see Get a report for every code.


Get a report

GET
https://api.datarova.com
/v0/reports/{reportId}
Bearer (API key)

Returns one report's type, state, parameters and result metadata under data. Poll it after acceptance until the state is terminal, then request a download link for a ready report.

States

  • queued and processing: generation has not finished and result is null. Poll again at least five seconds apart.
  • ready: the file is complete. result contains row_count (the number of keywords), compressed_bytes and expires_at; call GET /v0/reports/{reportId}/download.
  • failed: generation stopped and result is null. failure_code identifies the cause and failure_message says what to do next. The report costs nothing and its held credits are released.
  • expired: the file's 30-day retention has ended. The details and result remain readable, but the file cannot be downloaded.

Transient generation problems are retried automatically and the report stays queued meanwhile.

Failure codes and recovery

  • retry_exhausted: generation failed repeatedly. Request a new report; nothing was charged.
  • invalid_asin (keywords_for_asin.1 only): Amazon does not list this ASIN in the requested marketplace. Check the ASIN and the marketplace, then request a new report; nothing was charged. This is decided on the first attempt and is not retried. A failure to reach Amazon is retried like any other transient problem and never reported as invalid_asin.
  • invalid_export_context: the saved request could not be processed. Request a new report; nothing was charged.

Errors

  • 404: the ID is unknown, belongs to another account, or identifies an export.

Limits

  • Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.
  • The burst limit is 60 requests per 60 seconds. After a 429, wait for the Retry-After delay before retrying.

Example

Replace <api_key> with your API key and <report_id> with the ID returned at acceptance.

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/reports/<report_id>' \ --header 'Authorization: Bearer <api_key>'

Get a report › path Parameters

reportId
​string · uuid · required

A report ID returned when the report was requested or listed.

Get a report › Responses

Successful response.

​Report · required

One accepted report and its result. report_type says which type it is and which parameters it has. failure_code is machine-readable and failure_message says what to do next; see Get a report for every code.


GET
https://api.datarova.com
/v0/reports/{reportId}/download
Bearer (API key)

Returns a temporary download URL under data.url, with its expiry in data.expires_at, for a report whose state is ready. Use it once GET /v0/reports/{reportId} shows ready. Download the file with a plain GET on that URL; no authentication header is needed for it. Treat the complete returned URL as opaque and confidential.

Links and retention

  • Each link lasts at most five minutes and never beyond the file's expiry. Request a new link whenever you need one; this does not regenerate the report, charge again or extend retention.
  • The file stays available for 720 hours after completion; the report's result.expires_at shows when.

File format

The file is delivered as application/gzip with an attachment filename named after the report type and the report's format: keywords-for-keyword.json.gz, keywords-for-keyword.jsonl.gz or keywords-for-keyword.csv.gz for keywords_for_keyword.1, and keywords-for-asin.json.gz, keywords-for-asin.jsonl.gz or keywords-for-asin.csv.gz for keywords_for_asin.1. A JSON file is one array of keyword records, [] when nothing matched; a JSONL file has one record per line; a CSV file has a header row and one row per keyword, or per keyword and period with periods. Each type's fields, columns and order are described in the Reports overview.

Errors

  • 409 export_not_ready: the report is queued, processing or failed. Poll its status; a failed report has no file.
  • 410 export_expired: the file's retention period has ended. Request a new report if you still need the data.
  • 404: the ID is unknown, belongs to another account, or identifies an export.

Limits

  • Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.
  • The burst limit is 60 requests per 60 seconds. After a 429, wait for the Retry-After delay before retrying.

Example

Replace <api_key> with your API key and <report_id> with the ID of a ready report.

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/reports/<report_id>/download' \ --header 'Authorization: Bearer <api_key>'

Get a report download link › path Parameters

reportId
​string · uuid · required

A report ID returned when the report was requested or listed.

Get a report download link › Responses

Successful response.

​object · required