The Google keyword suggestions API for autocomplete data

Google autocomplete shows what people start typing, and this API returns those suggestions for any seed keyword you send. Send a seed keyword to get autocomplete suggestions as JSON.

Google Keyword Suggestions API at a glance

This API returns Google autocomplete suggestions for one seed keyword. Send a POST request with a keyword. Then read each suggestion from the suggestions array.

Endpoint
POST /v1/data/google/keyword-suggestions
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A suggestions array where each item has a position and a keyword
Required input
A seed keyword
Locale
A two letter country code and a language code, defaulting to us and en
Results per request
1 to 50 with num_results. The default is 10.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request seeds standing desk and asks for eight suggestions. The response below is trimmed to three of the eight suggestions, so you see the exact shape. Copy the request and try your own seed.

POST /v1/data/google/keyword-suggestions
curl -X POST "https://api.datablue.dev/v1/data/google/keyword-suggestions" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "keyword": "standing desk",
    "country": "us",
    "language": "en",
    "num_results": 8
  }'
Response (trimmed to 3 of 8 items)
{
  "success": true,
  "source": "google",
  "operation": "keyword_suggestions",
  "keyword": "standing desk",
  "country": "us",
  "language": "en",
  "client": "firefox",
  "total_results": 8,
  "time_taken": 0.17,
  "suggestions": [
    { "position": 1, "keyword": "standing desk" },
    { "position": 2, "keyword": "standing desk reviews" },
    { "position": 3, "keyword": "standing desk converter" }
  ]
}

What a suggestion returns.

Each suggestion arrives as one small object in a list.

Suggestions list

The suggestions array holds the completions in the order Google gave them, and the first item often repeats your seed. Skip position 1 when you want only new phrases.

Position

Every suggestion carries a position that starts at 1. Store it to track how the order shifts.

Keyword

The keyword field holds the full suggested phrase, so you feed it straight into your next search or content brief.

Optional fields

Some responses add a relevance score or a suggestion type. Treat both as optional, since they appear only when present.

Request echo

The response repeats your keyword and locale settings, so each stored row explains itself fully. Check the echoed values when you debug a run.

Counts and timing

The total_results value counts the suggestions returned. Check time_taken to watch the latency of your own jobs.

Options that shape your suggestions.

Only keyword is required, so everything else is optional. Add the rest to localise or limit the list.

Seed keyword

Set keyword to the phrase a searcher might start typing. Try a few seed lengths and compare the lists.

Country and language

Set country to a two letter code and language to a Google UI language code. The defaults are us for country and en for language.

Result count

Ask for 1 to 50 suggestions with num_results. The default is 10 suggestions per request.

Suggest client

Set client to pick the Google suggest client, and note that the default is firefox.

Timeout

The default timeout is 20000 milliseconds and the allowed range runs from 3000 to 60000. Set timeout_ms higher only when your calls run slow.

What teams build with it.

Autocomplete shows what people really start typing.

Keyword research

Expand one seed into a list of long tail phrases, then rerun each phrase as a new seed to go deeper.

Content planning

Turn suggestions into article and FAQ topics. Group them by the words that follow your seed.

Search UX and product tools

Study how people finish a query in each market, then use the patterns to improve your own search box.

Local market comparison

Run the same seed across several countries. Compare which phrases show up in each one.

Why use an API instead of calling suggest yourself.

Autocomplete looks like a small job at first. A script that calls a suggest endpoint directly has to pick a client and a locale itself.

DataBlue wraps that call in one documented request, so you send a keyword and a locale and read a ranked list. Positions come back as numbers starting at 1.

The sample on this page comes from a live call. Start with a single seed and check the output. Then loop over your full keyword list.

Your first suggestion request 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 seed

    POST a keyword to /v1/data/google/keyword-suggestions with a Bearer key. Add country and language for a local view.

  3. Read the suggestions

    Loop over suggestions in the response and read each keyword. Feed the best ones back in as new seeds.

Google keyword suggestions API questions.

Short answers about data and billing before you start.

It returns the autocomplete suggestions Google offers for a seed. Each one arrives as a ranked JSON object.

Send a POST request to /v1/data/google/keyword-suggestions with a keyword and a Bearer token for your API key.

It returns suggested phrases and positions rather than search volume. Pair it with another source when you need volume data.

Set num_results between 1 and 50 to choose the count. The default is 10 suggestions per request.

Set country to a two letter code and language to a Google language code such as en.

Set language to a Google UI language code. Pair it with country to localise the list.

This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.

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

Pull Google suggestions in a minute.

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

Start free