Live search
Real-time retrieval of Amazon search results pages. It is available to every account with User API access.
Run a live search
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
marketplaceis required:US,CA,MX,UK,DE,FR,IT,ES,AU,JP,BR,IN,SG,TR,NL,PL,SE,BE,SA,AE,EG,IEorZA, in any letter case. Any other value returns400 invalid_marketplace.keywordis required: 1 to 256 characters after surrounding whitespace is trimmed.pagedefaults to1.postal_codeis the delivery location. Each marketplace supports a set of postal codes and uses its default, listed under Default delivery postal codes, whenpostal_codeis omitted. InSA,AEandEGthe supported values are city names. Read the supported values, with the city and region of each, fromGET /v0/postal-codes: the set can change, so do not hardcode it. Letter case, spaces and hyphens are ignored, som5h2n2selectsM5H 2N2and00950selects00-950. Any other value, including an empty one or a postal code that belongs to another marketplace, returns400 unsupported_postal_code.NL,BEandZAdeliver to the whole country and take nopostal_code: omit it. Any value there, including the country name, returns400 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_codeisnullforNL,BEandZA. - Send each parameter at most once. Unknown parameters return
400 unknown_query_parameterand repeated ones400 repeated_query_parameter. - Invalid input is rejected before any search runs and costs nothing.
Default delivery postal codes
| Marketplace | Default postal code or city | Location |
|---|---|---|
US | 10011 | New York, New York |
CA | M5H 2N2 | Toronto, Ontario |
MX | 01000 | Mexico City, Mexico City |
UK | NR1 1BG | Norwich, England |
DE | 10115 | Berlin, Berlin |
FR | 75001 | Paris, Île-de-France |
IT | 20121 | Milan, Lombardy |
ES | 28002 | Madrid, Community of Madrid |
AU | 3000 | Melbourne, Victoria |
JP | 100-0005 | Tokyo, Tokyo |
BR | 01310-100 | São Paulo, São Paulo |
IN | 400001 | Mumbai, Maharashtra |
SG | 018956 | Marina Bay, Singapore |
TR | 34134 | Istanbul, Istanbul |
NL | None: whole country | Netherlands |
PL | 00-950 | Warsaw, Masovian |
SE | 111 53 | Stockholm, Stockholm County |
BE | None: whole country | Belgium |
SA | Riyadh | Riyadh, Riyadh Province |
AE | Dubai | Dubai, Dubai |
EG | New Cairo City | New Cairo City, Cairo |
IE | D02 N403 | Dublin, County Dublin |
ZA | None: whole country | South 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.
| Group | Fields |
|---|---|
core | Each result's asin, page_position, position, is_sponsored and placement, plus request_parameters, request_metadata, search_information and pagination. |
product_details | title, subtitle, brand, tracked_url, image_url, size, attribute, rating, review_count, positively_reviewed_for, top_reviewed_for, monthly_sales and badges. |
pricing | pricing and alternative_offers. |
fulfillment | fulfillment, is_prime and quantity_in_stock, on results and on selected alternative offers and ad products. |
ad_blocks | ad_blocks. Ad products carry their asin and the other selected product groups. |
related_searches | related_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:
Code
The raw page for a delivery postal code, saved to a file:
Code
A search in another marketplace, delivered to a postal code listed by GET /v0/postal-codes:
Code
query Parameters
marketplaceMarketplace code, in any letter case.
keywordKeyword 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.
pageResults page to retrieve.
postal_codeDelivery 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.
outputjson for structured results or html for the raw Amazon page.
includeComma-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.
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.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: data | |
| type = object · requires: data |
List postal codes
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
marketplaceis optional:US,CA,MX,UK,DE,FR,IT,ES,AU,JP,BR,IN,SG,TR,NL,PL,SE,BE,SA,AE,EG,IEorZA, in any letter case. Omit it for every marketplace. Any other value returns400 invalid_marketplace.- Send
marketplaceat most once. An unknown parameter returns400 unknown_query_parameterand a repeated one400 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:
Code
One marketplace:
Code
query Parameters
marketplaceOnly this marketplace, in any letter case. Omit it for every marketplace.
List postal codes › Responses
The supported postal codes for every marketplace, or for the one requested.
One entry per marketplace.