Skip to main content
Module

x/serpapi/mod.ts

Scrape and parse search engine results using SerpApi.
Go to Latest
import * as serpapi from "https://deno.land/x/serpapi@1.1.1/mod.ts";

Functions

Get account information of an API key. https://serpapi.com/account-api

Get a HTML response based on search parameters.

  • Accepts an optional callback.
  • Responds with a JSON string if the search request hasn't completed.

Get a HTML response given a search ID.

  • This search ID can be obtained from the search_metadata.id key in the response.
  • Typically used together with the async parameter.
  • Accepts an optional callback.
  • Responds with a JSON if the search request hasn't completed.

Get a JSON response based on search parameters.

  • Accepts an optional callback.
  • Get the next page of results by calling the .next() method on the returned response object.

Get a JSON response given a search ID.

  • This search ID can be obtained from the search_metadata.id key in the response.
  • Typically used together with the async parameter.
  • Accepts an optional callback.

Get supported locations. Does not require an API key. https://serpapi.com/locations-api

Type Aliases