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/melbourne-hotel-detail-2199772/wyndham-hotel-melbourne/"}'

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/melbourne-hotel-detail-2199772/wyndham-hotel-melbourne/",
"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": "",
    "propertyId": "2199772",
    "location": "",
    "ratingValue": "4.2",
    "ratingCount": "13",
    "ratingLocation": null,
    "ratingCleanliness": null,
    "serviceStaffRating": null,
    "platform": "Trip",
    "url": "https://www.trip.com/hotels/melbourne-hotel-detail-2199772/wyndham-hotel-melbourne/",
    "reviews": [
        {
            "reviewId": "477180765",
            "customer": {
                "username": "Guest User",
                "location": null,
                "level": null
            },
            "title": "",
            "rating": "2.5",
            "text": "After Travelling for work for over (...) ",
            "reviewedOn": "2021-01-06 11:10:48",
            "photos": [
                {
                    "photoUrl": null
                }
            ],
            "repliedTo": null,
            "externalSource": null,
            "replies": null,
            "comments": null,
            "selfReview": null,
            "commentsCount": null,
            "reviewerPhoto": null,
            "timeOfTravel": "2020-12-15 23:59:00",
            "reviewUrl": "https://www.trip.com/hotels/melbourne-hotel-detail-2199772/wyndham-hotel-melbourne/"
        }
    ],
    "valueForMoneyRating": null,
    "wifiRating": null,
    "recommendationRating": "Clean and tidy 92% Recommended",
    "facilitiesHotelConditionRating": null,
    "email": null,
    "website": null,
    "phone": null
}
Trip.com final