Google Maps Scraper avatar

Google Maps Scraper

Try for free

No credit card required

Go to Store
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.

Do you want to learn more about this Actor?

Get a demo
VC

How do i get the rank for results based on search?

Closed

vivacious_coral opened this issue
15 days ago

For example, i want to know which results appear when i search "burger" in the city Mississauga. How do i determine which location appears as #1, which location appears as #2.

This is like the tools BrightLocal, and LocalFalcon.

{ "city": "mississauga", "countryCode": "ca", "deeperCityScrape": false, "includeWebResults": false, "language": "en", "locationQuery": "mississauga, ontario", "maxCrawledPlacesPerSearch": 10, "maxImages": 1, "maxQuestions": 0, "maxReviews": 1000, "onlyDataFromSearchPage": false, "scrapeDirectories": false, "scrapeImageAuthors": false, "scrapeReviewsPersonalData": true, "searchStringsArray": [ "burgers" ], "skipClosedPlaces": false, "reviewsSort": "newest", "reviewsFilterString": "", "searchMatching": "all", "placeMinimumStars": "", "website": "allPlaces", "allPlacesNoSearchAction": "" }

ondrejklinovsky avatar

Hey,

thanks for the question. We store place's rank in rank property, but the tricky part is that the Scraper splits your search area (Mississauga in your case) into multiple smaller areas and searches each area separately. This will give you many places with rank = 1 (because they all appeared as #1).

What you could do is to use the following input:

1{
2  "maxCrawledPlacesPerSearch": 20,
3  "searchStringsArray": [
4    "burger Mississauga"
5  ]
6}

Notice that none of the location parameters (locationQuery, city, ...) is defined, so the Scraper won't split the area. It will just put your search string into a single URL: https://www.google.com/maps/search/burger+Mississauga and scrape that. This way you should be able to get first 20 search results in the city.

Developer
Maintained by Apify

Actor Metrics

  • 3.4k monthly users

  • 605 stars

  • 98% runs succeeded

  • 5.8 days response time

  • Created in Nov 2018

  • Modified 4 hours ago