Walmart Product API (Async) | Python
Scrape Walmart product details into structured JSON/CSV with ScraperAPI async in Python. Extract price, specs, reviews, and availability data easily.
This endpoint will retrieve information about a Walmart product
Single query request:
import requests
url = "https://async.scraperapi.com/structured/walmart/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": APIKEY,
"productId": PRODUCTID,
"tld": TLD,
"output_format": FORMAT,
"callback": {
"type": "webhook",
"url": "YYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)
Multiple query request:
import requests
url = "https://async.scraperapi.com/structured/walmart/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": APIKEY,
"productIds": [PRODUCTID1, PRODUCTID2],
"tld": TLD,
"output_format": FORMAT,
"callback": {
"type": "webhook",
"url": "YYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)
APIKEY
User account’s normal API key.
PRODUCTID
Walmart product id. Example: 65EDSZVED3NS
TLD
Top level domain. Valid values are com and ca
OUTPUT_FORMAT
For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:
csv
json
Sample Response
For single query requests:
{
"id": "ee3aaa48-e630-487f-b6cb-ad85c7e2d4bd",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/ee3aaa48-e630-487f-b6cb-ad85c7e2d4bd",
"product_id": "65EDSZVED3NS",
}
For multiple query requests:
[
{
"id": "1cbf118f-54c8-41ae-94d4-b63cd1636000",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/1cbf118f-54c8-41ae-94d4-b63cd1636000",
"product_id": "65EDSZVED3NS"
},
{
"id": "9b346892-e9ad-4b19-a9e3-1e1364d12e9d",
"status": "running",
"statusUrl": "https://async.scraperapi.com/jobs/9b346892-e9ad-4b19-a9e3-1e1364d12e9d",
"product_id": "41FV2JGSJPXI"
}
]
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
Was this helpful?