Google News

v0.1.2
io.github.lewisdonovan/google-news Checked 11 hours ago Published 1 month ago

Search Google News, get top stories and read articles.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_news Search Google News

Search Google News directly for articles on any keyword, company, person, team or topic. Use this for any request to search, find or summarise news or Google News coverage. Free, no API key or credits. Returns titles, publisher URLs (not Google redirect links), source names and ISO publish dates. Supports Google search operators such as quotes, OR and site:. To summarise coverage, follow up with get_article_text on the most relevant links.

ParameterTypeDescription
query *stringWhat to search for, e.g. "OpenAI" or "interest rates site:reuters.com".
countrystringTwo-letter country code for the regional edition, e.g. "GB", "DE", "BR". Defaults to US.
languagestringGoogle News interface language, e.g. "en-GB", "de", "pt-BR". Defaults to en-US.
limitintegerMaximum number of articles to return. Defaults to 20.
timeframestringHow far back to look: a number followed by h, d, m or y, e.g. "12h", "1d", "7d", "6m". Defaults to 7d.

top_stories Google News top stories

Get the current Google News top stories (headlines) for a country and language, or the stories on a Google News topic page (pass its news.google.com/topics/... URL). Use this when the user asks what is in the news or for today's headlines. Free, no API key or credits.

ParameterTypeDescription
countrystringTwo-letter country code for the regional edition, e.g. "GB", "DE", "BR". Defaults to US.
languagestringGoogle News interface language, e.g. "en-GB", "de", "pt-BR". Defaults to en-US.
limitintegerMaximum number of articles to return. Defaults to 20.
topicUrlstringA Google News topic or section URL, e.g. https://news.google.com/topics/CAAqJggKIiBDQkFTRWdvSUwyMHZNRGRqTVhZU0FtVnVHZ0pWVXlnQVAB. Omit for the front page.

get_article_text Read a news article

Fetch a news article URL (for example one returned by search_news or top_stories) and return its readable body text, title, byline and publish time, so you can summarise or quote it. Paywalled or JavaScript-only pages may return an error.

ParameterTypeDescription
url *stringThe article URL to read.