TripAdvisor, the world’s largest travel site, enables travelers to unleash the full potential of every trip. With over 570 million reviews and opinions covering the world’s largest selection of travel listings worldwide — covering 7.3 million accommodations, airlines, attractions, and restaurants — TripAdvisor provides travelers with the wisdom of the crowds to help them decide where to stay, how to fly, what to do and where to eat.

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.tripadvisor.com/Restaurant_Review-g28970-d13111239-Reviews-Bistro_Aracosia-Washington_DC_District_of_Columbia.html"}'

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.tripadvisor.com/Restaurant_Review-g28970-d13111239-Reviews-Bistro_Aracosia-Washington_DC_District_of_Columbia.html",
"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": "Bistro Aracosia, Washington DC",
    "location": "5100 MacArthur Blvd NW, Washington DC, DC 20016-3316",
    "ratingValue": "5.0",
    "ratingCount": "163",
    "reviews": [
        {
            "reviewId": "review_818468464",
            "customer": {
                "username": "mgnelu",
                "location": "",
                "level": ""
            },
            "title": "Another delicious meal",
            "rating": "5",
            "text": "This was my second visit to (...)",
            "reviewedOn": "2021-11-12",
            "photos": [],
            "repliedTo": true,
            "externalSource": null,
            "replies": [
                {
                    "repliedBy": "Aracosia Family, Owner at Bistro Aracosia",
                    "text": "Thank you for your kind (...)",
                    "replyDate": 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.tripadvisor.com.au/Attraction_Review-g499668-d23551439-Reviews-Longreach_Powerhouse_Historical_Museum-Longreach_Queensland.html"
}

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

Parameter content type: application/json

Response

{
"valid":true,
"title":" Tropic Heaven Hotel",
"address":"Saranchol Alley 10",
"phoneNumber":"555-5555",
"websiteURL":"tropicheavenpattaya.com",
"categories":"Hotel, Tourism, Restauran, Thailand"
}