Google News
Description: Enable agents to search for news stories with Google News.
Author: Arcade
Code: GitHub
Auth: API Key
The Arcade Google News toolkit provides a pre-built set of tools for interacting with Google News. These tools make it easy to build agents and AI apps that can:
- Search for news stories with Google News.
Install
pip install arcade_search
pip installing the toolkit is only needed if you are self-hosting Arcade. You do not need to install the toolkit if you’re using Arcade Cloud.
Available Tools
Tool Name | Description |
---|---|
SearchNews | Search for news stories with Google News. |
If you need to perform an action that’s not listed here, you can get in touch with us to request a new tool, or create your own tools.
SearchNews
Search for news stories with Google News.
Parameters
query
(string, required) Keywords to search for news articles. E.g. ‘Apple launches new iPhone’.country_code
(string, optional, Defaults toNone
) 2-character country code to search for news articles. E.g. ‘us’ (United States). Defaults toNone
(search news globally).language
(string, optional, Defaults to ‘en’ English) 2-character language code to search for news articles. E.g. ‘en’ (English). Defaults to ‘en’ (English).limit
(int, optional, Defaults toNone
) Maximum number of news articles to return. Defaults to None (returns all results found by the API).
Auth
The Arcade Google News toolkit uses the SerpAPI to get news data from Google News.
- Secret:
SERP_API_KEY
: Your SerpAPI API key.
Setting the SERP_API_KEY
secret is only required if you are self-hosting Arcade. If you’re using Arcade Cloud, the secret is already set for you. To manage your secrets, go to the Secrets page in the Arcade Dashboard.
Default parameters
Language and Country are configurable through environment variables. When set, they will be used as default for Google News tools.
Providing a different value as language_code
or country_code
argument in the tool call will override the default value.
Language
The language code is a 2-character code that determines the language in which the API will search and return news articles. There are two environment variables:
ARCADE_GOOGLE_LANGUAGE
: a default value for all Google search tools. If not set, defaults to ‘en’ (English).ARCADE_GOOGLE_NEWS_LANGUAGE
: a default value for the news search tools. If not set, defaults toARCADE_GOOGLE_LANGUAGE
.
A list of supported language codes can be found here.
Country
The country code is a 2-character code that determines the country in which the API will search for news articles. There are two environment variables:
ARCADE_GOOGLE_NEWS_COUNTRY
: a default value for theSearchNews
tool. If not set, defaults toNone
(search news globally).
A list of supported country codes can be found here.