Hotels

有料
Verified
よって Api Dojo | 更新済み 4 days ago | Travel
人気

9.8 / 10

レイテンシー

2,303ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

properties/list: pagination problem

Rapid account: Ian Lipliavyi
ian.lipliavyi
3 years ago
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 years ago

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 years ago

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 years ago

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 years ago

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.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿