Blog · · 4 min read
Find Walmart Keywords With the Autocomplete API
Get the searches Walmart suggests as shoppers type, as JSON. Working code to grow one seed into long-tail ideas, and what the suggestions do not tell you.
When a shopper starts typing into the Walmart search box, the store suggests the searches it expects them to finish. Those suggestions are a free list of phrases real shoppers use. Sellers read them to write product titles, and researchers read them to see how people word what they want. This guide shows how to get the suggestions as JSON with one GET request, and how to grow a single word into a longer list.
Request suggestions
Send the start of a search as query. Every call needs an API key. New accounts get 100 free credits and a first key is created automatically on sign-up (it is shown once on the dashboard). Sign in at scrapingrabbit.com/login, then send the key in the x-api-key header (a Bearer token also works). The code below reads it from the SCRAPINGRABBIT_API_KEY environment variable, so no key is ever written into your code.
curl -H "x-api-key: $SCRAPINGRABBIT_API_KEY" "https://api.scrapingrabbit.com/v1/walmart/autocomplete?query=standing%20desk"
A successful call costs 1 credit, as the OpenAPI file lists it. Failed calls are not charged.
A shortened real answer, read on 3 December 2026 for the seed standing desk. We kept the first five suggestions and left out the image links:
{
"success": true,
"data": {
"queries": [
{ "type": "QUERY", "displayName": "standing desk", "url": "query=standing%20desk&typeahead=standing%20desk" },
{ "type": "QUERY", "displayName": "standing desk adjustable", "url": "query=standing%20desk%20adjustable&typeahead=standing%20desk" },
{ "type": "QUERY", "displayName": "standing desk converter", "url": "query=standing%20desk%20converter&typeahead=standing%20desk" },
{ "type": "QUERY", "displayName": "standing desk with storage", "url": "query=standing%20desk%20with%20storage&typeahead=standing%20desk" },
{ "type": "QUERY", "displayName": "standing desk with drawer", "url": "query=standing%20desk%20with%20drawer&typeahead=standing%20desk" }
]
}
}
The real answer has more suggestions than this, and a second block under fns with shortcut links such as price ranges and colors for the category. The phrases are the part to read.
What the fields mean
| Field | Meaning |
|---|---|
queries | The list of suggested searches, in the order Walmart shows them |
queries[].displayName | The suggested phrase, exactly as a shopper would see it |
queries[].type | The kind of suggestion. Phrases you can search have the type QUERY |
queries[].url | The search part of a Walmart link for that phrase |
Keep the order Walmart returns the suggestions in, so you can see which ones it lists first.
Grow one seed into long-tail ideas
One seed gives only a short list. To get more, add a letter after the seed (standing desk a, standing desk b, and so on) and collect every phrase that comes back. Each letter asks a different question, and the phrases that appear are the longer searches shoppers use.
const API = "https://api.scrapingrabbit.com/v1/walmart/autocomplete";
async function suggestions(query) {
const res = await fetch(`${API}?query=${encodeURIComponent(query)}`, {
headers: { "x-api-key": process.env.SCRAPINGRABBIT_API_KEY },
});
const body = await res.json();
if (!body.success) return [];
return body.data.queries.filter((q) => q.type === "QUERY").map((q) => q.displayName);
}
async function growSeed(seed) {
const found = new Set(await suggestions(seed));
for (const letter of "abcdefghijklmnopqrstuvwxyz") {
for (const phrase of await suggestions(`${seed} ${letter}`)) found.add(phrase);
await new Promise((resolve) => setTimeout(resolve, 7000)); // stay under 10 requests a minute on the free plan
}
return [...found];
}
const ideas = await growSeed("standing desk");
console.log(ideas.length, "phrases");
console.log(ideas.slice(0, 20));
That is 27 calls, so 27 credits. The 7 second pause between calls keeps it under the free plan's limit of 10 requests a minute, so the run takes a few minutes. On a paid plan you can shorten the pause. Cache each answer so a repeat run costs nothing.
The same in Python:
import os
import string
import time
import requests
API = "https://api.scrapingrabbit.com/v1/walmart/autocomplete"
HEADERS = {"x-api-key": os.environ["SCRAPINGRABBIT_API_KEY"]}
def suggestions(query):
res = requests.get(API, params={"query": query}, headers=HEADERS, timeout=60)
body = res.json()
if not body.get("success"):
return []
return [q["displayName"] for q in body["data"]["queries"] if q["type"] == "QUERY"]
seed = "standing desk"
found = set(suggestions(seed))
for letter in string.ascii_lowercase:
found.update(suggestions(f"{seed} {letter}"))
time.sleep(7) # stay under 10 requests a minute on the free plan
print(len(found), "phrases")
Compare it with another store
The same seed can give different phrases on different stores, because each store suggests searches from its own shoppers. Run the seed here and on Amazon with our Amazon autocomplete guide, then look at which phrases appear on only one. Phrases that show up on both are worth trying first when you write a product title.
Things to plan for
- Suggestions are not search volume. They show what is popular, not how many searches happen. Check demand some other way before you build a product around a phrase.
- Results change. They can differ over time, so store the date you read each list.
- Walmart's phrases may not be Amazon's. Do not copy a list from one store to the other without checking.
- Mind the cost of growing a seed. The letter method is 27 calls per seed. Cache each answer.
- Rate limits and credits. Each key is limited per minute: 10 requests on the free plan, 60 on Starter, 120 on Pro and 300 on Scale. Every successful call costs 1 credit.
- Always check
success. A failed request returnssuccess: false, acodesuch asRATE_LIMITEDorINVALID_API_KEY, and amessage. Failed calls are not charged.
Try it without code
The free Walmart keyword tool works in the browser with no key and shows these suggestions for any phrase you type.
Try it yourself
Frequently asked questions
Do the suggestions show how many people search for a phrase?
No. They show what is popular, not how many searches happen. Use them to find phrases shoppers actually type, then check demand some other way.
Do the suggestions change?
Yes. Results can differ over time, so store the date you read them if you compare one week with another.
Is this the same as Amazon's suggestions?
No. Each store suggests searches from its own shoppers, so the same seed word can give different phrases on Walmart and on Amazon.