Agoda is a famous travel agency/metasearch engine from Singapore. It enables people to look up hotels, vacation rentals, flights, and airport transfers. Founded in 2005, it quickly grew to employ more than 4000 people from 30 countries. 

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.agoda.com/ramada-by-wyndham-bali-sunset-road-kuta/hotel/bali-id.html?finalPriceView=1&isShowMobileAppPrice=false&cid=1844104&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2021-10-6&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=EUR&isFreeOccSearch=false&isCityHaveAsq=false&los=2&searchrequestid=8da88a6e-daa6-4892-be6c-435b08385323"}'

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.agoda.com/ramada-by-wyndham-bali-sunset-road-kuta/hotel/bali-id.html?finalPriceView=1&isShowMobileAppPrice=false&cid=1844104&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2021-10-6&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=EUR&isFreeOccSearch=false&isCityHaveAsq=false&los=2&searchrequestid=8da88a6e-daa6-4892-be6c-435b08385323",
"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": "Agoda",
"propertyName": "Ramada by Wyndham Bali Sunset Road Kuta",
"url": "https://www.agoda.com/ramada-by-wyndham-bali-sunset-road-kuta/hotel/bali-id.html?finalPriceView=1&isShowMobileAppPrice=false&cid=1844104&numberOfBedrooms=&familyMode=false&adults=2&children=0&rooms=1&maxRooms=0&checkIn=2021-10-6&isCalendarCallout=false&childAges=&numberOfGuest=0&missingChildAges=false&travellerType=1&showReviewSubmissionEntry=false&currencyCode=EUR&isFreeOccSearch=false&isCityHaveAsq=false&los=2&searchrequestid=8da88a6e-daa6-4892-be6c-435b08385323",
"location": "Jl. Sunset Road No. 9 Kuta, Kuta, Bali, Indonesia, 80361",
"rating": 7.6,
"service": 7.5,
"rooms": 8.0,
"ratingCount": "661",
"ratingCleanliness": 7.3,
"ratingLocation": 7.9,
"serviceStaffRating": 7.5,
"facilitiesHotelConditionRating": 7.3,
"ratingComfort": 8.0,
"valueForMoneyRating": 7.9,
"reviews": [
{
"reviewId": "465434402",
"internalReviewId": null,
"customer": {
"username": "deddy",
"location": "Indonesia",
},
"title": "Great hotel",
"rating": "10.0",
"text": " Nice hotel and value for group stay",
"reviewedOn": "22.11.2021",
"timeOfTravel": "11.2021",
"scanTimestamp": null}]}