- Overview
- 1. Google Trending Now
- 2. Explore Search Terms
- 3. Compare Search Terms
- 4. Searched Queries
- 5. Trends Suggestions
- Authentication
- Errors and limits
Other Documentation
Resources
Google Trends API Documentation
API Base URL
https://api.cognifyapi.comAuthentication header: x-cognifyapi-key
API key: YOUR_COGNIFY_API_KEY
Overview
Retrieve current trends, explore related and compared terms, and get search suggestions.
All requests use HTTPS and require the x-cognifyapi-key header. Replace the placeholder with your key from the CognifyAPI Studio. For interactive examples, visit the interactive Google Trends API page.
1. Google Trending Now
Get current trending searches by country and time range.
Query parameters
| Parameter | Example value |
|---|---|
country | US |
time | 4 |
category | 0 |
articleCount | 1 |
hl | en-US |
tz | 300 |
enableRelated | true |
enableTimeSeries | true |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/google-trends-now?country=US&time=4&category=0&articleCount=1&hl=en-US&tz=300&enableRelated=true&enableTimeSeries=true' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": {
"country": "US",
"time": "4",
"category": "0",
"articleCount": "1",
"hl": "en-US",
"tz": "300",
"enableRelated": "true",
"enableTimeSeries": "true"
},
"results": 121,
"trendingResults": [
{
"query": "how to save in gta 6",
"articles": [],
"geo": "US",
"tzTimestamp": "2026-11-19 10:30:00",
"traffic": 5000,
"breakout": 1000,
"related": [
"how to save in gta 6",
"does gta 6 auto save",
"how to save gta 6",
"gta 6 how to save"
],
"category": "Games",
"timeseries": [
[
4944355324,
"en",
"US"
]
]
},
{
"query": "larry poindexter",
"articles": [],
"geo": "US",
"tzTimestamp": "2026-11-19 08:40:00",
"traffic": 5000,
"breakout": 700,
"related": [
"larry poindexter"
],
"category": "Entertainment",
"timeseries": [
[
4945780814,
"en",
"US"
]
]
}
]
}2. Explore Search Terms
Get related queries, regional interest, and time series for a term.
Query parameters
| Parameter | Example value |
|---|---|
keyword | trump |
country | US |
time | today 12-m |
category | 0 |
enableRelatedQueries | true |
enableInterestByRegion | true |
enableInterestByOverTime | true |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/trends-explore-search-terms?keyword=trump&country=US&time=today%2012-m&category=0&enableRelatedQueries=true&enableInterestByRegion=true&enableInterestByOverTime=true' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": {
"keyword": "trump",
"country": "US",
"time": "today 12-m",
"category": "0",
"enableRelatedQueries": "true",
"enableInterestByRegion": "true",
"enableInterestByOverTime": "true"
},
"relatedQueries": {
"default": {
"top": [
{
"query": "donald trump",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=donald+trump&date=2025-11-19+2026-11-19&geo=US"
},
{
"query": "news trump",
"value": 60,
"formattedValue": "60",
"hasData": true,
"link": "/trends/explore?q=news+trump&date=2025-11-19+2026-11-19&geo=US"
}
],
"rising": [
{
"query": "trump aca refund checks",
"value": 8350,
"formattedValue": "Breakout",
"link": "/trends/explore?q=trump+aca+refund+checks&date=2025-11-19+2026-11-19&geo=US"
},
{
"query": "roger rogoff trump administration dismissal",
"value": 6950,
"formattedValue": "Breakout",
"link": "/trends/explore?q=roger+rogoff+trump+administration+dismissal&date=2025-11-19+2026-11-19&geo=US"
}
]
}
},
"interestByRegion": {
"default": {
"geoMapData": [
{
"geoCode": "US-DC",
"geoName": "District of Columbia",
"value": [
100
],
"formattedValue": [
"100"
],
"maxValueIndex": 0,
"hasData": [
true
]
}
]
}
},
"interestByOverTime": {
"default": {
"timelineData": [
{
"time": "1763251200",
"formattedTime": "Nov 16 – 22, 2025",
"formattedAxisTime": "Nov 16, 2025",
"value": [
74
],
"hasData": [
true
],
"formattedValue": [
"74"
]
}
],
"averages": []
}
}
}3. Compare Search Terms
Compare search interest for two terms.
Query parameters
| Parameter | Example value |
|---|---|
keywordOne | pepsi |
keywordTwo | cocacola |
country | US |
time | today 12-m |
category | 0 |
enableRelatedQueries | true |
enableInterestByRegion | true |
enableInterestByOverTime | true |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/trends-explore-compare-search-terms?keywordOne=pepsi&keywordTwo=cocacola&country=US&time=today%2012-m&category=0&enableRelatedQueries=true&enableInterestByRegion=true&enableInterestByOverTime=true' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"pepsi": {
"relatedQueries": {
"default": {
"top": [
{
"query": "pepsi diet",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=pepsi+diet&date=today+12-m&geo=US"
}
],
"rising": [
{
"query": "pepsi needoh",
"value": 20850,
"formattedValue": "Breakout",
"link": "/trends/explore?q=pepsi+needoh&date=today+12-m&geo=US"
}
]
}
}
},
"cocacola": {
"relatedQueries": {
"default": {
"top": [
{
"query": "cocacola can",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=cocacola+can&date=today+12-m&geo=US"
}
],
"rising": [
{
"query": "cocacola panini",
"value": 111650,
"formattedValue": "Breakout",
"link": "/trends/explore?q=cocacola+panini&date=today+12-m&geo=US"
}
]
}
}
},
"interestByRegion": {
"default": {
"geoMapData": [
{
"geoCode": "US-WY",
"geoName": "Wyoming",
"value": [
98,
2
],
"formattedValue": [
"98%",
"2%"
],
"maxValueIndex": 0,
"hasData": [
true,
true
]
},
{
"geoCode": "US-IA",
"geoName": "Iowa",
"value": [
98,
2
],
"formattedValue": [
"98%",
"2%"
],
"maxValueIndex": 0,
"hasData": [
true,
true
]
}
]
}
},
"interestByOverTime": {
"default": {
"timelineData": [
{
"time": "1763251200",
"formattedTime": "Nov 16 – 22, 2025",
"formattedAxisTime": "Nov 16, 2025",
"value": [
60,
4
],
"hasData": [
true,
true
],
"formattedValue": [
"60",
"4"
]
}
],
"averages": [
71,
4
]
}
}
}4. Searched Queries
Retrieve top and rising queries for a country and period.
Query parameters
| Parameter | Example value |
|---|---|
country | US |
time | today 12-m |
category | 0 |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/trends-searched-queries?country=US&time=today%2012-m&category=0' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": {
"country": "US",
"time": "today 12-m",
"category": "0"
},
"results": 25,
"searchQueries": {
"default": {
"top": [
{
"query": "from",
"value": 100,
"formattedValue": "100",
"hasData": true,
"link": "/trends/explore?q=from&date=today+12-m&geo=US"
},
{
"query": "weather",
"value": 72,
"formattedValue": "72",
"hasData": true,
"link": "/trends/explore?q=weather&date=today+12-m&geo=US"
}
],
"rising": [
{
"query": "krillion",
"value": 350,
"formattedValue": "+350%",
"link": "/trends/explore?q=krillion&date=today+12-m&geo=US"
},
{
"query": "2026 us election results",
"value": 350,
"formattedValue": "+350%",
"link": "/trends/explore?q=2026+us+election+results&date=today+12-m&geo=US"
}
]
}
}
}5. Trends Suggestions
Get suggested search terms for a keyword.
Query parameters
| Parameter | Example value |
|---|---|
keyword | trump |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/trends-suggestions?keyword=trump' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": {
"keyword": "trump"
},
"results": 5,
"trends": {
"default": {
"topics": [
{
"mid": "/m/07gql",
"title": "Trumpet",
"type": "Musical instrument"
},
{
"mid": "/g/11c0xr0k6k",
"title": "Trumpeter",
"type": "Topic"
},
{
"mid": "/m/0cqt90",
"title": "Donald Trump",
"type": "45th and 47th U.S. President"
},
{
"mid": "/m/0m2w3",
"title": "Myopia",
"type": "Condition"
},
{
"mid": "/g/11x1py3gdk",
"title": "$Trump",
"type": "Topic"
}
]
}
}
}Authentication
Include your API key in every request using the x-cognifyapi-key request header.
Errors and limits
Check the HTTP status and response body when a request fails. Invalid parameters can return a 400 response; exceeding your plan's rate limit can return 429. Review your plan and usage in CognifyAPI Studio.