Expedia is an American, Seattle-based travel agency. It launched 20 years ago. It now has a website and a mobile app and enables users to book airline tickets, hotel reservations, car rentals, cruise ships, and vacation packages. Interestingly enough, it even accepts bitcoins!

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.expedia.com/Rotorua-Hotels-Ramada-Resort-By-Wyndham-Rotorua-Marama.h3512184.Hotel-Information”}’

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.expedia.com/Rotorua-Hotels-Ramada-Resort-By-Wyndham-Rotorua-Marama.h3512184.Hotel-Information”,
“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

{
    “platform”: “Expedia”,
    “propertyName”: null,
    “url”: “https://www.expedia.com/Rotorua-Hotels-Ramada-Resort-By-Wyndham-Rotorua-Marama.h3512184.Hotel-Information”,
    “location”: null,
    “rating”: “4.4”,
    “propertyId”: null,
    “reviews”: [
        {
            “reviewId”: “60f51f20005c8e0001fb9738”,
            “internalReviewId”: null,
            “customer”: {
                “username”: “Verified traveler”,
                “location”: null,
                “level”: null
            },
            “title”: “Excellent”,
            “rating”: “5”,
            “text”: “Great stay. Electric blankets and heaters made unit cosy. (…).”,
            “dislike”: null,
            “like”: “Liked: Cleanliness, amenities, property conditions & facilities”,
            “reviewedOn”: “Jul 19, 2021”,
            “timeOfTravel”: “Jul 2021”,
            “scanTimestamp”: null,
            “reviewUrl”: null,
            “photos”: [
                {
                    “photoUrl”: null
                }
            ]
        }
    ],
}
Expedia final