Skip to content

Search Request

Send a GET request with operation=SEARCH to the Real-Time API. You identify the search with either a keyword or the url of an Amazon search results page.

Endpoint

GET https://realtime.easyparser.com/v1/request

Required parameters

All parameters go in the query string. See Common Request Fields for details on the shared parameters.

ParameterTypeRequiredDescription
api_keystringYesYour API key, sent as a query parameter. Find it at Account > Plan.
platformstringYesTarget platform. Allowed: AMZ (Amazon).
operationstringYesOperation code in upper case. Allowed: SEARCH.
domainstringYesAmazon marketplace, written with a leading dot, for example .com. When you send url or address_id, use the domain of that URL or address. See Supported Marketplaces.
keywordstringConditionalSearch term, for example wireless earbuds. Maximum 255 characters. Required when url is not sent. Send keyword or url, not both.
urlstringConditionalFull URL of an Amazon search results page, URL-encoded, for example https://www.amazon.com/s?k=wireless+mouse. Required when keyword is not sent. Send keyword or url, not both.

Optional parameters

ParameterTypeRequiredDescription
sort_bystringNoSort order of the results. Default: featured. Allowed: featured, price-asc-rank, price-desc-rank, review-rank, date-desc-rank, exact-aware-popularity-rank.
refinementsstringNoComma-separated Amazon filters in the form n:<category_id>,p_<group>:<id>, for example n:7141123011,p_123:502215.
exclude_refinementsbooleanNoWhen true, Amazon's default refinements are not applied. Default: false.
exclude_sponsoredbooleanNoRemoves sponsored (ad) listings from the results when true. Default: false.
min_pageintegerNoFirst page to fetch. Default: 1. Allowed: 1 to 400.
max_pageintegerNoLast page to fetch. Must be greater than or equal to min_page, and one request covers at most 5 pages. Default: 1. Allowed: 1 to 400.
pageintegerNoOne results page to fetch, as an alternative to min_page and max_page. Costs 1 credit. Send either page or min_page and max_page, not both. Default: 1.
languagestringNoLanguage of the returned content, as a locale code valid for the domain, for example en_US. Default: marketplace default.
currencystringNoCurrency of returned prices, as a lower-case ISO 4217 code valid for the domain, for example usd. Default: marketplace default.
address_idintegerNoID of an Active saved address for the same domain, from the Addresses page. Default: marketplace default address.
zip_codestringNoInline delivery address: zip or postal code. Join two-part codes with a comma, for example N0E,1Y0.
citystringNoInline delivery address: city. Required with zip_code on .com.au and with district on .ae; send it alone on .sa and .eg.
districtstringNoInline delivery address: area within city. Only on .ae, together with city.
country_codestringNoInline delivery address: ISO 3166 alpha-2 country code, for example CA.
associate_idstringNoAmazon Associates tag added to product links in the response, for example mytag-20.
parametersstringNoExtra Amazon URL query parameters, URL-encoded as one value, for example tag%3Dmytag-20%26ref%3Dcustom for tag=mytag-20&ref=custom. Separate pairs with an encoded & (%26); semicolons do not work.
cookiestringNoCookies forwarded to Amazon in the HTTP Cookie header: key=value pairs separated by ;, URL-encoded as one value.

sort_by values

ValueOrder
featuredFeatured (Amazon's default order)
price-asc-rankPrice: low to high
price-desc-rankPrice: high to low
review-rankAverage customer review
date-desc-rankNewest arrivals
exact-aware-popularity-rankBest sellers

refinements format

A refinement is a key:value pair taken from Amazon's search filters. Separate several refinements with commas.

  • n:<category_id> limits results to a category (browse node), for example n:7141123011.
  • p_<group>:<id> applies a sidebar filter such as brand, color or rating, for example p_123:502215.

Credit cost

ConditionCredits
Each results page fetched (max_page - min_page + 1)1
Maximum per request (5 pages)5

Failed requests are not charged. See Credit Consumption.

Example request

Terminal window
curl --get "https://realtime.easyparser.com/v1/request" \
--data-urlencode "api_key=YOUR_API_KEY" \
--data-urlencode "platform=AMZ" \
--data-urlencode "operation=SEARCH" \
--data-urlencode "domain=.com" \
--data-urlencode "keyword=wireless earbuds" \
--data-urlencode "sort_by=featured" \
--data-urlencode "min_page=1" \
--data-urlencode "max_page=1"

Notes

  • keyword is usually simpler to automate than url. When you send url, set domain to the marketplace of the URL host (for example .com for www.amazon.com).
  • An invalid keyword returns MSG1019 ("Invalid Search Term"), and an invalid url returns MSG1011 ("Invalid url").
  • If max_page is lower than min_page, the request fails with MSG1010 ("Maximum page count must be more than minimum page count").
  • A language that the domain does not offer returns MSG1015 ("Invalid language for domain"). See Supported Marketplaces for the languages and currencies of each domain.
  • Sending inline address fields (zip_code, city, district, country_code) raises the server-side timeout from 15 to 45 seconds. address_id does not change it.
  • In the Bulk API, you send keywords or urls as arrays and choose one page per input value with page instead of min_page and max_page.