| 接口速览 | 说明 |
|---|---|
| 鉴权方式 | Bearer tw_live_*(或 tw_test_*) |
| 积分计费 | 0.05 Credits / 次(固定价,与返回条数无关,不支持 BYOK;400/502 不扣费) |
| 缓存机制 | L1 请求级缓存(默认 1 天);30 天内同参数免重扣 |
| 限流与状态码 | 每页固定约 10 条自然结果,page 范围 1–100;HTTP 201 |
organic[] 外,还会一并返回页面上出现的知识面板(knowledge_graph)、精选摘要(answer_box)、相关问题(people_also_ask)、头条新闻(top_stories)与相关搜索词(related_searches)。如需按经纬度检索本地商户与门店,请使用 POST /api/google/maps。Authorization: Bearer ********************{
"query": "apple inc headquarters",
"country": "us",
"language": "en",
"page": 1,
"time_range": "any",
"autocorrect": true
}curl --location '/api/google/search' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": "apple inc headquarters",
"country": "us",
"language": "en",
"page": 1,
"time_range": "any",
"autocorrect": true
}'{
"success": true,
"request_id": "req_01J9KG1A2B3C4D5E",
"data": {
"query": "apple inc headquarters",
"page": 1,
"organic": [
{
"position": 1,
"title": "Apple - Contact & Corporate Headquarters",
"link": "https://www.apple.com/contact/",
"snippet": "Apple Park is located at One Apple Park Way, Cupertino, California 95014, United States.",
"date": null,
"sitelinks": [
{
"title": "Leadership",
"link": "https://www.apple.com/leadership/"
}
],
"attributes": null
}
],
"knowledge_graph": {
"title": "Apple",
"type": "Technology company",
"website": "https://www.apple.com/",
"description": "Apple Inc. is an American multinational technology company headquartered in Cupertino, California.",
"attributes": {
"Founded": "April 1, 1976",
"Headquarters": "Cupertino, CA"
}
},
"answer_box": null,
"people_also_ask": [
{
"question": "Where is Apple's global headquarters?",
"snippet": "Apple Park is located at One Apple Park Way in Cupertino, California.",
"title": "Apple Park - Wikipedia",
"link": "https://en.wikipedia.org/wiki/Apple_Park"
}
],
"top_stories": [],
"related_searches": [
"apple park address",
"apple inc investor relations"
]
},
"meta": {
"billing": {
"credits_charged": 0.05,
"byok_used": false
},
"upstream_credits": 1,
"cache": {
"state": "miss"
}
},
"error": null
}