Guides · 6 min read
Google Autocomplete API: keyword research with Python
Pull Google Autocomplete suggestions as JSON and run an A-Z sweep for keyword research. Real results for four seeds, a relevance filter and the cost.
Discover the searches people are likely to make next.
For keyword research tools, content teams and search experiences that need Google suggestions.
Ready to build? Open the reference you need, or visit the full docs in your dashboard.
Google search suggestions for what someone has typed so far.
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Text typed so far. |
| country | string | No | 2-letter country code, one of: us, gb, uk, ca, au, de, fr, nl, it, es, pt, be, at, ch, se, no, dk, fi, ie, pl, cz, il, ae, in, jp, kr, sg, mx, br, nz, za, tr, ar, cl, co, pe, hk, tw, th, vn, id, my, ph, pk, bd, sa, eg, qa, kw, gr, hu, ro, bg, hr, sk, si, ua, rs, lt, lv, ee, lu, ng, ke, ma ("uk" = "gb"). Default "us". |
| language | string | No | 2-letter language code. Default "en". |
curl -X POST https://api.crawlerdata.com/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"endpoint":"google-autocomplete","params":{"query":"running sho","country":"us"},"queue":"live"}'const res = await fetch('https://api.crawlerdata.com/v1/jobs', {
method: 'POST',
headers: { Authorization: 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
body: JSON.stringify({
"endpoint": "google-autocomplete",
"params": {
"query": "running sho",
"country": "us"
},
"queue": "live"
}),
});
const { job, result } = await res.json();import requests
res = requests.post(
"https://api.crawlerdata.com/v1/jobs",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"endpoint": "google-autocomplete",
"params": {
"query": "running sho",
"country": "us",
},
"queue": "live",
},
)
data = res.json(){
"search_parameters": {
"engine": "google_autocomplete",
"query": "running sho",
"country": "us",
"language": "en"
},
"suggestions": [
{
"value": "running shoes",
"type": "QUERY"
},
{
"value": "running shorts",
"type": "QUERY"
}
]
}Prepaid credits, no subscription, and failed requests are never charged. Choose your credit pack →
1 credit per request, the same on the live, fast, regular queues. $1.00 per 1,000 credits, down to $0.30 with larger packs.
| Pack | Credits | Price per 1,000 credits |
|---|---|---|
| Starter | 50,000 | $1.00 |
| Standard | 500,000 | $0.75 |
| Scale | 2,500,000 | $0.50 |
| Ultimate | 12,500,000 | $0.30 |
Failed requests are not charged. Prices exclude sales tax/VAT. See full pricing →
Setup guides with tested code for calling the Google Autocomplete API from your tools:
Guides · 6 min read
Pull Google Autocomplete suggestions as JSON and run an A-Z sweep for keyword research. Real results for four seeds, a relevance filter and the cost.
Guides · 7 min read
We compared Google's related searches with autocomplete for 20 seeds. They shared 1.4 of 8, some named old years, and they changed between runs.
Guides · 7 min read
We compared Google Autocomplete for 10 seeds in 5 countries. UK and India shared 1 to 3 of 15 suggestions with the US, and local ones changed per run.
Guides · 5 min read
Get the People Also Ask questions for any search as JSON, then expand them level by level. Real yields for two seeds, the cost per level and the code.
Guides · 8 min read
Build a Google SERP tracker: check where a domain ranks for a keyword list every day, by country and device. Python, SQLite, real cost math.
Guides · 8 min read
A rank tracker API for Google: find your domain's position for any keyword by country and device. Working Python, edge cases and cost per 1,000 keywords.
We use Google Analytics and Google Ads cookies to measure how the site is used and which ads lead to sign-ups. No personalized ads or remarketing. See our privacy policy.