Walmart Product API (Async)
The Walmart Product API endpoint returns detailed information about a Walmart product.
Single Product Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"productId": "PRODUCTID",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/walmart/product"import requests
url = "https://async.scraperapi.com/structured/walmart/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"productId": "PRODUCTID",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}
response = requests.post(url, json=data, headers=headers)
print(response.text)Multiple Products Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"productIds": ["PRODUCTID1", "PRODUCTID2"],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/walmart/product"import requests
url = "https://async.scraperapi.com/structured/walmart/product"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"productIds": ["PRODUCTID1", "PRODUCTID2"],
"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.
PRODUCT_ID (required)
Walmart Product id. You can find the product ID in the URL. Example: 5253396052 (/ip/5253396052)
TLD
Top-level Walmart domain to scrape: com (walmart.com) ca (walmart.ca)
COUNTRY_CODE
Valid values are two letter country codes for which we offer Geo Targeting (e.g. “au”, “es”, “it”, etc.). You can find the full list here.
OUTPUT_FORMAT
For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:
csv
json (default)
Sample Response
Single Product Request
Multiple Products 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

