Actor picture

Foursquare Reviews Scraper

lukaskrivka/foursquare-reviews

Scrape a massive number of reviews in a few seconds for any number of locations and categories.

Free trial for 30 days. Then $1/month.
Author's avatarLuk谩拧 K艡ivka
  • Modified
  • Users27
  • Runs666
Actor picture

Foursquare Reviews Scraper

Free trial for 30 days. Then $1/month.

Super fast and reliable scraper of Foursquare!

For each place it extracts:

  • Title, url
  • Parsed address
  • Reviews
  • Photos
  • Price range

Input

Input can be provided either through the editor on the Apify platform or as a JSON object.

The only mandatory field to provide is queries which is an array of query objects.

Example input looks like this:

{
     "queries": [
        {
            "location": "Prague",
            "category": "food"
        },
        {
            "location": "Berlin",
            "category": "bar"
        }
    ],
    "maxReviews": 30
}

You should have access to Apify proxy to use this scraper.

Output

For each query, you get back the top 30 places. For each place, you can get all reviews or limit them with maxReviews input parameter.

Output of each place look like this. The real output has much more reviews and photos. Real names have been changed for copyright reasons.

{
  "url": "https://foursquare.com/v/dussmann-english-bookshop/562a9474498e20b9ac65c6fe",
  "title": "Dussmann English Bookshop",
  "averageRating": 9.4,
  "numberOfRatings": 196,
  "address": {
    "street": "Friedrichstr. 90",
    "city": "Berlin",
    "postalCode": "10117",
    "country": "Germany"
  },
  "priceRange": "",
  "reviews": [
    {
      "username": "Name Surname",
      "usernameUrl": "https://foursquare.com/user/658ewre7",
      "date": "November 2, 2018",
      "text": "Love love love this place!! You can also go to the special counter at the english book sections and order the book you want!!",
      "imageSrc": "https://fastly.4sqi.net/img/general/558x200/65857477_adOnwtD3LdoRuMWCqWuybRum2gdgdfgsthpz0aEaKTw.jpg",
      "keywords": [
        "book",
        "book"
      ]
    },
    {
      "username": "Name Surname",
      "usernameUrl": "https://foursquare.com/user/454wrwr503",
      "date": "September 12, 2017",
      "text": "A life saver for a Brit abroad, kind of pricey though, but if you don't have to time to wait for online delivery it is worth it",
      "keywords": [
        "pricey",
        "delivery"
      ]
    },
    "photos": [
    "https://fastly.4sqi.net/img/general/200x200/534739882_qlP8Z1IdwgdIzmQEu-ZH1ENrBcQwTY8fGvPEeTiPHZQ.jpg",
    "https://fastly.4sqi.net/img/general/200x200/123962062_8lj2xiHb-HjP1qs7KBJ5C6BfiK78q4NDd4uQUZ8Zk6s.jpg",
  ]