API Base URL
https://google-trends21.p.rapidapi.comx-rapidapi-host: google-trends21.p.rapidapi.com
x-rapidapi-key: YOUR_API_KEY
Overview
The CognifyAPI Google Trends Search API provides programmatic access to trending topics, keyword interest over time, regional data, and keyword comparisons, mirroring features from Google's official trends tool.

1. Get Trending Now
Retrieve currently trending search topics within a specified country and time period.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | Yes | Country Code (e.g., US) |
time | int | No | Hours (Default: 24) |
articleCount | int | No | Number of related news articles per trend., Default: `1` |
hl | string | No | Language (e.g., `en-US`, Default: `en-US`). |
tz | int | No | Timezone offset in minutes (e.g., `300` = UTC-5, Default:`300`) |
Request Example
curl --request GET \
--url 'https://google-trends21.p.rapidapi.com/getTrendingNow?country=US&time=24&articleCount=1&hl=en-US&tz=300' \
--header 'x-rapidapi-host: google-trends21.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_API_KEY'Response Example
{
"trends": [
{
"query": "aubrey plaza husband",
"articles": [
[
"Aubrey Plaza is ‘functioning,’ but it’s a ‘daily struggle’ after her husband’s death",
"https://www.cnn.com/2025/08/19/entertainment/aubrey-plaza-husband-amy-poehler-podcast",
"CNN",
[
1755612000
],
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQaJt1C8cClRJN48u6jNUF8TQvDfTYalp9W7-RMPvEe4JEP2QgmzUzQTta2QuI"
]
],
"geo": "US",
"tzTimestamp": "2025-08-19 15:40:00",
"traffic": 100000,
"breakout": 1000,
"related": [
"aubrey plaza husband",
"jeff baena",
"the gorge",
"amy poehler",
"parks and rec",
"the gorge movie",
"miles teller"
],
"score": [
4
],
"timeseries": [
[
3622915512,
"en",
"US"
]
]
}
]
}2. Get Explore Top/Rising Searched Queries
Fetch top and rising queries related to a specific country, category, and time range.Explore Search Queries helps you discover the most popular and rising search queries related to a keyword. You can filter by country, time range, and category to analyze user interests, track emerging trends, and gain insights into what people are searching for online.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country | string | Yes | Country Code (e.g., US) |
time | int | No | Hours (Default: 24) |
category | int | No | Category ID (Default 0 = all categories). |
hl | string | No | Language (e.g., `en-US`, Default: `en-US`). |
tz | int | No | Timezone offset in minutes (e.g., `300` = UTC-5, Default:`300`) |
Request Example
curl --request GET \
--url 'https://google-trends21.p.rapidapi.com/getExploreSearchQueries?country=US&time=today%2012-m&category=0&hl=en-US&tz=300' \
--header 'x-rapidapi-host: google-trends21.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_API_KEY'Response Example
{
"searchQueries": {
"default": {
"top": [
{
"query": "weather",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=weather&date=today+12-m&geo=US"
},
{
"query": "google",
"value": 90,
"formattedValue": "90",
"hasData": true,
"link": "/trends/explore?q=google&date=today+12-m&geo=US"
}
],
"rising": [
{
"query": "labubu",
"value": 1700,
"formattedValue": "+1,700%",
"link": "/trends/explore?q=labubu&date=today+12-m&geo=US"
},
{
"query": "tiempo de mañana",
"value": 300,
"formattedValue": "+300%",
"link": "/trends/explore?q=tiempo+de+ma%C3%B1ana&date=today+12-m&geo=US"
}
]
}
}
}Error Handling & Limits
The API uses standard HTTP status codes. Exceeding the allowed rate limit will result in a429 Too Many Requests response.
- 200Success
- 400Invalid Parameters
- 429Rate Limit Exceeded