Datarova
Datarova User API

Real-time retrieval of Amazon search results pages. It is available to every account with User API access.


GET
https://api.datarova.com
/v0/live-search
Bearer (API key)

Retrieves one Amazon search results page in real time for a keyword, marketplace, page and delivery postal code, and returns it as structured JSON or as the raw page HTML. Use it to see what shoppers see right now, for example to measure where products and sponsored placements appear.

Request rules

  • marketplace is required: US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE or ZA, in any letter case. Any other value returns 400 invalid_marketplace.
  • keyword is required: 1 to 256 characters after surrounding whitespace is trimmed.
  • page defaults to 1.
  • postal_code is the delivery location. Each marketplace supports a set of postal codes and uses its default, listed under Default delivery postal codes, when postal_code is omitted. In SA, AE and EG the supported values are city names. Read the supported values, with the city and region of each, from GET /v0/postal-codes: the set can change, so do not hardcode it. Letter case, spaces and hyphens are ignored, so m5h2n2 selects M5H 2N2 and 00950 selects 00-950. Any other value, including an empty one or a postal code that belongs to another marketplace, returns 400 unsupported_postal_code.
  • NL, BE and ZA deliver to the whole country and take no postal_code: omit it. Any value there, including the country name, returns 400 unsupported_postal_code.
  • The values used are echoed in data.request_parameters, with the marketplace in upper case and the postal code as it is listed. postal_code is null for NL, BE and ZA.
  • Send each parameter at most once. Unknown parameters return 400 unknown_query_parameter and repeated ones 400 repeated_query_parameter.
  • Invalid input is rejected before any search runs and costs nothing.

Default delivery postal codes

MarketplaceDefault postal code or cityLocation
US10011New York, New York
CAM5H 2N2Toronto, Ontario
MX01000Mexico City, Mexico City
UKNR1 1BGNorwich, England
DE10115Berlin, Berlin
FR75001Paris, Île-de-France
IT20121Milan, Lombardy
ES28002Madrid, Community of Madrid
AU3000Melbourne, Victoria
JP100-0005Tokyo, Tokyo
BR01310-100São Paulo, São Paulo
IN400001Mumbai, Maharashtra
SG018956Marina Bay, Singapore
TR34134Istanbul, Istanbul
NLNone: whole countryNetherlands
PL00-950Warsaw, Masovian
SE111 53Stockholm, Stockholm County
BENone: whole countryBelgium
SARiyadhRiyadh, Riyadh Province
AEDubaiDubai, Dubai
EGNew Cairo CityNew Cairo City, Cairo
IED02 N403Dublin, County Dublin
ZANone: whole countrySouth Africa

Field groups

include selects groups of fields for JSON output. Omit it, or send all, for every field. Otherwise send a comma-separated list of group names; core is always returned. Names are lowercase, surrounding whitespace and duplicates are ignored, and all cannot be combined with other names. Unknown, empty or differently cased names return 400 invalid_include. Selection removes fields, never products. data.request_parameters.include echoes the selection that was applied.

GroupFields
coreEach result's asin, page_position, position, is_sponsored and placement, plus request_parameters, request_metadata, search_information and pagination.
product_detailstitle, subtitle, brand, tracked_url, image_url, size, attribute, rating, review_count, positively_reviewed_for, top_reviewed_for, monthly_sales and badges.
pricingpricing and alternative_offers.
fulfillmentfulfillment, is_prime and quantity_in_stock, on results and on selected alternative offers and ad products.
ad_blocksad_blocks. Ad products carry their asin and the other selected product groups.
related_searchesrelated_searches.

Results

Sponsored results appear inline in search_results with is_sponsored: true, and placement names the ad slot Amazon served each one in: top, inline or bottom. page_position counts every result on the page from 1. position is Amazon's own result number: sponsored and organic results share it and it continues across pages, so it is not an organic rank. A result's organic rank is search_information.results_begin - 1 plus its place among the page's is_sponsored: false results in page_position order; results_begin and results_end count organic results only. The same ASIN can appear more than once, for example once sponsored and once organic. Prices are bare numbers in the marketplace's currency. The number of results per page varies, Amazon caps total_results at 2,000, and fields without a value are omitted. A page with no products returns 200 with an empty search_results array.

HTML output

output=html returns the raw Amazon page as text/html instead of the JSON envelope, sent as a download (Content-Disposition: attachment) and compressed with gzip or Brotli when your client accepts it. X-Effective-Marketplace, X-Effective-Page and X-Effective-Postal-Code report the values used; NL, BE and ZA responses have no X-Effective-Postal-Code. The HTML is Amazon's markup: its structure is not part of this contract and can change without notice. include cannot be combined with output=html (400 invalid_include). Errors and redirect responses are always JSON, so check Content-Type before treating a body as HTML.

Redirects

When Amazon sends the keyword to a category or other non-search page, the response is 200 JSON with data.redirect_url and no search_results, in both output types. This is an answer, not a failure: the same keyword will redirect again, so do not retry it. A redirect is counted like any other successful search.

Failures

A live search that fails always returns 503 with a JSON body carrying error.retryable: true and, when one exists, error.request_id. error.code identifies the failure: live_search_failed means the page could not be retrieved or read, live_search_timeout means no result arrived within 55 seconds, and live_search_unavailable means the service is temporarily unavailable. Retry after a short delay. Failed searches cost nothing. Successful responses carry the request identifier in X-Request-Id and, for JSON, in data.request_metadata.request_id; quote it when contacting support.

Access, burst limit and credit cost

Requires an active plan with User API access. The burst limit is 180 live searches per 60 seconds per account, counted separately from other endpoints, so live searches and your other requests do not use each other's allowance. An account can also have at most 30 live searches in progress at once; the next one is refused with concurrency_limit_exceeded until one finishes, and that refusal does not count toward the burst limit. API keys and MCP live_search share both limits. After 429, wait for Retry-After seconds.

Each successful live search, including an empty page or a redirect, costs 1 credit from your credit balance. X-Quota-Cost states the cost, and X-Quota-Remaining already subtracts it, on every response once a request reaches the quota check: successful and failed searches and 402 insufficient_credits responses. Authentication, access, burst-limit and validation errors happen earlier and carry no quota headers. When the credit balance cannot cover the cost, the search is refused with 402 insufficient_credits before it runs. Live searches appear as live_search in credits.used_by_action on GET /v0/usage. Nothing is cached: an identical request runs and is charged again.

Examples

Replace <api_key> with an account API key. Product and pricing fields for page 2:

TerminalCode
curl --request GET --get \ --url 'https://api.datarova.com/v0/live-search' \ --header 'Authorization: Bearer <api_key>' \ --data-urlencode 'marketplace=US' \ --data-urlencode 'keyword=water bottle' \ --data-urlencode 'page=2' \ --data-urlencode 'include=product_details,pricing'

The raw page for a delivery postal code, saved to a file:

TerminalCode
curl --request GET --get --compressed \ --url 'https://api.datarova.com/v0/live-search' \ --header 'Authorization: Bearer <api_key>' \ --data-urlencode 'marketplace=US' \ --data-urlencode 'keyword=water bottle' \ --data-urlencode 'postal_code=90001' \ --data-urlencode 'output=html' \ --output amazon-search.html

A search in another marketplace, delivered to a postal code listed by GET /v0/postal-codes:

TerminalCode
curl --request GET --get \ --url 'https://api.datarova.com/v0/live-search' \ --header 'Authorization: Bearer <api_key>' \ --data-urlencode 'marketplace=UK' \ --data-urlencode 'keyword=water bottle' \ --data-urlencode 'postal_code=CF10 1DD'

Run a live search › query Parameters

marketplace
​string · enum · required

Marketplace code, in any letter case.

Enum values:
US
CA
MX
UK
DE
FR
IT
ES
keyword
​string · minLength: 1 · maxLength: 256 · required

Keyword to search. Surrounding whitespace is trimmed before the length is checked. Length is counted in UTF-16 code units, so a character outside the Basic Multilingual Plane, such as most emoji, counts as two.

page
​integer · min: 1 · max: 20

Results page to retrieve.

Default: 1
postal_code
​string

Delivery postal code, or city name in SA, AE and EG. Results are those a shopper in this location sees. Each marketplace uses its default when this is omitted. The supported values are listed by GET /v0/postal-codes and can change. Letter case, spaces and hyphens are ignored. NL, BE and ZA deliver to the whole country and take no postal code: omit it there. Any other value, including an empty one, a postal code that belongs to another marketplace or a value for NL, BE or ZA, returns 400 unsupported_postal_code.

output
​string · enum

json for structured results or html for the raw Amazon page.

Enum values:
json
html
Default: json
include
​string[] · minItems: 1 · style: form

Comma-separated field groups for JSON output. Omitted means every group. core is always returned and all cannot be combined with other names. Not allowed with output=html.

Enum values:
all
core
product_details
pricing
fulfillment
ad_blocks
related_searches

Run a live search › Responses

Search results as JSON, the raw page as HTML, or a JSON redirect response. A redirect is JSON for both output types.

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: data
type = object · requires: data
Properties for Variant 1:
​object · required

List postal codes

GET
https://api.datarova.com
/v0/postal-codes
Bearer (API key)

Lists the postal codes that live Amazon requests accept in their postal_code parameter: for each marketplace, every supported postal code with its city, its region and whether it is the marketplace default. Use it to choose a postal_code for GET /v0/live-search, for example to search as a shopper in a particular state or city.

Request rules

  • marketplace is optional: US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE or ZA, in any letter case. Omit it for every marketplace. Any other value returns 400 invalid_marketplace.
  • Send marketplace at most once. An unknown parameter returns 400 unknown_query_parameter and a repeated one 400 repeated_query_parameter.

Response

data has one entry per marketplace, each with its delivery_scope and postal_codes. A marketplace's default postal code, the one live search uses when postal_code is omitted, has is_default: true and is listed first; the rest follow in order of region, then city. region is a full name: a state, province, prefecture, territory or county, a nation in the UK, and Singapore in Singapore. In SA, AE and EG the postal_code is a city name. Pass a postal_code to live search exactly as listed. The response is not paginated.

delivery_scope is postal_code for marketplaces with postal codes. NL, BE and ZA have delivery_scope country and an empty postal_codes list: Amazon delivers there to the whole country, so live search takes no postal_code for them.

The list can change as postal codes are added or removed, so read it from this endpoint rather than hardcoding it.

Access, burst limit and cost

Requires an active plan with User API access. The call is free: it costs no credits, keeps working when the credit balance is exhausted, and is not reported by GET /v0/usage. It shares the default burst limit of 60 requests per 60 seconds, not the live search limit. When enforced, rate-limit headers describe the current window; after 429, wait for Retry-After seconds.

Examples

Replace <api_key> with an account API key. Every marketplace:

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

One marketplace:

TerminalCode
curl --request GET \ --url 'https://api.datarova.com/v0/postal-codes?marketplace=CA' \ --header 'Authorization: Bearer <api_key>'

List postal codes › query Parameters

marketplace
​string · enum

Only this marketplace, in any letter case. Omit it for every marketplace.

Enum values:
US
CA
MX
UK
DE
FR
IT
ES

List postal codes › Responses

The supported postal codes for every marketplace, or for the one requested.

​object[] · required

One entry per marketplace.