通用搜索可调用
Google Search Autocomplete
获取 Google 查询前缀建议;建议不是搜索量统计。
- 接口地址
- POST https://api.serpbase.dev/google/autocomplete
- 价格
- 1 积分
- 鉴权方式
- X-API-Key
只有成功的请求才收费。每个接口有固定的积分价格(大多是 1 或 2 积分),失败的请求会自动退还积分。 计费 →
示例
cURL
curl -X POST 'https://api.serpbase.dev/google/autocomplete' \
-H "Content-Type: application/json" \
-H 'X-API-Key: YOUR_API_KEY' \
--max-time 60 \
-d '{"query":"weather"}'返回 · 真实返回,已缩短
{
"status": 0,
"credits_charged": 1,
"request_id": "r-4b27fe8a36d9ac303a5da7dd",
"product_id": "google_autocomplete",
"query": "weather",
"search_type": "autocomplete",
"suggestions": [
{
"rank": 1,
"relevance": 601,
"value": "weather tomorrow"
},
{
"rank": 2,
"relevance": 600,
"value": "weather rock hill sc"
}
]
}常见问题
Google Search Autocomplete API 怎么收费?
每次请求消耗 1 积分。积分来自预付积分包或月度套餐,新账号自带免费积分。
如何调用 Google Search Autocomplete API?
向 https://api.serpbase.dev/google/autocomplete 发送 POST 请求,并在 X-API-Key 请求头中带上你的 API Key。返回 JSON,请检查 status(0 表示成功)。
Google Search Autocomplete API 现在可以用吗?
可以,任何有效的 API Key 都能调用。