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@2.0.0/mod.ts";

Get supported locations. Does not require an API key.

Refer to https://serpapi.com/locations-api for response examples.

Examples

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

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

Parameters

optional
parameters: LocationsApiParameters = [UNSUPPORTED]
optional
callback: (locations: any) => void

Query for a location.