import { getLocations } from "https://deno.land/x/serpapi@0.0.3/src/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 });
// async/await const locations = await getLocations({ limit: 3 });
// callback getLocations({ limit: 3 }, console.log);
Parameters
optional
parameters: LocationsApiParams = [UNSUPPORTED]optional
callback: (locations: Locations) => void- query for a location