Wrapper around SerpAPI.

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

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

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>

Methods

  • Builds a URL for the SerpAPI request.

    Type Parameters

    • P extends UrlParameters

    Parameters

    • 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.

Generated using TypeDoc