Try it
Run a live Google Autocomplete request
Type the start of a search and read the suggestions JSON we hand back.
Endpoint & Pricing
One Endpoint, Five Price Tiers
One call is one set of up to 15 suggestions. The rate falls as you add credit; there is no monthly plan.
Google Autocomplete
GET /api/google/autocomplete—qrequired- The start of a search, up to 200 characters
- Any language and country, as two-letter codes
- Up to 15 suggestions a call, each with a type and a relevance score
Pay as you go, no subscription. The rate falls as you add credit, and everything you add stays as spendable balance. The full tier ladder is on the pricing page. Every account starts with 10 free API calls, shared across all endpoints, and this endpoint can spend them.
Quick Start
A Search Box’s Suggestions in One Request
One header and a query string. The answer is a flat object, so a suggestion’s text or type is a single field read away. The Python and Node guide goes further, with a to z expansion and a CSV.
# Default: English suggestions for the US. curl -G "https://apiserpent.com/api/google/autocomplete" \ --data-urlencode "q=best crm" \ -H "X-API-Key: sk_live_your_api_key" # A space at the end is kept: this asks for the NEXT word. German, for Germany. curl -G "https://apiserpent.com/api/google/autocomplete" \ --data-urlencode "q=beste crm " \ --data-urlencode "language=de" \ --data-urlencode "country=de" \ -H "X-API-Key: sk_live_your_api_key"
import requests API_KEY = "sk_live_your_api_key" URL = "https://apiserpent.com/api/google/autocomplete" resp = requests.get( URL, headers={"X-API-Key": API_KEY}, params={"q": "best crm", "language": "en", "country": "us"}, timeout=60, ) data = resp.json() if not data["suggestions"]: print("No suggestions came back for this search") else: print(data["query"], data["country"], "-", data["count"], "suggestions") for s in data["suggestions"]: print(f'{s["position"]:>2} {s["type"]:<10} {s["relevance"]:>5} {s["text"]}')
(async () => { const base = 'https://apiserpent.com/api/google/autocomplete'; const headers = { 'X-API-Key': 'sk_live_your_api_key' }; for (const country of ['us', 'gb', 'in']) { const params = new URLSearchParams({ q: 'best crm', language: 'en', country }); const data = await (await fetch(`${base}?${params}`, { headers })).json(); if (data.suggestions.length === 0) { console.log(country, '- no suggestions'); continue; } console.log(country, data.count, 'suggestions, first three:', data.suggestions.slice(0, 3).map((s) => s.text).join(' | ')); } })();
{
"success": true,
"query": "best running shoes",
"language": "en",
"country": "us",
"suggestions": [
{
"position": 1,
"text": "best running shoes for men",
"type": "query",
"relevance": 1150,
"url": null,
"description": null
},
{
"position": 2,
"text": "best running shoes for women",
"type": "query",
"relevance": 850,
"url": null,
"description": null
},
{
"position": 3,
"text": "best running shoes for flat feet",
"type": "query",
"relevance": 601,
"url": null,
"description": null
},
// ...12 more suggestions...
],
"count": 15
}
{
"success": true,
"query": "how to",
"language": "en",
"country": "us",
"suggestions": [
{
"position": 1,
"text": "how to screenshot on mac",
"type": "query",
"relevance": 601,
"url": null,
"description": null
},
{
"position": 2,
"text": "how to tie a tie",
"type": "query",
"relevance": 600,
"url": null,
"description": null
},
{
"position": 3,
"text": "how to get rid of gnats",
"type": "query",
"relevance": 562,
"url": null,
"description": null
},
// ...12 more suggestions...
],
"count": 15
}
Each sample is trimmed to three of its 15 suggestions. Suggestions change over time and between countries, so your results will differ. The response shape is the same on every call, and a value a suggestion does not have is null.
Parameters & Fields
Every Parameter and Field
Three request parameters and six suggestion fields, the same every time.
Request Parameters
- q (required): the text typed so far, up to 200 characters
- language: two-letter code, default en
- country: two-letter code, default us
- header: X-API-Key
Response Fields
- query, language, country, count
- suggestions[]: up to 15 a call
- position, text, type
- relevance, url, description
The space at the end
A space at the end of q is kept on purpose. best crm asks how people finish the search, and best crm with a space after it asks which word comes next. Send one request for each and you have a way to grow a short seed into longer searches.
Three types of suggestion
query is an ordinary search. navigation is a web address, and carries its url and the page’s description. calculator is an answer to a sum, such as = 50 for what is 100% of 50. relevance is Google’s own score, and the suggestions arrive in the order Google ranks them.
Languages and countries. language and country are separate, so you can ask for German suggestions as seen in Germany, Austria or the US. The answer repeats the language and country it applied. Suggestions differ from one country to the next and change over time, so store the date next to the data you keep.
Why a Google Autocomplete API
What is a Google autocomplete API, and why use it
When someone starts typing a search, Google offers ways to finish it. An API puts those same suggestions in your code.
What people actually type
The suggestions are the searches that real people tend to finish a phrase with, so a seed word turns into a list of long searches you did not have to guess.
Any language, any country
Send a two-letter language and a two-letter country to see what that market is offered. The answer repeats both, so a table of many markets stays easy to read.
Type and score on every line
Each suggestion says whether it is a search, a web address or a sum, and carries Google’s relevance score, so you can sort, filter or keep only the searches.
One shape for every search
The same six fields come back for every query, in the same order, so one parser covers a whole keyword list and every country on it.
Price comparison
What Google Autocomplete Data Costs, Everywhere
The entry price for Google autocomplete suggestions at each seller we compared, in the unit each one charges, with what it takes to get it.
| Provider | Entry price per 1,000 | Unit charged | What the entry price requires |
|---|---|---|---|
| Serpent | $0.25/1K API calls | per call, up to 15 suggestions | Pay as you go, no subscription. Down to $0.15/1K API calls on the Enterprise Plus tier. 10 free API calls to start. |
| Apify scrape.badger | $0.50/1K calls | per call | An Apify actor, run as a job. Listed at $0.0005 per call. |
| DataForSEO | $0.60/1K tasks | per task | Standard queue, about 5 minutes. $1.20/1K tasks in the priority queue, up to 1 minute, and $2.00/1K tasks in live mode, up to 6 seconds. |
| Apify automation-lab | $0.72/1K keywords | per keyword expanded | An Apify actor on the Gold plan or above, plus $0.00475 per run. $0.90/1K keywords on the Free and Bronze plans. |
On public prices read on 1 December 2026, Serpent API has the lowest Google Autocomplete price we could verify: $0.25 per 1,000 calls at entry and $0.15 on the Enterprise Plus tier, against $0.50 per 1,000 calls at the next lowest seller. Each seller’s other plans are listed on its own pages.
Prices read 1 December 2026. Entry price means the smallest price each seller publishes without a call to sales; the price tiers on this page take the rate to $0.15 per 1,000 calls. Time-limited promotional rates are not counted. Apify actors bill per call or per keyword, not per search. The cheapest Google Autocomplete API guide works the cost out at five price tiers and three monthly volumes. Sellers that do not publish a price are left out.
Use cases
What Teams Build With Autocomplete Data
Four common jobs and the fields each one needs.
Keyword research
Expand a seed word with a space and with each letter, keep the query suggestions and sort them by relevance to get a long-tail list.
See the guide to Google Autocomplete Data for Keyword Research.
Market comparison
Send the same search with different country and language values and compare what each market is offered, in one table keyed by country.
Content ideas
Send a topic followed by a question word or a preposition, and read the text of the suggestions for the questions and comparisons people look for.
Brand and product watching
Call your brand, your product and your rivals on a schedule and keep the text and position of each suggestion, so a change shows up as a difference between two dates.
FAQ
Google Autocomplete API Questions
Start using the Google Autocomplete API
10 free API calls, shared across every free-eligible endpoint. No card, no subscription, no monthly plan. $0.25 per 1,000 calls.
Try for Free






