Skip to Content
Documentation

Get query suggestions

Google Autocomplete API · 5 points per successful call

Product overview and demoAll Google API endpointsError codes

GET
/v1/google/autocomplete

Returns the suggestions Google offers for a partial query, in rank order, plus a spelling correction when the input looks misspelled. Each suggestion is provided as plain text and with highlight markup, and carries entity details when the suggestion maps to one. hl sets the language of the suggestions (English by default) and gl ranks them for a country; suggestions about places can still reflect the region the request is served from. Useful for keyword research and search-as-you-type experiences.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.

Query Parameters

query*string

Partial query to complete.

Length1 <= length <= 256
gl?string

Country to rank suggestions for, as an ISO 3166-1 alpha-2 code (us, de, gb; case-insensitive). Omitted, suggestions follow the region the request is served from.

hl?string

Language of the suggestions, as a language code with an optional region (en, de, pt-BR, zh-TW; case-insensitive). Defaults to English.

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/google/autocomplete?query=best+crm&gl=de&hl=de'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-07-31T12:00:00.000Z",
    "cache": "MISS"
  },
  "data": {
    "suggestions": [
      {
        "position": 1,
        "keyword": "anthropic claude",
        "keyword_html": "anthropic<b> claude</b>",
        "entity": {
          "title": "Anthropic",
          "label": "Artificial intelligence company",
          "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTCbP0WqDxmPhD2"
        }
      },
      {
        "position": 2,
        "keyword": "anthropic api pricing",
        "keyword_html": "anthropic<b> api pricing</b>",
        "entity": null
      }
    ],
    "spelling_suggestion": "anthropic"
  }
}