Search
Scrape Amazon search results with Web Scraper API. Retrieve product titles, prices, ratings & more with JS rendering, geolocation, and examples.
The amazon_search source retrieves Amazon search result pages. With "parse": true the response is structured JSON (fields described in the data dictionary below); without it, the response contains the page HTML in content.
Request samples
In the code examples below, we make a request to retrieve a result from amazon.com, which includes 2 search results pages, starting from page #2 , for the search term nirvana tshirt. Additionally, the search is be limited to category ID: 16391693031 and the prices are displayed in USD currency.
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "amazon_search",
"domain": "com",
"query": "nirvana tshirt",
"start_page": 2,
"pages": 2,
"parse": true,
"context": [
{"key": "category_id", "value": "16391693031"},
{"key": "currency", "value": "USD"}
]
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'amazon_search',
'domain': 'com',
'query': 'nirvana tshirt',
'start_page': 2,
'pages': 2,
'parse': True,
'context': [
{'key': 'category_id', 'value': '16391693031'},
{'key': 'currency', 'value': 'USD'}
]
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())Request parameter values
source
Sets the scraper.
amazon_search
query
The keyword or phrase to search for. Either query or context:merchant_id must be set.
-
start_page
Starting page number.
1
pages
Number of pages to retrieve.
1
geo_location, domain, locale, context:currency, context:sort_by, context:refinements, context:min_price / max_price, context:category_id, context:merchant_id
Optional parameters, see Localization and Filtering.
-
- mandatory parameter
Response example
A parsed search for echo dot on amazon.com (lists shortened to one item, long values cut).
Localization and Filtering
geo_location
The Deliver to location: a ZIP or postal code of the marketplace country (e.g. 10001 on com) or a two-letter ISO country code (e.g. DE). Country or city names are not accepted.
-
locale
Interface language of the page (Accept-Language value). Values depend on the marketplace; an unsupported value returns 400 with the accepted list. Full list in Domain & Locale.
marketplace default
context:currency
Currency in which prices are shown. Available values depend on the marketplace and some marketplaces (including com) show their default currency only. Available and default values here.
marketplace default
context:sort_by
Sets the sorting type of the search results page according to one of possible values in Amazon:
"most_recent", "price_low_to_high", "price_high_to_low", "featured", "average_review", "bestsellers".
-
context:refinements
A list of Amazon search refinement parameters used to apply specific filters to search results. These parameters correspond to Amazon's dynamic filtering options (e.g., brand, price range, features) and follow Amazon's internal parameter format such as p_123:256097 or p_n_feature_twenty-eight_browse-bin:98209020031.
Since filtering options vary by category and are dynamically generated by Amazon, the recommended workflow is:
First, scrape the target Amazon search page with
parse: trueto discover available refinement optionsExtract the desired filter parameters from the parsed response
Use those parameters in subsequent requests via the
refinementsfield to apply specific filters
-
context:min_price / max_price
Filter results by price range. Both values are expressed in cents, not in the main currency unit: min_price: 5000 with max_price: 10000 returns products between $50.00 and $100.00. Must be positive integers. Either one can be used on its own.
-
context:category_id
Search for items in a particular Amazon node (product category).
-
context:merchant_id
Search for items sold by a particular seller.
-
Output data dictionary
API returns a HTML or JSON object that contains the search results retrieved from the Amazon.
HTML example

JSON structure
All search results are contained within the results JSON array. Each search result includes a combination of paid, organic, suggested, amazons_choices,instant_recommendations listings. Additionally, variations may be present, and they are captured within the variations key, providing details about different types or categories of products, such as various models, editions, or versions.
url
The URL of the Amazon search page.
string
page
The current page number.
integer
pages
The total number of pages.
integer
query
The search query used.
string
results
A dictionary containing the results of the search.
object
results.paid
A list of sponsored products with their respective details.
array
results.organic
A list of organic products with their respective details.
array
results.suggested
A list of suggested products with their respective details.
array
results.amazons_choices
A list of Amazon's choices with their respective details.
array
refinements
A list of refinements available on this search page.
array
parse_status_code
The status code of the parsing job. You can see the parser status codes described here.
integer
total_results_count
The total number of results found for the search query.
integer
created_at
The timestamp when the scraping job was created.
string
updated_at
The timestamp when the scraping job was finished.
string
job_id
The ID of the job associated with the scraping job.
string
status_code
The status code of the scraping job. You can see the scraper status codes described here.
integer
parser_type
The type of parser used for parsing the data.
string
Paid
The paid section of the search results refers to inline ad content that is displayed within the Amazon search results.

url
The URL of the product.
string
asin
Amazon Standard Identification Number.
string
price
The price of the product.
float
title
The title of the product.
string
rating
The rating of the product.
float
rel_pos
The relative position of the product in the search results.
(either pos or rel_pos is present)
integer
pos
A unique indicator denoting the position in the listing. (either pos or rel_pos is present)
integer
currency
The currency in which the price is denominated.
string
url_image
The URL of the product image.
string
best_seller
Indicates whether the product is a best seller.
boolean
price_upper
The upper limit of the price if applicable.
float
is_sponsored
Indicates whether the product is sponsored.
boolean
manufacturer
The name of the manufacturer of the product.
string
pricing_count
The count of offers for the product.
integer
reviews_count
The count of reviews for the product.
integer
coupon_discount
The discounted amount.
integer (optional)
coupon_discount_type
The type of discount: nominal or percentage.
string (optional)
is_amazons_choice
Indicates whether the product is marked as "Amazon's choice".
boolean
no_price_reason
Indicator why the price is not present, if it's equal to 0.0
string (optional)
sales_volume
The sales volume or number of units sold for a particular product.
string (optional)
is_prime
Indicates whether the product is eligible for Amazon Prime.
boolean
shipping_information
Information about the shipping details for the produc
string
Organic
The organic section of the search results refers to non-sponsored content that appears naturally based on Amazon's search algorithm.

pos
A unique indicator denoting the position in the listing.
integer
url
The URL of the product.
string
asin
Amazon Standard Identification Number.
string
price
The price of the product.
float
title
The title of the product.
string
rating
The rating of the product.
float
currency
The currency in which the price is denominated.
string
is_prime
Indicates whether the product is eligible for Amazon Prime.
boolean
url_image
The URL of the product image.
string
best_seller
Indicates whether the product is a best seller.
boolean
price_upper
The upper limit of the price if applicable.
float
is_sponsored
Indicates whether the product is sponsored.
boolean
manufacturer
The name of the manufacturer of the product.
string
sales_volume
The sales volume or number of units sold for a particular product.
string (optional)
pricing_count
The count of pricings for the product.
integer
reviews_count
The count of reviews for the product.
integer
coupon_discount
The discounted amount.
integer (optional)
coupon_discount_type
The type of discount: nominal or percentage.
string (optional)
is_amazons_choice
Indicates whether the product is Amazon's choice.
boolean
price_strikethrough
Original price before any discounts.
float
shipping_information
Delivery dates and shipping cost details.
string
no_price_reason
Indicator why the price is not present, if it's equal to 0.0
string (optional)
variations
List of different versions or models of a product
Array
Suggested
The suggested section in the search results typically contains product listings recommended by the platform based on the user's search query, browsing history, or purchase behavior.

url
The URL of the product.
string
asin
Amazon Standard Identification Number.
string
price
The price of the product.
float
title
The title of the product.
string
rating
The rating of the product.
float
currency
The currency in which the price is denominated.
string
url_image
The URL of the product image.
string
best_seller
Indicates whether the product is a best seller.
boolean
price_upper
The upper limit of the price if applicable.
float
is_sponsored
Indicates whether the product is sponsored.
boolean
manufacturer
The name of the manufacturer of the product.
string
pricing_count
The count of pricing for the product.
integer
reviews_count
The count of reviews for the product.
integer
coupon_discount
The discounted amount.
integer (optional)
coupon_discount_type
The type of discount: nominal or percentage.
string (optional)
is_amazons_choice
Indicates whether the product is Amazon's choice.
boolean
pos
A unique indicator denoting the position in the listing.
integer
is_prime
Indicates whether the product is eligible for Amazon Prime.
boolean
shipping_information
Information about the shipping details for the product.
string
sales_volume
The sales volume or number of units sold for a particular product.
string (optional)
no_price_reason
Indicator why the price is not present, if it's equal to 0.0
string (optional)
suggested_query
The suggested query provided by Amazon as part of the search results.
string
Amazon's Choices
The amazons_choices section features products with 'Amazon's Choice' badge and are recommended by the platform for their perceived quality and value.

url
The URL of the product.
string
asin
Amazon Standard Identification Number.
string
price
The price of the product.
float
title
The title of the product.
string
rating
The rating of the product.
float
currency
The currency in which the price is denominated.
string
url_image
The URL of the product image.
string
best_seller
Indicates whether the product is a best seller.
boolean
price_upper
The upper limit of the price if applicable.
float
is_sponsored
Indicates whether the product is sponsored.
boolean
manufacturer
The name of the manufacturer of the product.
string
pricing_count
The count of pricing for the product.
integer
reviews_count
The count of reviews for the product.
integer
coupon_discount
The discounted amount.
integer (optional)
coupon_discount_type
The type of discount: nominal or percentage.
string (optional)
is_amazons_choice
Indicates whether the product is Amazon's choice.
boolean
pos
A unique indicator denoting the position in the listing.
integer
is_prime
Indicates whether the product is eligible for Amazon Prime.
boolean
shipping_information
Information about the shipping details for the product.
string
sales_volume
The sales volume or number of units sold for a particular product.
string (optional)
no_price_reason
Indicator why the price is not present, if it's equal to 0.0
string (optional)
variations
List of different versions or models of a product
Array
Variations
The variations section lists different versions or models of a product, providing a detailed overview of available options in the specified category.

asin
Amazon Standard Identification Number
string
title
Title of the variation
string
price
Price of the variation
float
price_strikethrough
The original price before any discounts or promotions
float
not_available
Indicates if the variation is currently unavailable
boolean
Last updated
Was this helpful?