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/successAt provider cost
- Success rate
- 99.9%Last 30 days · 6,939 calls
- Latency p50
- 2.4 sp95 10 s
- Last verified
- Jul 28, 2026Verified 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
Parameters
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).
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
q | string | Required | up to 5 comma-separated terms | coffee,milk |
geo | string | Optional | region code; default Worldwide | US |
date | string | Optional | e.g. "today 12-m", "now 7-d" | today 12-m |
engine | string | Required | google_trends | |
data_type | string | Optional | 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 |
- Query parameters
qstringRequiredup to 5 comma-separated terms
Example:
coffee,milkgeostringOptionalregion code; default Worldwide
Example:
USdatestringOptionale.g. "today 12-m", "now 7-d"
Example:
today 12-menginestringRequiredExample:
google_trendsdata_typestringOptionalTIMESERIES (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)
Example:
TIMESERIES
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.015/success, including the service fee.