API reference
News API
News search and top headlines for 70 countries, plus AI briefings with key points and sources.
- Host
news-api-search-headlines-ai-summaries.p.rapidapi.com- Base path
/v1/news- Auth
X-RapidAPI-Key,X-RapidAPI-Host- For agents
openapi.json·news.md
Overview and pricing · Tutorial: News API · RapidAPI playground (opens in a new tab) ↗ · Apify actor (opens in a new tab) ↗
Search
News articles matching your words, by country, language and date.
Search News
GET /v1/news/search
Search news articles by keyword, country, language and date. Search news articles by keywords: headline, outlet, time and link, up to 100 per call, duplicates removed. Filter by edition, period or dates, and outlet. When Google News is busy, answered from the GDELT Project (`provider`: gdelt, see `notice`). 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
q required |
query | string |
Search words. Google News syntax works: "exact phrase", OR, -exclude, intitle:word. |
country |
query | string |
ISO country code of the news edition (default US, or the language's home country). See List News Editions. |
language |
query | string |
ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French. |
period |
query | "1h" | "6h" | "12h" | "1d" | "3d" | "7d" | "30d" | "1y" | "any" |
How far back to search (ignored with dates). Default 7d. |
from_date |
query | string |
First day, YYYY-MM-DD. |
to_date |
query | string |
Last day, YYYY-MM-DD (included). |
source |
query | string |
Only this outlet's domain, e.g. reuters.com. |
sort |
query | string |
relevance (Google News order) or date (newest first). Default relevance. |
limit |
query | integer |
Articles, 1-100. Default 20. |
curl -G "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/search" \
--data-urlencode "q=electric vehicles" \
--data-urlencode "country=US" \
--data-urlencode "language=en" \
--data-urlencode "from_date=2026-11-01" \
--data-urlencode "to_date=2026-11-07" \
--data-urlencode "source=reuters.com" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
import requests
url = "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/search"
params = {
"q": "electric vehicles",
"country": "US",
"language": "en",
"from_date": "2026-11-01",
"to_date": "2026-11-07",
"source": "reuters.com"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/search?q=electric+vehicles&country=US&language=en&from_date=2026-11-01&to_date=2026-11-07&source=reuters.com", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
},
});
console.log(await res.json());
Headlines
Top stories by country, topic or city, with related coverage.
Get Top Headlines
GET /v1/news/headlines
Top stories by country and topic, or local news of a city. The stories Google News puts first right now in an edition: top stories or a section (world, nation, business, technology, entertainment, sports, science, health), or the local news of a city or region. Each story lists the other outlets covering it. 1 credit.
| Parameter | In | Type | Description |
|---|---|---|---|
topic |
query | "top" | "world" | "nation" | "business" | "technology" | "entertainment" | "sports" | "science" | "health" |
Section of the edition. Default top. |
location |
query | string |
City or region for local news (replaces topic). |
country |
query | string |
ISO country code of the news edition (default US, or the language's home country). See List News Editions. |
language |
query | string |
ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French. |
limit |
query | integer |
Stories, 1-100. Default 20. |
curl -G "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/headlines" \
--data-urlencode "location=Chicago" \
--data-urlencode "country=US" \
--data-urlencode "language=en" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
import requests
url = "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/headlines"
params = {
"location": "Chicago",
"country": "US",
"language": "en"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/headlines?location=Chicago&country=US&language=en", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
},
});
console.log(await res.json());
List News Editions
GET /v1/news/editions
Countries and languages you can ask for, and the topics. Every news edition: its country code, name and languages (the default first), plus the headline topics. 1 credit.
curl -G "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/editions" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
import requests
url = "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/editions"
params = {}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/editions", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
},
});
console.log(await res.json());
AI Briefing
A cited briefing of any subject: key points, angles, what to watch.
Get News Briefing
GET /v1/news/briefing
AI briefing of a subject, section or city: key points, angles, sources. Get an AI briefing on a subject, section or city, written from up to 80 headlines: summary, 3-7 key points, outlet angles, what to watch, entities and tone, each point citing its `sources`. Give exactly one of q, topic or location. 404 `no_news` (not billed). 10 credits.
| Parameter | In | Type | Description |
|---|---|---|---|
q |
query | string |
Subject to brief on (search words). Give one of q, topic or location. |
topic |
query | "top" | "world" | "nation" | "business" | "technology" | "entertainment" | "sports" | "science" | "health" |
Or a section of the edition, e.g. business. |
location |
query | string |
Or a city or region (local news), e.g. Chicago; not with q. |
country |
query | string |
ISO country code of the news edition (default US, or the language's home country). See List News Editions. |
language |
query | string |
ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French. |
period |
query | "1h" | "6h" | "12h" | "1d" | "3d" | "7d" | "30d" | "1y" | "any" |
Window for q (default 1d, widened to 7d when the subject is quiet). |
output_language |
query | string |
Language of the briefing (default: the edition's). |
curl -G "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/briefing" \
--data-urlencode "q=COP31" \
--data-urlencode "period=1d" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
import requests
url = "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/briefing"
params = {
"q": "COP31",
"period": "1d"
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
}
r = requests.get(url, params=params, headers=headers)
print(r.json())
const res = await fetch("https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/briefing?q=COP31&period=1d", {
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "news-api-search-headlines-ai-summaries.p.rapidapi.com",
},
});
console.log(await res.json());
Response
{
"query": "COP31",
"edition": { "country": "US", "language": "en" },
"period": "1d",
"language": "en",
"headline": "COP31 climate summit concludes without a final agreement following deadlock over fossil fuels.",
"summary": "The COP31 climate summit in Antalya ended without an overarching deal as nations failed to reach a consensus on fossil fuel commitments. While many observers characterize the event as a significant failure and a diplomatic crisis, others argue that the green energy transition continues independently of the summit's outcome. Calls for urgent reform of the UN climate negotiation process have emerged in the wake of the collapse.",
"key_points": [
{
"text": "COP31 concluded without a final agreement due to deep divisions among nations regarding fossil fuel phaseout language.",
"sources": [2, 12, 40, 46, 54]
},
{
"text": "The European Union is actively seeking an overhaul of the UN climate summit consensus-based decision-making process.",
"sources": [41, 62, 63]
}
],
"angles": [
{
"text": "Some outlets frame the event as a catastrophic failure of diplomacy and a 'darkest moment' for climate action.",
"sources": [15, 18, 49, 53]
},
{
"text": "Other perspectives emphasize that the failure of the summit does not equate to a failure of the broader green energy transition.",
"sources": [16, 24, 25, 71]
}
],
"what_to_watch": [
{
"text": "Potential reforms to the UN climate summit negotiation structure.",
"sources": [18, 41, 63]
}
],
"entities": {
"organizations": ["United Nations", "European Union", "African Development Bank Group", "Human Rights Watch"],
"people": ["Recep Tayyip Erdogan"],
"places": ["Antalya", "Turkey", "Nepal"]
},
"sentiment": "negative",
"coverage": {
"articles": 80,
"outlets": 72,
"oldest": "2026-11-23T20:25:01Z",
"newest": "2026-11-24T19:25:20Z"
},
"sources": [
{
"n": 16,
"title": "COMMENTARY: COP31 ended without a deal. That doesn't mean it was a failure",
"source": "Reuters",
"url": "https://news.google.com/rss/articles/CBMiyAFBVV95cUxNZGZKQVhGc3JMVDhGQTMx...",
"published_at": "2026-11-24T15:29:45Z"
}
],
"note": "Written by AI from 80 headlines, not from the full articles. Check the sources before you quote it."
}
From a real response, shortened (4 key points, 3 angles, 2 things to watch and 28 cited articles in full). The numbers in sources point to the n of the articles listed at the end.
Why developers pick this API
- 🧠 A briefing, not a pile of links: popular news APIs return lists; this one also tells you what the list says, with citations you can check, for 10 credits ($0.006 on PRO) where news summarizers charge $0.01 to $0.03.
- 💸 Priced to run all day: about $0.0006 per search or headlines call on PRO (popular news APIs: $0.0025), and failed calls (4xx, 5xx) use 0 credits.
- 🤖 Made for agents and pipelines: clean JSON, ISO dates in UTC, outlet domains, stable field names, related coverage grouped per story.
- 🛡️ Grounded by design: the AI reads headlines only and can only cite headlines from the list; prompts hidden in the news are ignored.
Search
curl "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/search?q=electric%20vehicles&limit=3" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
{
"query": "electric vehicles",
"edition": { "country": "US", "language": "en" },
"period": "7d",
"count": 3,
"articles": [
{
"title": "Hot, New Electric Cars That Are Coming Soon",
"url": "https://news.google.com/rss/articles/CBMioAFBVV95cUxPVnl1ejB5ZXlFZ1ZvVmRtOVFW...",
"source": {
"name": "Consumer Reports",
"url": "https://www.consumerreports.org",
"domain": "consumerreports.org"
},
"published_at": "2026-11-21T08:00:00Z"
}
]
}
From a real response, shortened. Google News syntax works in q: "exact phrase", OR, -exclude, intitle:word. Narrow with period (1h to 1y, or any), from_date / to_date, source=reuters.com and sort=date.
Top headlines
curl "https://news-api-search-headlines-ai-summaries.p.rapidapi.com/v1/news/headlines?topic=business&country=GB&limit=2" \
-H "X-RapidAPI-Key: YOUR_API_KEY" -H "X-RapidAPI-Host: news-api-search-headlines-ai-summaries.p.rapidapi.com"
{
"topic": "business",
"edition": { "country": "GB", "language": "en" },
"count": 2,
"stories": [
{
"title": "Mamdani says Nvidia drama shows stock market is overly dependent on AI",
"url": "https://news.google.com/rss/articles/CBMihAFBVV95cUxOVHJrOW9PVjh5OFBNZG9o...",
"source": { "name": "The Guardian", "url": "https://www.theguardian.com", "domain": "theguardian.com" },
"published_at": "2026-11-24T18:05:00Z",
"related": [
{ "title": "What Jensen Huang's return teaches China's Xi about Trump", "url": "https://news.google.com/rss/articles/...", "source": "BBC" },
{ "title": "Nvidia board comes under close scrutiny after reinstating CEO | ITV News", "url": "https://news.google.com/rss/articles/...", "source": "ITVX" }
]
}
]
}
From a real response, shortened. related lists the other outlets on the same story: one call shows how the whole press covers it.
Editions
/v1/news/editions lists the 70 countries and their languages. Pass country (ISO code) and, where a country has several, language: CA + fr, IN + hi, US + es, BE + nl... A language alone picks its home edition (fr → France, pt → Brazil).
Errors
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_query |
Empty q, or over 200 characters. |
| 400 | unsupported_country / unsupported_language |
No edition for that country or language; see /v1/news/editions. |
| 400 | invalid_date / invalid_source / invalid_request |
Bad date, outlet domain, or briefing without exactly one of q, topic, location. |
| 404 | no_news |
Nothing to brief on for this subject and period. Not billed. |
| 429 | daily_limit_reached |
Daily safety limit of your plan; resets at 00:00 UTC. |
| 503 | source_unavailable / ai_error |
The news sources (after automatic retries and the fallback) or the AI did not answer; retry after Retry-After (a few seconds). Not billed. |
Honest limits
- Headlines only: no article text, no author names, no images.
- Search returns at most 100 articles per call (Google News' own cap) and no paging.
urlis a Google News link that forwards to the article, not the publisher's URL.- A briefing is as good as the headlines: on a quiet subject it may rest on a handful of articles (
coveragetells you how many).
Use it from an AI agent
Add this MCP server and the Google News Scraper - Search, Headlines & AI Briefing actor becomes a tool your agent can call. Works in Claude, Cursor, VS Code and any MCP client; billed per event through Apify.
https://mcp.apify.com?tools=helenisapi/google-news-scraper-ai-briefing
Prefer plain HTTP? Give your agent the OpenAPI document or the Markdown reference.