Amazon Offers API (Async)
The Amazon Offers API endpoint will retrieve offers for a specified product from an Amazon offers page and transform it into usable JSON.
Single ASIN Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"asin": "ASIN",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/amazon/offers"import requests
url = "https://async.scraperapi.com/structured/amazon/offers"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"asin": "ASIN",
"country_code": "COUNTRY_CODE",
"tld" : "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Multiple ASINs Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"asins": ["ASIN1", "ASIN2],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/amazon/offers"import requests
url = "https://async.scraperapi.com/structured/amazon/offers"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"asins": ["ASIN1", "ASIN2"],
"country_code": "COUNTRY_CODE",
"tld" : "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Supported Parameters
API_KEY(required)
Your API Key.
ASIN(required)
Amazon Standard Identification Number. Please not that ASIN's are market specific (TLD). You can usually find the ASINs in the URL of an Amazon product (example: B07FTKQ97Q)
TLD
Amazon market to be scraped.
Valid values include:
com (amazon.com)
co.uk (amazon.co.uk)
ca (amazon.ca)
de (amazon.de)
es (amazon.es)
fr (amazon.fr)
ie(amazon.ie)
it (amazon.it)
co.jp (amazon.co.jp)
co.za(amazon.co.za)
in (amazon.in)
cn (amazon.cn)
com.sg (amazon.com.sg)
com.mx (amazon.com.mx)
ae (amazon.ae)
com.br (amazon.com.br)
nl (amazon.nl)
com.au (amazon.com.au)
com.tr (amazon.com.tr)
sa (amazon.sa)
se (amazon.se)
pl (amazon.pl)
COUNTRY_CODE
Valid values are two letter country codes for which we offer Geo Targeting (e.g. “au”, “es”, “it”, etc.).
Where an amazon domain needs to be scraped from another country (e.g. scraping amazon.com from Canada to get Canadian shipping information), both TLD and COUNTRY parameters must be specified.
OUTPUT_FORMAT
For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:
csv
json (default)
REF
A reference string used by amazon. For example: olp_f_usedAcceptable
F_NEW
Boolean parameter with a possible value of true or false indicating the condition of the listed items.
F_USED_GOOD
Boolean parameter with a possible value of true or false indicating the condition of the listed items.
F_USED_LIKE_NEW
Boolean parameter with a possible value of true or false indicating the condition of the listed items.
F_USED_VERY_GOOD
Boolean parameter with a possible value of true or false indicating the condition of the listed items.
F_USED_ACCEPTABLE
Boolean parameter with a possible value of true or false indicating the condition of the listed items.
ZIP Code Targeting
To find out mote about ZIP Code targeting, please follow this link.
Sample Response
Single ASIN Request
Multiple ASINs Request
After the job(s) finish, you will find the result under the response key in the response JSON object. The structure is the same as in the corresponding SYNC data endpoint.
Last updated

