API
Google Autocomplete API
Google search suggestions for what someone has typed so far.
What you get
- suggestions
Parameters
| 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 ("uk" = "gb"). Default "us". |
| language | string | No | 2-letter language code. Default "en". |
Example
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"
}
]
}Pricing
1 credit per request, the same on the live, fast, regular queues. $1.00 per 1,000 requests, down to $0.30 with larger packs.
| Pack | Credits | Price per 1,000 requests |
|---|---|---|
| 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 →