Google Shopping Search

Description: Enable agents to search for products with Google Shopping.

Author: Arcade

Code: GitHub

Auth: API Key

PyPI VersionLicensePython VersionsWheel StatusDownloads

The Arcade Google Shopping Search toolkit provides a pre-built set of tools for interacting with Google Shopping. These tools make it easy to build agents and AI apps that can:

  • Search for products on Google Shopping;

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 NameDescription
SearchShoppingProductsSearch for products on Google Shopping.

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.

SearchGoogleShopping


Search for products on Google Shopping.

Parameters

  • keywords (string, required) Keywords to search for. E.g. ‘apple iphone’ or ‘samsung galaxy’
  • country_code (string, optional, Defaults to ‘us’ United States) 2-character country code to use in the Google Shopping search. A list of supported country codes can be found here.
  • language_code (string, optional, Defaults to ‘en’ English) 2-character language code to use in the Google Shopping search. A list of supported language codes can be found here.

Auth

The Arcade Google Shopping Search toolkit uses the SerpAPI to get product information from Google Shopping.

  • 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 parameter values

Language and Country are configurable through environment variables. When set, they will be used as default for YouTube tools.

Providing a different value as language_code or country_code argument in a tool call will override the default value set in the environment variables.

Language

The language code is a 2-character code that determines the language in which the API will search and return video information. 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_SHOPPING_LANGUAGE: a default value for the Google Shopping Search tools. If not set, defaults to ARCADE_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 videos:

  • ARCADE_GOOGLE_COUNTRY: a default value for all Google Search tools. If not set, defaults to None.
  • ARCADE_GOOGLE_SHOPPING_COUNTRY: a default value for the Google Shopping Search tools. If not set, defaults to ARCADE_GOOGLE_COUNTRY. If ARCADE_GOOGLE_COUNTRY is not set, the default country for Google Shopping tools will be us (United States).

A list of supported country codes can be found here.