Google Maps Scraper API Javascript integration
Install dependency
npm i webcrawlerapi-js
How to get an access key?
Read Docs Access Key section to obtain a key.
Usage
import webcrawlerapi from \"webcrawlerapi-js\";
async function main() {
const client = new webcrawlerapi.WebcrawlerClient(
\"YOUR API KEY HERE\"
)
const response = await client.scrape({
input: {
"keyword": "pizza",
"coordinates": "52.3715124144062,4.900929945922074",
"zoom": "17",
},
crawler_id: "webcrawler/google-maps",
})
console.log(response)
}
main().catch(console.error);