Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/serpapi/mod.ts>getLocations

Scrape and parse search engine results using SerpApi.
Go to Latest
function getLocations
import { getLocations } from "https://deno.land/x/serpapi@0.0.13/mod.ts";

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

Examples

// async/await const locations = await getLocations({ limit: 3 });

// callback getLocations({ limit: 3 }, console.log);

Parameters

optional
parameters: LocationsApiParameters = [UNSUPPORTED]
optional
callback: (locations: Locations) => void
  • query for a location