Google Trends interest over time for search terms
serpapi.x.google-trendsInterest-over-time, regional breakdown, related topics or related queries for up to 5 comma-separated terms
- Price
- $0.015/successプロバイダー原価
- Success rate
- 99.9%Last 30 days · 6,939 calls
- Latency p50
- 2.4 sp95 10 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/serpapi.x.google-trends?q=coffee&geo=US&engine=google_trends&data_type=TIMESERIESPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
result key depends on data_type: TIMESERIES interest_over_time (single or multiple q); GEO_MAP compared_breakdown_by_region (multiple q only); GEO_MAP_0 interest_by_region (single q); RELATED_TOPICS related_topics (single q); RELATED_QUERIES related_queries (single q).
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
q | 文字列 | 必須 | up to 5 comma-separated terms | coffee,milk |
geo | 文字列 | 任意 | region code; default Worldwide | US |
date | 文字列 | 任意 | e.g. "today 12-m", "now 7-d" | today 12-m |
engine | 文字列 | 必須 | google_trends | |
data_type | 文字列 | 任意 | TIMESERIES (default; single or multiple queries) | GEO_MAP (compared breakdown by region; multiple comma-separated q only) | GEO_MAP_0 (interest by region; single query only) | RELATED_TOPICS (single query only) | RELATED_QUERIES (single query only) | TIMESERIES |
- クエリパラメータ
q文字列必須up to 5 comma-separated terms
例:
coffee,milkgeo文字列任意region code; default Worldwide
例:
USdate文字列任意e.g. "today 12-m", "now 7-d"
例:
today 12-mengine文字列必須例:
google_trendsdata_type文字列任意TIMESERIES (default; single or multiple queries) | GEO_MAP (compared breakdown by region; multiple comma-separated q only) | GEO_MAP_0 (interest by region; single query only) | RELATED_TOPICS (single query only) | RELATED_QUERIES (single query only)
例:
TIMESERIES
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.x.google-trends?q=coffee&geo=US&engine=google_trends&data_type=TIMESERIES' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.x.google-trends?q=coffee&geo=US&engine=google_trends&data_type=TIMESERIES",
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-trends?q=coffee&geo=US&engine=google_trends&data_type=TIMESERIES", {
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 です。サービス料を含みます。