Walmart Autocomplete API
Retrieve Walmart autocomplete search suggestions for any query. Returns a list of suggested search terms along with category navigation data. Each successful request costs 5 API credits.
Endpoint: https://api.scrapingdog.com/walmart/autocomplete
API Parameters
🔑
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
🔍
Search Query
queryRequiredThe Walmart search query to get autocomplete suggestions for (e.g.,football,laptop).
Type: String
API Examples
curl "https://api.scrapingdog.com/walmart/autocomplete?api_key=APIKEY&query=football"
import requests params = { "api_key": "APIKEY", "query": "football" } response = requests.get("https://api.scrapingdog.com/walmart/autocomplete", params=params) print(response.json())
const params = new URLSearchParams({ api_key: "APIKEY", query: "football" }); const response = await fetch(`https://api.scrapingdog.com/walmart/autocomplete?${params}`); const data = await response.json(); console.log(data);
<?php $url = 'https://api.scrapingdog.com/walmart/autocomplete?' . http_build_query([ 'api_key' => 'APIKEY', 'query' => 'football', ]); echo file_get_contents($url);
{
"queries": [
{
"displayName": "football cards",
"url": "/search?q=football+cards"
},
{
"displayName": "football gloves",
"url": "/search?q=football+gloves"
},
{
"displayName": "football cleats",
"url": "/search?q=football+cleats"
},
{
"displayName": "football helmet",
"url": "/search?q=football+helmet"
},
{
"displayName": "football jersey",
"url": "/search?q=football+jersey"
},
{
"displayName": "football pads",
"url": "/search?q=football+pads"
},
{
"displayName": "football table",
"url": "/search?q=football+table"
},
{
"displayName": "football shoes",
"url": "/search?q=football+shoes"
}
],
"fns": [
{
"title": "Footballs",
"image": "https://i5.walmartimages.com/dfw/4ff9c6c9-2b35/k2-_0a1c1234.v1.jpg",
"url": "/browse/sports-outdoors/footballs/4125_4161_4169_1074924"
},
{
"title": "Football Gloves",
"image": "https://i5.walmartimages.com/dfw/4ff9c6c9-x3b2/k2-_gloves.v1.jpg",
"url": "/browse/sports-outdoors/football-gloves/4125_4161_4169"
},
{
"title": "Football Helmets",
"image": "https://i5.walmartimages.com/dfw/4ff9c6c9-x4c3/k2-_helmets.v1.jpg",
"url": "/browse/sports-outdoors/football-helmets/4125_4161_4169"
}
]
}