SerpApi Google Shopping Tool
SerpApiGoogleShoppingTool
Section titled “SerpApiGoogleShoppingTool”Description
Section titled “Description”Leverage SerpApiGoogleShoppingTool to query Google Shopping via SerpApi and retrieve product-oriented results.
Installation
Section titled “Installation”uv add crewai-tools[serpapi]Environment Variables
Section titled “Environment Variables”SERPAPI_API_KEY(required): API key for SerpApi. Create one at https://serpapi.com/ (free tier available).
Example
Section titled “Example”from crewai import Agent, Task, Crewfrom crewai_tools import SerpApiGoogleShoppingTool
tool = SerpApiGoogleShoppingTool()
agent = Agent( role="Shopping Researcher", goal="Find relevant products", backstory="Expert in product search", tools=[tool], verbose=True,)
task = Task( description="Search Google Shopping for 'wireless noise-canceling headphones'", expected_output="Top relevant products with titles and links", agent=agent,)
crew = Crew(agents=[agent], tasks=[task])result = crew.kickoff()- Set
SERPAPI_API_KEYin the environment. Create a key at https://serpapi.com/ - See also Google Web Search via SerpApi:
/tools/search-research/serpapi-googlesearchtool
Parameters
Section titled “Parameters”Run Parameters
Section titled “Run Parameters”search_query(str, required): Product search query.location(str, optional): Geographic location parameter.