Actor picture

Google Maps Scraper

drobnikj/crawler-google-places

Extend the official Google Maps API and scrape reviews, photos, and popular times from Google Places. Google popular times API and more. Extract data from Google My Business. Download your data as HTML table, JSON, CSV, Excel, XML, and RSS feed.

Author's avatarJakub Drobník
  • Modified
  • Used by7,375 users
  • Used584,281 times
Actor picture
Google Maps Scraper

Start URLs

startUrls

Optional

array

List of URLs with search results, that should be scraped.

Search Terms

searchStringsArray

Optional

array

Array of strings, that will be searched on Google maps. 'Pubs near Prague'. If you are setting a specific location later, do not include it into the search string

Max crawled places

maxCrawledPlaces

Optional

integer

Use to limit places you want to get from crawl one search. If you fill 0 or nothing all places will be scrape

Language

language

Optional

string

Force showing results in a predefined language

Options:

"en", "af", "az", "id", "ms", "bs", "ca", "cs", "da", "de", "et", "es", "es-419", "eu", "fil", "fr", "gl", "hr", "zu", "is", "it", "sw", "lv", "lt", "hu", "nl", "no", "uz", "pl", "pt-BR", "pt-PT", "ro", "sq", "sk", "sl", "fi", "sv", "vi", "tr", "el", "bg", "ky", "kk", "mk", "mn", "ru", "sr", "uk", "ka", "hy", "iw", "ur", "ar", "fa", "am", "ne", "hi", "mr", "bn", "pa", "gu", "ta", "te", "kn", "ml", "si", "th", "lo", "my", "km", "ko", "ja", "zh-CN", "zh-TW"

Max reviews (Slow)

maxReviews

Optional

integer

Max number of reviews per place to scrape. If you fill 0 or nothing, no reviews will be scraped. For all reviews, just put 99999

Max Images (Slow for more than 1)

maxImages

Optional

integer

Max number of images per place to scrape. If you fill 0 or nothing, no images will be scraped. For all images, just put 99999

Include popular times

includeHistogram

Optional

boolean

If checked the crawler scrapes popular times for all places. You can speed up crawling if you disable this.

Include opening hours

includeOpeningHours

Optional

boolean

If checked the crawler scrapes opening hours for all places. You can speed up crawling if you disable this.

Include people also search

includePeopleAlsoSearch

Optional

boolean

If checked the crawler scrape "people also search" for all places. You can speed up crawling if you disable this.

Additional Place Info

additionalInfo

Optional

boolean

Export additional info: Service Options, Highlights, Offerings,...

Sort reviews by

reviewsSort

Optional

string

Sorts reviews before scraping them.

Options:

"mostRelevant", "newest", "highestRanking", "lowestRanking"

Reviews translation

reviewsTranslation

Optional

string

Google automatically adds translated text to the original one. You can adjust the behavior here.

Options:

"originalAndTranslated", "onlyOriginal", "onlyTranslated"

Export Place Urls Only (Skips place details)

exportPlaceUrls

Optional

boolean

Scraper will return only places URLs without details.

Country

country

Optional

string

Set a country where the search should be performed - e.g. 'USA'. For more accurate search, set lat and lng.

State

state

Optional

string

Set a state where the search should be performed - e.g. 'Massachusetts', 'England', 'Berlin', etc... For more accurate search, set lat and lng.

City

city

Optional

string

Set a city where the search should be performed - e.g. 'Pittsfield'. For more accurate search, set lat and lng.

Postal code

postalCode

Optional

string

Set a postal code where the search should be performed - e.g. 10001. Select a country as well to ensure correct postal code is used. For more accurate search, set lat and lng.

Viewport point latitude

lat

Optional

string

Use it with combination with longitude and zoom to set up viewport to search on. Has preference over country/state/city.

Viewport point longitude

lng

Optional

string

Use it with combination with latitude and zoom to set up viewport to search on. Has preference over country/state/city.

Viewport zoom level

zoom

Optional

integer

Use it with combination with point longitude and latitude to set up viewport to search on. The higher number, the close you are to the point. You have the whole world on the map with zoom level 1.

Max automatic zoom out

maxAutomaticZoomOut

Optional

integer

Parameter to stop searching once Google zooms out too far. It counts how far it zoomed out compared to the first page. Keep in mind that `zoom: 1` is the whole world and `zoom: 21` is a tiny street. So usually you want `maxAutomaticZoomOut` to be between `0` and `5`. Also, keep in mind that Google zooms a bit differently in each run.

Manual polygon

polygon

Optional

object

Manual polygon for searching.

Proxy configuration

proxyConfig

Required

object

Choose your proxy, you need to use Apify proxy or custom proxies.

Max concurrency

maxConcurrency

Optional

integer

Maximum number of pages that will be processed in parallel.

Max page retries

maxPageRetries

Optional

integer

Maximum number of retries when page scraping fails.

Page load timeout seconds

pageLoadTimeoutSec

Optional

integer

Max time that the page can be loading

Max opened pages per browser

maxPagesPerBrowser

Optional

integer

How many pages can be opened at once for each browser. Having more pages in one browser is faster but can lead to increased blocking.

Use Chrome

useChrome

Optional

boolean

Uses full Chrome browser instead of Chromium. Be careful, it is not stable on some versions!

Debug log

debug

Optional

boolean

Debug messages will be included in the log.

Use stealth

useStealth

Optional

boolean

Enable using stealth if you're not using Chrome

Reviewer name

scrapeReviewerName

Optional

boolean

Extract Reviewer name

Reviewer ID

scrapeReviewerId

Optional

boolean

Extract Reviewer ID

Reviewer URL

scrapeReviewerUrl

Optional

boolean

Extract Reviewer URL

Review ID

scrapeReviewId

Optional

boolean

Extract Review ID

Review URL

scrapeReviewUrl

Optional

boolean

Extract Review URL

Response from owner

scrapeResponseFromOwnerText

Optional

boolean

Extract Response from owner