Wrapper around SerpAPI.

To use, you should have the serpapi package installed and the SERPAPI_API_KEY environment variable set.

Hierarchy (view full)



description: string = "a search engine. useful for when you need to answer questions about current events. input should be a search query."
name: string = "search"
baseUrl: string
key: string
params: Partial<SerpAPIParameters>


  • Builds a URL for the SerpAPI request.

    Type Parameters

    • P extends UrlParameters


    • path: string

      The path for the request.

    • parameters: P

      The parameters for the request.

    • baseUrl: string

      The base URL for the request.

    Returns string

    A string representing the built URL.