News
The articles Google News lists for a search: headline, publisher, publish time and Google News link, plus a coverage summary.
Try it in the dashboard 100 free credits when you sign up, no card.
GET/v1/google/news
Costs 1 credit per request. Only requests that return data are charged.
Parameters
| Name | Type | Description |
|---|---|---|
qrequired |
string | What to search the news for, up to 100 characters. Google News search syntax works: quote a phrase, use OR, or put a minus before a word to leave it out. |
countryoptional |
string | Two-letter code of the country whose edition of Google News is searched, such as US, GB or DE. Default: US. |
periodoptional |
string | How far back to look: the last hour (1h), 24 hours (24h), 7 days (7d), 30 days (30d) or year (1y), or with no limit (any). One of: 1h, 24h, 7d, 30d, 1y, any. Default: 7d. |
limitoptional |
integer | How many articles to return, in Google News' order. Default: 20. From 1 to 50. |
Example request
curl "https://pipefetch.com/v1/google/news?q=artificial+intelligence&country=US&limit=20" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch('https://pipefetch.com/v1/google/news?q=artificial+intelligence&country=US&limit=20', {
headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY },
});
const { data, credits } = await res.json();import os, requests
res = requests.get(
"https://pipefetch.com/v1/google/news",
params={"q": "artificial intelligence", "country": "US", "limit": 20},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
)
data = res.json()["data"]Example response
A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.
{
"data": {
"search": {
"query": "artificial intelligence",
"country": "US",
"language": "en",
"period": "7d",
"feedUrl": "https://news.google.com/rss/search?q=artificial+intelligence+when%3A7d&hl=en-US&gl=US&ceid=US%3Aen",
"articleCount": 20,
"truncated": true,
"publisherCount": 18,
"topPublishers": [
{
"publisher": "Brookings",
"articleCount": 2
},
{
"publisher": "Department of Energy (.gov)",
"articleCount": 2
}
],
"oldestPublishedAt": "2026-11-12T14:59:26.000Z",
"newestPublishedAt": "2026-11-19T10:08:25.000Z",
"articlesPerDay": 2.94
},
"articles": [
{
"position": 1,
"title": "National Lab Discovery Series: PermitAI™: Using Artificial Intelligence to Accelerate Environmental Reviews and Permitting",
"publisher": "Department of Energy (.gov)",
"googleNewsUrl": "https://news.google.com/rss/articles/CBMitgFBVV95cUxQY2czV1NLUmdGcEhNcTlhOGJHMzRGRVhFaVBfT2EtNU8tWE4yVzVrQ2ozMHRUSnhvSmVnT1F1aTdSYVJTLU1xeWVDc3Q5cWEte…",
"publishedAt": "2026-11-13T17:08:36.000Z"
},
{
"position": 2,
"title": "Artificial intelligence and the economy",
"publisher": "Brookings",
"googleNewsUrl": "https://news.google.com/rss/articles/CBMigAFBVV95cUxQMUFreU83TjV0OVNMNWV1aDhMZV9zMFJyczNvdzNQUlQ0NEFkdzdYQ29QSVpfeHl3REhzTUVleXNVWFFfZGdGUzYtUlU5MWY5S…",
"publishedAt": "2026-11-17T13:42:37.000Z"
}
]
},
"credits": {
"used": 1,
"remaining": 99
}
}Good to know
- The articles are the ones Google News lists for the search in the country's edition, in Google News' order, which is not always newest first.
- googleNewsUrl is Google News' own link to the article. In a browser it opens the article, because Google sends the browser on to the publisher. The publisher's own address is not included, and neither is the article's text.
- search.truncated is true when Google News had at least as many articles as you asked for, so there may be more. The publisher counts and articlesPerDay describe the articles returned, over the days they span.
- Every country has its own edition. search.language is the language that was read: German for DE and Japanese for JP, for example, and English where no other is set.
- A search with no articles in the country and period answers 404 no_results and costs nothing.
Errors
Every error has the same shape, and none of them is charged. The full list is in the error reference.
Looking for an overview and use cases? See the Google News API page.