Google Trends
Get Google Trends interest-over-time and related-query data for a search term. See Google Trending for real-time trending searches by region.
POST/api/v2/google/trends
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredSearch keyword (-> q).
Example: ai agents
geostringLocation code (US, GB, US-CA). Worldwide when empty.
Example: US
hlstringUI language.
Example: en
datestringTime range (e.g. today 12-m).
Example: today 12-m
tzstringTimezone offset in minutes.
data_typeenum<string>Widget: TIMESERIES, GEO_MAP, GEO_MAP_0, RELATED_QUERIES, RELATED_TOPICS.
catstringCategory id (e.g. 71).
gpropenum<string>Google property: images, news, youtube, froogle (empty = web).
regionenum<string>Geo granularity: COUNTRY, REGION, DMA, CITY.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.google.trends("ai agents", geo="US")
print(results)Response
"q": "ai agents",
"geo": "US",
"hl": "en",
"date": "today 12-m",
"tz": "420"
},
"source": "",
},
"credits_used": 1,
"credits_remaining": 49
}