Hotels

PAID
Verified
By Api Dojo | Updated 12日前 | Travel
Popularity

9.8 / 10

Latency

2,270ms

Service Level

100%

Health Check

N/A

Back to All Discussions

properties/list: pagination problem

Rapid account: Ian Lipliavyi
Hello,

These queries:

https://hotels4.p.rapidapi.com/properties/list?currency=CAD&locale=ru&sortOrder=PRICE&destinationId=1709894&pageNumber=1&checkIn=2021-10-18&checkOut=2021-10-24&pageSize=25&adults1=1&priceMin=50&priceMax=200

https://hotels4.p.rapidapi.com/properties/list?currency=CAD&locale=ru&sortOrder=PRICE&destinationId=1709894&pageNumber=56&checkIn=2021-10-18&checkOut=2021-10-24&pageSize=25&adults1=1&priceMin=50&priceMax=200

https://hotels4.p.rapidapi.com/properties/list?currency=CAD&locale=ru&sortOrder=PRICE&destinationId=1709894&pageNumber=57&checkIn=2021-10-18&checkOut=2021-10-24&pageSize=25&adults1=1&priceMin=50&priceMax=200

return the same hotel list. It worked a while ago for sure, but now for any pageNumber we get the same result.

Could you take a look what we are doing wrong?

Regards,
Ian Lipliavyi

Rapid account: Apidojo
apidojo Commented 3年前

Hello,

It seems like the update has changed the response, there is no thumbnail image returned. I don’t know why hotels.com did this. You need to use …/properties/get-hotel-photos to get photos instead.

Regards.

Rapid account: Ian Lipliavyi
ian.lipliavyi Commented 3年前

Hello,

One more question is possible.

A while ago “properties/list” had a field ThumbnailUrl for each hotel, but now it’s disappeared.

Could you check, probably it can be restored?

Regards,
Ian Lipliavyi

Rapid account: Ian Lipliavyi
ian.lipliavyi Commented 3年前

Thank you for help,

I found out the problem is - a destination type you get from “locations/search” should have type “CITY”. Probably “AIRPORT” I did not test it yet. In this case everything works fine.

Regards,
Ian Lipliavyi

Rapid account: Apidojo
apidojo Commented 3年前

Hello,

Thank you for your information. Our IT team confirmed that there was a small update made by Hotels.com causing the issue. The team released a hot fix for it, you may test again now.

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments