Since its founding in 2009, Foursquare rose to prominence fairly quickly. It became mostly known for its mobile app, Foursquare City Guide, which popularized the concept of real-time location-sharing and checking-in. The company now has more than 400 employees and New York City headquarters.

Submitting the API request

This is sample CURL request you can use to test JustLikeAPI features.

Please make sure to replace:
YOUR_API_KEY with the one you received from our support team
PAGE_SPECIFIC_URL – with the endpoint of the method you’re trying to invoke
JSON payload – with the contents of your request (the sample payload for each request is given below)

curl -X POST https://api.justlikeapi.io/reviews/get -H ‘authorization: Bearer YOUR_API_KEY’ -H ‘cache-control: no-cache’ -H ‘content-type: application/json’ -d ‘{ “propertyUrl”: “https://www.foursquare.com/v/adelaide-central-market/4b4566d4f964a520140c26e3”}’

Read operations

Get method will pull in reviews for platform of your choice. Reviews will be ordered by date and can include information from the code example bellow:

Request

{
“propertyUrl”:”https://www.foursquare.com/v/adelaide-central-market/4b4566d4f964a520140c26e3″,
“dateFrom”:”2018-03-10″ *
“reviewLimit”:”1″ **
}

*  “dateFrom” is optional

** “reviewLimit” is also optional (retrieves a specified number of reviews)

Base URL : https://justlikeapi.io/reviews/get

Parameter content type: application/json

Response

{
    “propertyName”: “Adelaide Central Market”,
    “location”: “44-60 Gouger St Adelaide SA 5000 Australia”,
    “ratingValue”: “4.55”,
    “ratingCount”: “61”,
    “reviews”: [
        {
            “reviewId”: “4efd57626da1cd035679b035”,
            “customer”: {
                “username”: “Paul Blazey”,
                “location”: “”,
                “level”: null
            },
            “title”: null,
            “rating”: null,
            “text”: “great place for a breakfast and morning (…)”,
            “reviewedOn”: “December 30, 2011”,
            “photos”: [],
            “repliedTo”: null,
            “externalSource”: null,
            “replies”: null,
            “followUpReviews”: null,
            “comments”: null,
            “selfReview”: null,
            “commentsCount”: null,
            “reviewerPhoto”: null
        }
]
}

Verify method will return propertyURL. This would be general information of that property. Bellow is a code example of request and response for Verify method:

Request

{
“propertyUrl”:”https://www.foursquare.com/v/adelaide-central-market/4b4566d4f964a520140c26e3″
}

Base URL : https://justlikeapi.io/reviews/verify

Parameter content type: application/json

Response

{
    “error”: false,
    “propertyUrl”: “https://www.foursquare.com/v/adelaide-central-market/4b4566d4f964a520140c26e3”,
    “businessName”: “Adelaide Central Market”,
    “pageID”: “”,
    “fullAddress”: “44-60 Gouger St Adelaide SA 5000 Australia”,
    “telephone”: “+61 8 8231 5650”,
    “websiteURL”: “adelaidecentralmarket.com.au”,
    “categories”: “”,
    “ratingValue”: “4.55”,
    “ratingCount”: “61”,
    “likes”: “”,
    “follows”: “”,
    “checkIns”: “”
}