Autom

Google Search Autocomplete

Get Google Search autocomplete suggestions via API for a given query.

Credit cost: 1 credit per request

POST
/v1/google/search/autocomplete

Authorization

ApiKeyAuth
x-api-key<token>

Your API key. Include it in the x-api-key header for every request.

In: header

Request Body

application/json

query*string

The search query for which you want to get autocomplete suggestions.

cp?number

Cursor position in the search query where you want to get autocomplete suggestions.

Default"0"
gl?string

Country to use for autocomplete (two-letter country code).

hl?string

Language to use for autocomplete (two-letter language code).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.autom.dev/v1/google/search/autocomplete" \  -H "Content-Type: application/json" \  -d '{    "query": "string"  }'
{
  "suggestions": [
    "coffee near me",
    "coffee maker",
    "coffee shop",
    "coffee table"
  ]
}
{
  "error": "Bad Request"
}
{
  "error": "Invalid API Key"
}
{
  "error": "Payment required"
}
{
  "error": "Rate limit exceeded for the API key: quota monthly"
}
{
  "error": "Internal Error"
}