Google Autocomplete keyword suggestions for a seed term
serpapi.google.keywords.ideasGet the keyword suggestions Google autocompletes for a seed term, with relevance scores
- 价格
- $0.015/success按供应商原价
- 成功率
- 100%近 30 天 · 215 次
- 延迟 p50
- 698 毫秒p95 2.6 秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/serpapi.google.keywords.ideas?q=coffee&engine=google_autocomplete预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
q | 字符串 | 必填 | the seed keyword | coffee |
cp | 整数 | 可选 | cursor position within `q`, which changes what Google suggests | |
gl | 字符串 | 可选 | country code | us |
hl | 字符串 | 可选 | interface language code | en |
client | 字符串 | 可选 | which autocomplete client to emulate | |
engine | 字符串 | 必填 | google_autocomplete | |
- 查询参数
q字符串必填the seed keyword
示例:
coffeecp整数可选cursor position within `q`, which changes what Google suggests
gl字符串可选country code
示例:
ushl字符串可选interface language code
示例:
enclient字符串可选which autocomplete client to emulate
engine字符串必填示例:
google_autocomplete
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.015/success 计费,已含服务费。