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.
Available Tools
Tool Name | Description |
---|---|
GoogleNews.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.
GoogleNews.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.
Reference
LanguageCodes
ar
: Arabicbn
: Bengalida
: Danishde
: Germanel
: Greeken
: Englishes
: Spanishfi
: Finnishfr
: Frenchhi
: Hindihu
: Hungarianid
: Indonesianit
: Italianja
: Japaneseko
: Koreanms
: Malaynl
: Dutchno
: Norwegianpcm
: Nigerian Pidginpl
: Polishpt
: Portuguesept-br
: Portuguese (Brazil)pt-pt
: Portuguese (Portugal)ru
: Russiansv
: Swedishtl
: Filipinotr
: Turkishuk
: Ukrainianzh
: Chinesezh-cn
: Chinese (Simplified)zh-tw
: Chinese (Traditional)
CountryCodes
af
: Afghanistanal
: Albaniadz
: Algeriaas
: American Samoaad
: Andorraao
: Angolaai
: Anguillaaq
: Antarcticaag
: Antigua and Barbudaar
: Argentinaam
: Armeniaaw
: Arubaau
: Australiaat
: Austriaaz
: Azerbaijanbs
: Bahamasbh
: Bahrainbd
: Bangladeshbb
: Barbadosby
: Belarusbe
: Belgiumbz
: Belizebj
: Beninbm
: Bermudabt
: Bhutanbo
: Boliviaba
: Bosnia and Herzegovinabw
: Botswanabv
: Bouvet Islandbr
: Brazilio
: British Indian Ocean Territorybn
: Brunei Darussalambg
: Bulgariabf
: Burkina Fasobi
: Burundikh
: Cambodiacm
: Cameroonca
: Canadacv
: Cape Verdeky
: Cayman Islandscf
: Central African Republictd
: Chadcl
: Chilecn
: Chinacx
: Christmas Islandcc
: Cocos (Keeling) Islandsco
: Colombiakm
: Comoroscg
: Congocd
: Congo, the Democratic Republic of theck
: Cook Islandscr
: Costa Ricaci
: Cote D’ivoirehr
: Croatiacu
: Cubacy
: Cypruscz
: Czech Republicdk
: Denmarkdj
: Djiboutidm
: Dominicado
: Dominican Republicec
: Ecuadoreg
: Egyptsv
: El Salvadorgq
: Equatorial Guineaer
: Eritreaee
: Estoniaet
: Ethiopiafk
: Falkland Islands (Malvinas)fo
: Faroe Islandsfj
: Fijifi
: Finlandfr
: Francegf
: French Guianapf
: French Polynesiatf
: French Southern Territoriesga
: Gabongm
: Gambiage
: Georgiade
: Germanygh
: Ghanagi
: Gibraltargr
: Greecegl
: Greenlandgd
: Grenadagp
: Guadeloupegu
: Guamgt
: Guatemalagg
: Guernseygn
: Guineagw
: Guinea-Bissaugy
: Guyanaht
: Haitihm
: Heard Island and Mcdonald Islandsva
: Holy See (Vatican City State)hn
: Hondurashk
: Hong Konghu
: Hungaryis
: Icelandin
: Indiaid
: Indonesiair
: Iran, Islamic Republic ofiq
: Iraqie
: Irelandim
: Isle of Manil
: Israelit
: Italyje
: Jerseyjm
: Jamaicajp
: Japanjo
: Jordankz
: Kazakhstanke
: Kenyaki
: Kiribatikp
: Korea, Democratic People’s Republic ofkr
: Korea, Republic ofkw
: Kuwaitkg
: Kyrgyzstanla
: Lao People’s Democratic Republiclv
: Latvialb
: Lebanonls
: Lesotholr
: Liberialy
: Libyan Arab Jamahiriyali
: Liechtensteinlt
: Lithuanialu
: Luxembourgmo
: Macaomk
: Macedonia, the Former Yugosalv Republic ofmg
: Madagascarmw
: Malawimy
: Malaysiamv
: Maldivesml
: Malimt
: Maltamh
: Marshall Islandsmq
: Martiniquemr
: Mauritaniamu
: Mauritiusyt
: Mayottemx
: Mexicofm
: Micronesia, Federated States ofmd
: Moldova, Republic ofmc
: Monacomn
: Mongoliame
: Montenegroms
: Montserratma
: Moroccomz
: Mozambiquemm
: Myanmarna
: Namibianr
: Naurunp
: Nepalnl
: Netherlandsan
: Netherlands Antillesnc
: New Caledonianz
: New Zealandni
: Nicaraguane
: Nigerng
: Nigerianu
: Niuenf
: Norfolk Islandmp
: Northern Mariana Islandsno
: Norwayom
: Omanpk
: Pakistanpw
: Palaups
: Palestinian Territory, Occupiedpa
: Panamapg
: Papua New Guineapy
: Paraguaype
: Peruph
: Philippinespn
: Pitcairnpl
: Polandpt
: Portugalpr
: Puerto Ricoqa
: Qatarre
: Reunionro
: Romaniaru
: Russian Federationrw
: Rwandash
: Saint Helenakn
: Saint Kitts and Nevislc
: Saint Luciapm
: Saint Pierre and Miquelonvc
: Saint Vincent and the Grenadinesws
: Samoasm
: San Marinost
: Sao Tome and Principesa
: Saudi Arabiasn
: Senegalrs
: Serbiasc
: Seychellessl
: Sierra Leonesg
: Singaporesk
: Slovakiasi
: Sloveniasb
: Solomon Islandsso
: Somaliaza
: South Africags
: South Georgia and the South Sandwich Islandses
: Spainlk
: Sri Lankasd
: Sudansr
: Surinamesj
: Svalbard and Jan Mayensz
: Swazilandse
: Swedench
: Switzerlandsy
: Syrian Arab Republictw
: Taiwan, Province of Chinatj
: Tajikistantz
: Tanzania, United Republic ofth
: Thailandtl
: Timor-Lestetg
: Togotk
: Tokelauto
: Tongatt
: Trinidad and Tobagotn
: Tunisiatr
: Turkiyetm
: Turkmenistantc
: Turks and Caicos Islandstv
: Tuvaluug
: Ugandaua
: Ukraineae
: United Arab Emiratesuk
: United Kingdomgb
: United Kingdomus
: United Statesum
: United States Minor Outlying Islandsuy
: Uruguayuz
: Uzbekistanvu
: Vanuatuve
: Venezuelavn
: Viet Namvg
: Virgin Islands, Britishvi
: Virgin Islands, U.S.wf
: Wallis and Futunaeh
: Western Saharaye
: Yemenzm
: Zambiazw
: Zimbabwe