This endpoint will retrieve product data from an Amazon product page and transform it into usable JSON.
Copy import requests
url = "https://async.scraperapi.com/structured/amazon/product"
headers = {
"Content-Type" : "application/json"
}
data = {
"apiKey" : "XXXX" ,
"asin" : "B079BLHH67" ,
"tld" : "TLD" ,
"callback" : {
"type" : "webhook" ,
"url" : "YYYY"
}
}
response = requests . post (url, json = data, headers = headers)
print (response.text)
Copy import requests
url = "https://async.scraperapi.com/structured/amazon/product"
headers = {
"Content-Type" : "application/json"
}
data = {
"apiKey" : "XXXX" ,
"asins" : [ "B079BLHH67" , "B07G98GG51" ] ,
"tld" : "TLD" ,
"callback" : {
"type" : "webhook" ,
"url" : "YYYY"
}
}
response = requests . post (url, json = data, headers = headers)
print (response.text)
Copy {
"id" : "f9c41146-ecd3-415c-ae0a-461de670e2e8" ,
"status" : "running" ,
"statusUrl" : "http://async.scraperapi.com/structured/amazon/product/f9c41146-ecd3-415c-ae0a-461de670e2e8" ,
"asin" : "B079BLHH67"
"tld" : ".com"
}
Copy [
{
"id" : "5b0c838a-d0eb-46c3-ad9a-e82e398d56a5" ,
"status" : "running" ,
"statusUrl" : "http://async.scraperapi.com/jobs/5b0c838a-d0eb-46c3-ad9a-e82e398d56a5" ,
"asin" : "B079BLHH67"
"tld" : ".com"
},
{
"id" : "df83b9e1-be25-40de-8702-4e934f057867" ,
"status" : "running" ,
"statusUrl" : "http://async.scraperapi.com/structured/amazon/product/df83b9e1-be25-40de-8702-4e934f057867" ,
"asin" : "B07G98GG51"
"tld" : ".com"
}
]