- Overview
- 1. Google News Search
- 2. Google News Search Topic
- 3. Google News Search Geo
- Authentication
- Errors and limits
Other Documentation
Resources
Google News API Documentation
API Base URL
https://api.cognifyapi.comAuthentication header: x-cognifyapi-key
API key: YOUR_COGNIFY_API_KEY
Overview
Search Google News by query, topic, or geographic region.
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 News API page.
1. Google News Search
Search news articles for a query.
Query parameters
| Parameter | Example value |
|---|---|
q | elon musk |
geo | US |
count | 2 |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/google-news-search?q=elon%20musk&geo=US&count=2' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": "elon musk",
"results": 2,
"newsResults": [
{
"title": "Musk says Jensen Huang is irreplaceable, regrets midterm spending - CNBC",
"url": "https://www.cnbc.com/2026/11/19/elon-musk-jensen-huang-midterms.html",
"timeStamp": "Thu, 19 Nov 2026 02:37:00 GMT",
"source": {
"name": "CNBC",
"url": "https://www.cnbc.com"
}
},
{
"title": "Elon Musk Says Nvidia Made a ‘Mistake’ by Parting Ways With Jensen Huang: Calls Ex-CEO ‘Michael Jordan Perhaps at His Peak Level’ - Yahoo Finance",
"url": "https://finance.yahoo.com/markets/stocks/articles/elon-musk-says-nvidia-made-014213735.html",
"timeStamp": "Thu, 19 Nov 2026 01:42:00 GMT",
"source": {
"name": "Yahoo Finance",
"url": "https://finance.yahoo.com"
}
}
]
}2. Google News Search Topic
Retrieve articles for a Google News topic.
Query parameters
| Parameter | Example value |
|---|---|
topic | WORLD |
geo | US |
count | 2 |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/google-news-search-topic?topic=WORLD&geo=US&count=2' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"query": "WORLD",
"results": 2,
"newsResults": [
{
"title": "Trump, Xi and Putin set to hold historic meeting on Apec sidelines - BBC",
"url": "https://www.bbc.com/news/live/cmlye926e2eet",
"timeStamp": "Thu, 19 Nov 2026 06:45:39 GMT",
"source": {
"name": "BBC",
"url": "https://www.bbc.com"
}
},
{
"title": "Israeli tanks cross ‘yellow line’ boundary into Hamas-controlled central Gaza - The Guardian",
"url": "https://www.theguardian.com/world/2026/nov/18/israeli-tanks-cross-yellow-line-boundary-into-hamas-controlled-central-gaza",
"timeStamp": "Wed, 18 Nov 2026 23:42:00 GMT",
"source": {
"name": "The Guardian",
"url": "https://www.theguardian.com"
}
}
]
}3. Google News Search Geo
Retrieve top news for a geographic region.
Query parameters
| Parameter | Example value |
|---|---|
geo | US |
count | 2 |
Request example
curl --request GET \
--url 'https://api.cognifyapi.com/google-news-search-geo?geo=US&count=2' \
--header 'x-cognifyapi-key: YOUR_COGNIFY_API_KEY'Response Example
{
"status": "success",
"results": 2,
"newsResults": [
{
"title": "Trump, Xi and Putin set to hold historic meeting on Apec sidelines - BBC",
"url": "https://www.bbc.com/news/live/cmlye926e2eet",
"timeStamp": "Thu, 19 Nov 2026 06:45:39 GMT",
"source": {
"name": "BBC",
"url": "https://www.bbc.com"
}
},
{
"title": "Mary Peltola flips Alaska's Senate seat. And, Nvidia won't reinstate Jensen Huang - NPR",
"url": "https://www.npr.org/2026/11/18/g-s1-154145/up-first-newsletter-mary-peltola-alaska-trump-asia-nvidia-tech-issues-ai",
"timeStamp": "Wed, 18 Nov 2026 12:14:28 GMT",
"source": {
"name": "NPR",
"url": "https://www.npr.org"
}
}
]
}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.