Google search news API
Google Search’s News tab: headline, link, publisher, age and exact publish time, thumbnail, with tbs=qdr:h for the past hour.
GET /v1/google/search/newsBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/google/search/news?q=openai&tbs=qdr:d",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "searchParameters": { "q": "openai", "type": "news", "engine": "google", "gl": "us", "hl": "en", "num": 10, "page": 1, "tbs": "qdr:d" }, "news": [ { "title": "AI Shopping Bots Get a Shot at Proving $1 Trillion Hype This Holiday Season", "link": "https://www.bloomberg.com/news/features/2026-11-26/holidays-to-test-ai-shopping-bots-from-google-amazon-meta-and-openai", "source": "Bloomberg", "date": "2 hours ago", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQBvnOE85KOuaOUVa-1BWwWkmsNLswryY0weIsDlHe-oeZ4dd87XcAJgWtXTlzVkA9I…", "position": 1 }, { "title": "Pentagon Hand Caroline Zier Now Leads OpenAI's Limits on Military Artificial Intelligence", "link": "https://broadbandbreakfast.com/pentagon-hand-caroline-zier-now-leads-openais-limits-on-military-artificial-intelligence/", "source": "Broadband Breakfast", "date": "5 hours ago", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTXyLw4BUuY6zJ-uoQ45YHLMVc_Jcu1sajVCHT_m3Wnj32qIjTSIVimjw3J4sJrDNRI…", "position": 2 }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | The search, as typed into Google (operators work). Example: coffee. |
glquery | string | Country to search from, default us. Example: gb. |
hlquery | string | Interface language, default en. Example: de. |
locationquery | string | Where the search happens, as a canonical place name ("Austin,Texas,United States"). Example: Austin,Texas,United States. |
numquery | integer | Results per page (default 10, at most 10). |
pagequery | integer | Page, from 1. |
tbsquery | string | Time filter: qdr:h (past hour), qdr:d, qdr:w, qdr:m, qdr:y, or a cdr:1,cd_min:…,cd_max:… range. Example: qdr:w. |
safequery | "active" | "off" | SafeSearch, default off. One of active, off. |
Status codes
| Status | Meaning |
|---|---|
200 | The news results. |
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 | No Google Maps place matches that reference. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Google is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How is this different from Google News?
This is the News tab of Google Search; googlenews_search_all reads the Google News app.
Google is a trademark of Google LLC. We are not affiliated with or endorsed by Google.