Google News search API
Up to 100 articles Google News finds for a query in one edition (language and country), with headline, publisher, publish time and link; time range, date and publisher filters.
GET /v1/googlenews/searchBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/googlenews/search?keyword=electric%20vehicles&time_range=day",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "electric vehicles when:1d", "language": "en-US", "country": "US", "items": [ { "title": "I’m Thankful For My Electric Car", "link": "https://news.google.com/rss/articles/CBMib0FVX3lxTE8tYlpqQlRseEFuTmE0NnMxUE5WMXZad3UxcjdXRUxwOTFNYzJGMi1WSTZVOFBHdWNsUFM…", "guid": "CBMib0FVX3lxTE8tYlpqQlRseEFuTmE0NnMxUE5WMXZad3UxcjdXRUxwOTFNYzJGMi1WSTZVOFBHdWNsUFM2QnEtNkJYNUdDeUV6WnZfYjhUbGpERmRnUGxO…", "published_at": "2026-11-26T16:50:23.000Z", "source": { "name": "InsideEVs", "url": "https://insideevs.com" } }, { "title": "A Lighter Way to Track Electric-Vehicle Battery Health in Real Driving | Newswise", "link": "https://news.google.com/rss/articles/CBMipwFBVV95cUxQZENJT2o3cVNUaUh5WUFfWWlNWXBtNDVscEdwYTgwakJIQ3FsWFFXUEl5a3hVM1IxVmt…", "guid": "CBMipwFBVV95cUxQZENJT2o3cVNUaUh5WUFfWWlNWXBtNDVscEdwYTgwakJIQ3FsWFFXUEl5a3hVM1IxVmtVQkJwcFczRWNHdV94Z0k0bXc3anp1eWo3Rnd3…", "published_at": "2026-11-26T14:50:00.000Z", "source": { "name": "Newswise", "url": "https://www.newswise.com" } }, "… 98 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
keywordquery · required | string | Example: electric vehicles. |
depthquery | integer | |
countryquery | string | Edition country, two letters (default US). |
language_codequery | string | Edition language (default en). Example: de. |
time_rangequery | "hour" | "day" | "week" | "month" | "year" | One of hour, day, week, month, year. |
publisherquery | string | |
fromquery | string | |
toquery | string | |
sincequery | string | |
untilquery | string |
Status codes
| Status | Meaning |
|---|---|
200 | Matching articles. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Google News has nothing for that search. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Google News is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Full article text?
No: headline, publisher, time and link, as Google News lists them.
Google News is a trademark of Google LLC. We are not affiliated with or endorsed by Google.