Files
crewAI/crewai_tools/tools/serpapi_tool
Greyson Lalonde e16606672a Squashed 'packages/tools/' content from commit 78317b9c
git-subtree-dir: packages/tools
git-subtree-split: 78317b9c127f18bd040c1d77e3c0840cdc9a5b38
2025-09-12 21:58:02 -04:00
..

SerpApi Tools

Description

SerpApi tools are built for searching information in the internet. It currently supports:

  • Google Search
  • Google Shopping

To successfully make use of SerpApi tools, you have to have SERPAPI_API_KEY set in the environment. To get the API key, register a free account at SerpApi.

Installation

To start using the SerpApi Tools, you must first install the crewai_tools package. This can be easily done with the following command:

pip install 'crewai[tools]'

Examples

The following example demonstrates how to initialize the tool

from crewai_tools import SerpApiGoogleSearchTool

tool = SerpApiGoogleSearchTool()

Google Shopping

from crewai_tools import SerpApiGoogleShoppingTool

tool = SerpApiGoogleShoppingTool()