Walmart Search API (Async)
The Walmart Search API endpoint returns a list of Walmart products based on a search query.
Single Product Request
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"apiKey": "API_KEY",
"query": "QUERY",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/walmart/search"import requests
url = "https://async.scraperapi.com/structured/walmart/search"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"query": "QUERY",
"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",
"queries": ["QUERY1", "QUERY2"],
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"callback": {
"type": "webhook",
"url": "YYYYY"
}
}' \
"https://async.scraperapi.com/structured/walmart/search"import requests
url = "https://async.scraperapi.com/structured/walmart/search"
headers = {
"Content-Type": "application/json"
}
data = {
"apiKey": "API_KEY",
"queries": ["QUERY1", "QUERY2"],
"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.
QUERY (required)
Example: Skateboard
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.
PAGE
Page number.
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 Query Request
Multiple Queries 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

