OpenTable is an online restaurant-reservation service company founded on 2 July 1998 and is based in San Francisco, California. It provides online reservations for more than 60,000 restaurants around the world and seats over 1 billion diners per year.  Its home market consists of the United States but it has eventually expanded to include Australia, Canada, France, Germany, Japan, Mexico, and the United Kingdom.

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.opentable.com/r/hearth-restaurant-the-ritz-carlton-perth?corrid=67f366bc-c4fb-4245-9fc3-8110d0b504e3&avt=eyJ2IjoyLCJtIjoxLCJwIjowLCJzIjowLCJuIjowfQ&p=2&sd=2020-10-15T19%3A00%3A00”}’

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.opentable.com/r/hearth-restaurant-the-ritz-carlton-perth?corrid=67f366bc-c4fb-4245-9fc3-8110d0b504e3&avt=eyJ2IjoyLCJtIjoxLCJwIjowLCJzIjowLCJuIjowfQ&p=2&sd=2020-10-15T19%3A00%3A00″,
“dateFrom”: “2018-03-10”, *
“reviewLimit”: ”1″ **
}

* “dateFrom” is optional

** “reviewLimit” is optional

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

Parameter content type: application/json

Response

{
    “propertyName”: “Hearth Restaurant – The Ritz-Carlton, Perth”,
    “location”: null,
    “ratingValue”: “4.3”,
    “ratingCount”: “308”,
    “reviews”: [
        {
            “reviewId”: null,
            “customer”: {
                “username”: “GayeM”,
                “location”: “”,
                “level”: null
            },
            “title”: null,
            “rating”: “5”,
            “text”: “We had an amazing experience, loved the food and service. 
                          Can’t wait to go again.”,
            “reviewedOn”: “2021-01-30”,
            “photos”: null,
            “repliedTo”: null,
            “externalSource”: null,
            “replies”: null,
            “followUpReviews”: null,
            “comments”: null,
            “selfReview”: null,
            “commentsCount”: null,
            “reviewerPhoto”: null
        }
    ]
}