Google News
Search Google News for a query or topic — headline, source, date, and link — as JSON.
POST/api/v2/google/news
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringKeyword search (-> q). Provide this or a token.
Example: artificial intelligence
topic_tokenstringGoogle News topic token from a previous response.
section_tokenstringSection token.
story_tokenstringStory token.
publication_tokenstringPublication token.
kgmidstringKnowledge Graph entity id (e.g. /m/02_286).
hlstringUI language.
Example: en
glstringCountry perspective.
Example: us
google_domainstringRegional Google domain.
soenum<int>Sort: 0 relevance, 1 date (q/kgmid only).
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.google.news(query="artificial intelligence")
print(results)Response
"engine": "google_news",
"q": "artificial intelligence",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
],
],
"credits_used": 1,
"credits_remaining": 49
}