The Walmart autocomplete API for search suggestions

Send a partial query and get Walmart search suggestions. This API returns suggestions only and no Walmart product data. Run a small pilot first since the stage is beta.

Walmart Autocomplete API at a glance

This API returns Walmart search suggestions for a partial query and never returns product data such as prices. Run the example below to see the exact shape.

Endpoint
POST /v1/data/walmart/autocomplete
Authentication
API key as Authorization: Bearer wh_…
Stage
Beta
Output
A suggestions array with position, keyword, url, image_url and type, plus a categories array
Not included
Walmart product data such as prices, ratings or listings
Required input
query, with q accepted as an alias
Suggestions per request
1 to 20 with limit. The default is 8.
Timeout
timeout_ms from 3000 to 30000 milliseconds, with a default of 10000
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request asks for suggestions for the partial query football, and the response below shows 3 of the 8 returned. Copy the request to try your own term.

POST /v1/data/walmart/autocomplete
curl -X POST "https://api.datablue.dev/v1/data/walmart/autocomplete" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "query": "football",
    "limit": 8
  }'
Response (trimmed to 3 of 8 suggestions)
{
  "success": true,
  "source": "walmart",
  "query": "football",
  "count": 8,
  "suggestions": [
    {
      "position": 1,
      "keyword": "football cards",
      "url": "https://www.walmart.com/search?q=football%20cards&typeahead=football",
      "image_url": "https://i5.walmartimages.com/asr/4d63c540-30ef-412b-b415-a15e277a1d2f.bc1d82198d418edf691a4dbf8f2f293e.jpeg",
      "type": "QUERY"
    },
    {
      "position": 2,
      "keyword": "football",
      "url": "https://www.walmart.com/search?q=football&typeahead=football",
      "image_url": "https://i5.walmartimages.com/asr/b6e8eba9-daa6-4782-8c05-143726d7db65_1.534210e7d93c3de50bb7d17eb54a2e9b.jpeg",
      "type": "QUERY"
    },
    {
      "position": 3,
      "keyword": "football gloves",
      "url": "https://www.walmart.com/search?q=football%20gloves&typeahead=football",
      "image_url": "https://i5.walmartimages.com/asr/99a873c3-dabd-4316-b055-747212c7c50a.0e424596a9831227b787900ee08ccde9.jpeg",
      "type": "QUERY"
    }
  ],
  "categories": [],
  "time_taken": 0.72
}

What a Walmart suggestion returns.

Each suggestion arrives as one flat object in a list.

Position and keyword

The position field gives the rank of a suggestion, and the keyword field holds the suggested search text. Store both to rebuild the order Walmart showed.

Search link

Each row has a url to a Walmart search page that repeats your partial text in a typeahead parameter. Open the link to check a suggestion by eye.

Type

The type field labels the kind of suggestion, and every row in the example is a QUERY. Filter on type when your results include other values.

Image

Each row also carries an image_url for a thumbnail, though some rows use a generic icon instead. Check each image before you show it.

Categories

The categories array holds category suggestions when Walmart offers them, but it came back empty for the example. Try your own terms to see when categories appear.

Count and timing

The count field gives the number of suggestions returned, and the time_taken field gives the call time in seconds. Compare count with your limit to spot a short list.

Options that shape your suggestions.

Only the query field is required on every request, and the other two options tune size and timing.

Query

Set query to the partial text a shopper has typed, and note that the alias q is also accepted. This API takes one query per request.

Suggestion count

Set limit between 1 and 20 to size the list, or leave it out to receive 8 suggestions. Use a low value for a type-ahead box.

Timeout

Set timeout_ms from 3000 to 30000 milliseconds for the provider deadline, which is 10000 when you send nothing. Check it first when a call times out.

What teams build with it.

Suggestions show how shoppers phrase a search. Pick the jobs where that wording matters.

Keyword research

Send the start of a product term, then read the suggestions to see how Walmart completes it.

Search term expansion

Loop over your seed words and store each keyword, then merge the results into one list of phrases.

Category hints

Check the categories array for category suggestions, then use any you find to group your terms.

Suggestion tracking

Run the same fragment each week and store the output, then compare the lists to see how suggestions shift.

Why call an API instead of building your own client.

A suggestion list is a small payload, but a pipeline still needs a stable shape. Your own script must also handle timeouts and parse every row into the same shape.

DataBlue returns each suggestion as a flat object, and every row holds a position and a keyword. Limit and timeout controls keep each call predictable.

This API stops at suggestions and never returns product data. It is in beta, so run a pilot on your own terms before you commit. Plan around the product data gap before you build.

Your first Walmart suggestion call in a minute.

Create an account and send one request.

  1. Create an account

    Sign up to get your API key.

  2. Send a fragment

    POST a partial query and a limit to /v1/data/walmart/autocomplete with your Bearer key in the Authorization header.

  3. Read the suggestions

    Loop over the suggestions array in the response. Read the keyword and the url from each row.

Walmart autocomplete API questions.

Read these answers before you send your first request.

It returns Walmart search suggestions for a partial query, and each suggestion is one object with a keyword.

No, this API returns search suggestions and nothing else. It never returns prices or product listings. Plan for that gap before you build.

Send a POST request to /v1/data/walmart/autocomplete with a query field and pass your API key as a Bearer token.

Set limit to a value between 1 and 20. Without a value you get 8 suggestions.

The schema has no country or language field. Send your query and read what comes back.

The football example returned no category suggestions, so try other terms to see whether Walmart offers any.

Those APIs return suggestions for their own marketplaces, while this API adds a categories array for category suggestions. Pick the one that matches your marketplace.

This API is in beta today, and fields could still change as we improve it. Build against the documented fields, then read the changelog before each upgrade you ship to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Get Walmart suggestions in a minute.

Create an account to get your API key. Then paste the example into a terminal.

Start free