Located in Singapore, Trip.com is one of the world’s most popular travel agencies. Even though it was founded in 2017., it already has over 400 million users worldwide and is available in 19 different languages. It provides booking services for flights, hotels, trains, car rentals, airport transfers, tours and attraction tickets, and claims to offer more than 1.2 million hotels in 200 countries and regions, as well as over 2 million flight routes connecting more than 5,000 cities.

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.trip.com/hotels/mourea-hotel-detail-741089/ramada-resort-rotorua-marama/”}’

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.trip.com/hotels/mourea-hotel-detail-741089/ramada-resort-rotorua-marama/”,
“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”: “Ramada Resort by Wyndham Rotorua Marama”,
    “propertyId”: “741089”,
    “location”: “1420 Hamurana Road, Mourea, 3074, Bay of Plenty, New Zealand”,
    “ratingValue”: “3.9”,
    “url”: “https://www.trip.com/hotels/mourea-hotel-detail-741089/ramada-resort-rotorua-marama/”,
    “reviews”: [
        {
            “reviewId”: “402851593”,
            “customer”: {
                “username”: “JINBO”,
                “location”: “China”,
                “level”: null
            },
            “title”: “Very Good”,
            “rating”: “4.2”,
            “text”: “It is located more than ten kilometers in the city center, (…)”,
            “reviewedOn”: “2019-12-31 17:37:13”,
            “photos”: [
                {
                    “photoUrl”: null
                }
            ],
            “repliedTo”: null,ull,
            “timeOfTravel”: “2019-12-27 18:00:00”,
            “reviewUrl”: “https://www.trip.com/hotels/mourea-hotel-detail-741089/ramada-resort-rotorua-marama/”
        }
    ],
    “recommendationRating”: “83% Recommended”
}
Trip.com final