Google News results for a query or topic
serpapi.x.google-newsLive Google News results for a keyword, topic token or story token
- Price
- $0.015/successプロバイダー原価
- Success rate
- 100%Last 30 days · 3,011 calls
- Latency p50
- 2.1 sp95 9.6 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.x.google-news?q=pizza&gl=us&hl=en&engine=google_newsPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
answers arrive in `news_results`.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 任意 | search query; alternative to topic_token/story_token | pizza |
gl | 文字列 | 任意 | us | |
hl | 文字列 | 任意 | en | |
engine | 文字列 | 必須 | google_news | |
topic_token | 文字列 | 任意 | opaque token to fetch a specific news topic instead of a query | |
- クエリパラメータ
q文字列任意search query; alternative to topic_token/story_token
例:
pizzagl文字列任意例:
ushl文字列任意例:
enengine文字列必須例:
google_newstopic_token文字列任意opaque token to fetch a specific news topic instead of a query
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.x.google-news?q=pizza&gl=us&hl=en&engine=google_news' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.x.google-news?q=pizza&gl=us&hl=en&engine=google_news",
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.x.google-news?q=pizza&gl=us&hl=en&engine=google_news", {
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.015/success です。サービス料を含みます。