Google Autocomplete keyword suggestions for a seed term
serpapi.google.keywords.ideasGet the keyword suggestions Google autocompletes for a seed term, with relevance scores
- Price
- $0.015/successPelo preço do provedor
- Success rate
- 100%Last 30 days · 215 calls
- Latency p50
- 698 msp95 2.6 s
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.google.keywords.ideas?q=coffee&engine=google_autocompletePreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
Answers arrive in `suggestions`, each with `value`, `relevance` and `type`. SCOPE WARNING for cross-provider comparison: these are Google's live autocomplete suggestions and they carry NO search volume, CPC or difficulty. Every other provider implementing google.keywords.ideas returns metric-bearing keyword ideas from a research index. SerpApi is the right choice for discovering real user phrasings cheaply, and the wrong one when the next step needs volume — pair it with a keyword-metrics provider.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
q | string | Obrigatório | the seed keyword | coffee |
cp | inteiro | Opcional | cursor position within `q`, which changes what Google suggests | |
gl | string | Opcional | country code | us |
hl | string | Opcional | interface language code | en |
client | string | Opcional | which autocomplete client to emulate | |
engine | string | Obrigatório | google_autocomplete | |
- Parâmetros de consulta
qstringObrigatóriothe seed keyword
Exemplo:
coffeecpinteiroOpcionalcursor position within `q`, which changes what Google suggests
glstringOpcionalcountry code
Exemplo:
ushlstringOpcionalinterface language code
Exemplo:
enclientstringOpcionalwhich autocomplete client to emulate
enginestringObrigatórioExemplo:
google_autocomplete
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.google.keywords.ideas?q=coffee&engine=google_autocomplete' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.google.keywords.ideas?q=coffee&engine=google_autocomplete",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/serpapi.google.keywords.ideas?q=coffee&engine=google_autocomplete", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.015/success, incluindo a taxa de serviço.