Hotels

GRATIS CON POSSIBILITÀ DI UPGRADE
Da Api Dojo | Aggiornamento 2 mesi fa | Travel
Popolarità

9.8 / 10

Latenza

3,545ms

Livello di servizio

100%

Torna a tutte le discussioni

properties/list: pagination problem

avatar
ian.lipliavyi
3 mesi fa
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

avatar
apidojo commented 3 mesi fa

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.

avatar
ian.lipliavyi commented 3 mesi fa

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

avatar
ian.lipliavyi commented 3 mesi fa

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

avatar
apidojo commented 3 mesi fa

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.

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti
Valutazione: 4.1 - Voti: 19