Hotels.com is a popular website for booking hotel rooms, either by telephone or online. The company’s inventory includes hotels and B&Bs, and some condos, and other types of commercial lodging. It has 85 websites in 34 languages and lists over 325,000 hotels in approximately 19,000 locations. Hotels.com was established in 1991 as the Hotel Reservations Network.

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://au.hotels.com/ho525928/ramada-resort-by-wyndham-ballarat-ballarat-australia/”}’

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://au.hotels.com/ho525928/ramada-resort-by-wyndham-ballarat-ballarat-australia/”,
“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”: “Club Wyndham Ballarat”,
“propertyId”: null,
“location”: “220 Grant Street, Ballarat, 3356, VIC, Australia”,
“ratingValue”: 4.5,
“ratingCount”: “2”,
“ratingLocation”: null,
“ratingCleanliness”: null,
“ratingRooms”: null,
“value”: null,
“platform”: “Hotels”,
“url”: “https://au.hotels.com/ho525928/ramada-resort-by-wyndham-ballarat-ballarat-australia/”,
“reviews”: [
{
“reviewId”: null,
“customer”: {
“username”: “Verified Lastminute guest review”,
“location”: null,
“level”: null
},
“title”: “Exceptional”,
“rating”: “5.0”,
“text”: “Beautiful place to stay we will be back”,
“reviewUrl”: “https://au.hotels.com/ho525928/ramada-resort-by-wyndham-ballarat-ballarat-australia/”,
“timeOfTravel”: “Jul. 31, 2021”,
“reviewedOn”: “Jul. 31, 2021”
}
]
}

Hotels_review_jla_final