Google Maps Scraper avatar
Google Maps Scraper
Try for free

No credit card required

View all Actors
Google Maps Scraper

Google Maps Scraper

compass/crawler-google-places
Try for free

No credit card required

Extract data from hundreds of Google Maps locations and businesses. Get Google Maps data including reviews, images, contact info, opening hours, location, popular times, prices & more. Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "searchStringsArray": [
8    "restaurant"
9  ],
10  "locationQuery": "New York, USA",
11  "maxCrawledPlacesPerSearch": 50,
12  "language": "en",
13  "maxImages": 1,
14  "maxReviews": 0,
15  "maxQuestions": 0,
16  "countryCode": "",
17  "allPlacesNoSearchAction": ""
18}
19EOF
20
21# Run the Actor using an HTTP API
22# See the full API reference at https://docs.apify.com/api/v2
23curl "https://api.apify.com/v2/acts/compass~crawler-google-places/runs?token=$API_TOKEN" \
24  -X POST \
25  -d @input.json \
26  -H 'Content-Type: application/json'
Developer
Maintained by Apify
Actor metrics
  • 5k monthly users
  • 283 stars
  • 97.8% runs succeeded
  • 3.3 days response time
  • Created in Nov 2018
  • Modified about 8 hours ago