The Amazon autocomplete API for search suggestions

Send a partial term and get Amazon’s suggestions as JSON. Pick the marketplace, then read each keyword in order.

Amazon Autocomplete API at a glance

This API returns Amazon search suggestions for a partial term. Send a POST request with a prefix and a domain, then read the suggestions array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/amazon/autocomplete
Authentication
API key as Authorization: Bearer wh_…
Stage
Beta
Output
A suggestions array with position, type, keyword and ref_tag for each item
Marketplace
Set domain to a store code such as in, com, co.uk or de
Suggestions per request
1 to 20 with limit. The default is 10.
Cursor inputs
Optional last_prefix and suffix for text before and after the cursor
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request types “running sh” into Amazon India and asks for a limit of five suggestions. The response below shows three of the five returned. The suggestions arrive in the same response as the request. Copy the request to try it yourself.

POST /v1/data/amazon/autocomplete
curl -X POST "https://api.datablue.dev/v1/data/amazon/autocomplete" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "prefix": "running sh",
    "domain": "in",
    "language": "en",
    "limit": 5
  }'
Response (trimmed to 3 of 5 suggestions)
{
  "success": true,
  "source": "amazon",
  "operation": "autocomplete",
  "domain": "in",
  "prefix": "running sh",
  "suffix": "",
  "suggestions": [
    {
      "position": 1,
      "type": "KEYWORD",
      "keyword": "running shoes for man",
      "ref_tag": "nb_sb_ss_mvt-t11-ranker_1_10"
    },
    {
      "position": 2,
      "type": "KEYWORD",
      "keyword": "running shoes",
      "ref_tag": "nb_sb_ss_mvt-t11-ranker_2_10"
    },
    {
      "position": 4,
      "type": "KEYWORD",
      "keyword": "running shorts for men",
      "ref_tag": "nb_sb_ss_mvt-t11-ranker_4_10"
    }
  ],
  "count": 5
}

What an Amazon suggestion returns.

Each suggestion arrives as one small object.

Position

Every suggestion has a position that starts at 1, so sort on it to keep the response order.

Keyword

The keyword field holds the suggested search text. Store it as a candidate term for your own lists.

Type

The type field labels each suggestion, and every item in our sample is a KEYWORD. Filter on type when you want keyword entries only.

Reference tag

Each suggestion also carries a ref_tag string value, so keep it beside the keyword when you log a run.

Echoed input

The response echoes your domain and your prefix, and it also reports a count of the suggestions returned. Compare count with your limit to see the result size.

What it leaves out

This API returns no prices and no product IDs. Pass a keyword to Amazon Products when you need listings.

Options that shape your suggestions.

Most requests need only a prefix and a domain, so add the rest when you want tighter control.

Prefix

Set prefix to the partial term you want completed. The API also accepts query and q as aliases, but a prefix is required unless you send a suffix.

Cursor text

Send last_prefix with the text typed before the current one, and send suffix for text after the cursor. Both inputs are optional on a plain lookup.

Marketplace

Set domain to a store code like in or de, and domains such as co.uk and amazon.in also work. Always send it so your results stay on one store.

Language and ID

Set language to a code such as en, the default. Use mid to override the Amazon marketplace ID, but leave it out unless you know the ID you need.

Count and timeout

Ask for 1 to 20 suggestions with limit. The default is 10 suggestions when you send nothing. Set timeout_ms from 3000 to 30000 for the provider deadline, with a default of 10000 milliseconds. Check timeout_ms first when a call times out.

What teams build with it.

Suggestions show how Amazon completes a search. Pick the prefixes that matter to your catalogue.

Keyword seeding

Loop over each letter after a seed term like running, then collect every keyword returned to build a candidate list.

Listing titles

Check which phrases Amazon completes for a product type. Work the best matches into your listing titles.

Marketplace comparison

Send one prefix to both in and com, then compare the two lists to see how each store differs.

Suggestion tracking

Run a fixed list of prefixes each week. Store keyword and position to watch the suggestions move.

Why call an API instead of scraping Amazon yourself.

A suggestion call depends on the store and the language, and this API takes both as plain inputs. Change domain and the same request serves another store.

The response shape stays fixed on every call, so your code loops over the suggestions array. It takes keyword and position from each item. Build one parser and reuse it for every marketplace.

The cursor inputs let you replay a typing session, so send last_prefix and suffix to describe the cursor text. Start with a plain prefix and add those inputs later.

Your first Amazon suggestion call in a minute.

Sign up, grab a key and run one request.

  1. Create an account

    Sign up to get your API key.

  2. Send a prefix

    POST a prefix and a domain to /v1/data/amazon/autocomplete, then add your Bearer key as the Authorization header.

  3. Read the suggestions

    Loop over the suggestions array in the response, then read keyword and position from each item.

Amazon autocomplete API questions.

Short answers about data and billing before you start.

It returns Amazon’s search suggestions for a partial term, and each suggestion is one object with a keyword and position.

Send a POST request to /v1/data/amazon/autocomplete with a prefix. Add a Bearer token and a domain.

Set domain to a store code like in or de. Send one prefix to each domain you want to compare.

Set limit to a value from 1 to 20. With no value, the API returns up to 10 suggestions. Read count to see how many came back.

No, this API returns suggestion text only. Pass a keyword to Amazon Products to get priced listings.

Flipkart Autocomplete adds a category and image to every suggestion, while this API serves Amazon and takes a marketplace and language. Pick the one that matches your store.

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.

Fetch Amazon suggestions in a minute.

Sign up to get your API key. Then run the example in your terminal.

Start free