![Google Maps Scraper avatar](https://images.apifyusercontent.com/q5te4qyAwNwbpXuGme5mxDePlqcRWNdWK5JMYJ-KIho/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9ud3VhOUd1NVlyQURMN1pEai80UmpnTVhQdzdyNFo3WEFnYS1Hb29nbGVfTWFwc19TY3JhcGVyLnBuZw.webp)
Google Maps Scraper
Try for free
No credit card required
View all Actors![Google Maps Scraper](https://images.apifyusercontent.com/q5te4qyAwNwbpXuGme5mxDePlqcRWNdWK5JMYJ-KIho/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9ud3VhOUd1NVlyQURMN1pEai80UmpnTVhQdzdyNFo3WEFnYS1Hb29nbGVfTWFwc19TY3JhcGVyLnBuZw.webp)
![Google Maps Scraper](https://images.apifyusercontent.com/q5te4qyAwNwbpXuGme5mxDePlqcRWNdWK5JMYJ-KIho/rs:fill:92:92/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9ud3VhOUd1NVlyQURMN1pEai80UmpnTVhQdzdyNFo3WEFnYS1Hb29nbGVfTWFwc19TY3JhcGVyLnBuZw.webp)
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
1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8 "searchStringsArray": ["restaurant"],
9 "locationQuery": "New York, USA",
10 "maxCrawledPlacesPerSearch": 50,
11 "language": "en",
12 "maxImages": 1,
13 "maxReviews": 0,
14 "maxQuestions": 0,
15 "countryCode": "",
16 "allPlacesNoSearchAction": "",
17}
18
19# Run the Actor and wait for it to finish
20run = client.actor("compass/crawler-google-places").call(run_input=run_input)
21
22# Fetch and print Actor results from the run's dataset (if there are any)
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
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 9 hours ago
Categories