I am trying to get hotel specific details using the following api:
/shopping/hotel-offers/by-hotel
how do I figure out the hotelId parameter? For example I want to use the aforementioned api, to get information about Pendry San Diego hotel, what would be the hotelId for this hotel.
Appreciate any help.
The Hotel Search API comes with 3 different endpoints:
To get the hotel id, you need to use the first endpoint to find the list of hotels for a given location, then you can use this hotel id with the second endpoint.
As of today, you cannot directly search by a hotel name to get a hotel id. We have this in our backlog but not a specific delivery date yet.
FYI, I searched for hotels in San Diego and retrieved the hotel with the name
Pendry San Diego
: