Skip to main content
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.12/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