Google News headlines for a query
crawl4ai.google.serp.newsHeadlines for a query from Google News: title, the publishing source, Google's link to the article, time and a short summary. `lang` (like en-US) and `country` (like US) pick the edition; `limit` caps the rows, up to 100. Columns: title, source, url, published, summary.
- 价格
- $0.00015/success按目录价
- 成功率
- 100%近 30 天 · 2,270 次
- 延迟 p50
- 709 毫秒p95 1.6 秒
- 最后验证
- 2026年10月11日实测可用
POSThttps://toolswitch.dev/v1/tools/crawl4ai.google.serp.newsBeta- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 请求体(JSON) | ||||
lang | 字符串 | 可选 | default en-US | |
limit | 整数 | 可选 | default 25 | |
query | 字符串 | 必填 | rust programming | |
country | 字符串 | 可选 | default US | |
- 请求体(JSON)
lang字符串可选default en-US
limit整数可选default 25
query字符串必填示例:
rust programmingcountry字符串可选default US
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/crawl4ai.google.serp.news' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"query":"rust programming"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/crawl4ai.google.serp.news",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"query\":\"rust programming\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.google.serp.news", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"query\":\"rust programming\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为 Beta,地址与鉴权方式可能变更。 示例参数仅为样例数据。 调用按 $0.00015/success 计费,已含服务费。