Google Maps Scraper
- compass/crawler-google-places
- Modified
- Users 34.5k
- Runs 3.6M
- Created by
Compass
Extract data from hundreds of Google Maps businesses and locations in seconds. Get Google Maps data including reviews, images, opening hours, location, popular times & more. Go beyond the limits of the official Google Places API. Download data with Google Maps extractor in JSON, CSV, Excel and more.
Optional
array
Type what you want to search for as you would write it into the Google Maps search bar, e.g. restaurant
or pet shelter
.
Putting location directly into search terms, e.g. restaurant Pittsburgh
, is not recommended because you will only get max 120 results per search (Google's scrolling limit on a single search) but it can be done for speed. You can also use direct place IDs here in the format place_id:ChIJ8_JBApXMDUcRDzXcYUPTGUY
Optional
string
Free text location definition. If you use Zip codes, you must use them with country name (not city name!). Use OpenStreeMap webapp for visual validation of the exact covered area. You can always fallback to Geolocation section where you can select country, state, county, city and postalCode. Keep in mind that Locatiion has always preference of these.
Optional
boolean
The results will only show data from the search page, but no other details. This speeds up the scrape significantly. For each place it extracts isAdvertisement
, title
, placeId
, location
, address
, neighborhood
, street
, city
, postalCode
, state
, countryCode
, categories
, url
Optional
integer
This is the maximum number of reviews per place. If you fill in '0' or leave the field empty, no reviews will be scraped. To extract all reviews, type '99999' into the field. Each output place item can contain maximum 5000 reviews so in case more reviews are extracted, a duplicate place is stored with the next 5000 reviews and so on. Enabling this feature might slow the search down.
Optional
integer
You don't need to set this parameter. A good value is chosen automatically based on the chosen location, see readme for more info. Changing the zoom manually may cause the cost to vary significantly.
🗺 Country (combine with other geolocation parameters or the scraper will scan the whole country!)
countryCodeOptional
Enum
Set the country where the search should be carried out, e.g., United States
. Warning: if used without city or other geolocation parameters, the scraper will scan the whole country!
Currently, the scraper doesn't work well for full-country searching of sparsely populated countries like the United States or Russia. For these, search city by city or focus on populated states.
Optional
string
Set the postal code of the area where the search should be carried out, e.g., 10001
. Select a country as well to ensure the correct postal code is used.
Warning: you can only input one postal code at a time.
Optional
array
Copy a Google Maps URL and paste it here. Leave empty if you have already filled the Search term field. The only valid format for URLs contains either /maps/search
or /maps/place
, e.g., https://www.google.com/maps/search/falafel+new+york/..