Skip to main content

SerpApiGoogleSearchTool

Description

Use the SerpApiGoogleSearchTool to run Google searches with SerpApi and retrieve structured results. Requires a SerpApi API key.

Installation

Environment Variables

  • SERPAPI_API_KEY (required): API key for SerpApi. Create one at https://serpapi.com/ (free tier available).

Example

Code

Notes

  • Set SERPAPI_API_KEY in the environment. Create a key at https://serpapi.com/
  • See also Google Shopping via SerpApi: /en/tools/search-research/serpapi-googleshoppingtool

Parameters

Run Parameters

  • search_query (str, required): The Google query.
  • location (str, optional): Geographic location parameter.

Notes

  • This tool wraps SerpApi and returns structured search results.