API Reference
Enumerations
Enum types
- ShoppingSearchEngine
-
Product indexes supported by
shopping_search(). - WebSearchEngine
-
General web indexes supported by
web_search(). - SearchResultFormat
-
Select the serialization returned by SerpApi and the tool.
- SearchResultMode
-
Control how much of a SerpApi response is returned to the agent.
- TravelClass
-
Cabin class shared by flight and travel-explore tools.
Exceptions
Exception classes
- SerpApiSearchError
-
A sanitized failure raised while executing a search.
Functions
Public functions
- images_search()
-
Create a Google Images tool for image URLs and metadata.
- maps_search()
-
Create a Google Maps search-mode tool for places and businesses.
- news_search()
-
Create a Google News query-mode tool for current articles and stories.
- shopping_search()
-
Create a multi-marketplace product search tool.
- videos_search()
-
Create a YouTube tool for videos, channels, and playlists.
- web_search()
-
Create a general-web search tool.
- flights_search()
-
Create a Google Flights tool for one-way and round-trip routes.
- hotels_search()
-
Create a Google Hotels tool with explicit stay dates.
- travel_explore_search()
-
Create a Google Travel Explore destination-discovery tool.