How do I figure out hotelId for any hotel?

478 Views Asked by At

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.

1

There are 1 best solutions below

3
On

The Hotel Search API comes with 3 different endpoints:

  1. Get the list of hotels for a specific location.
  2. Get the hotel and rooms information for a specific hotel (by its hotel id).
  3. Confirm the price and availability before booking.

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:

"hotelId": "MNSANPSH",
"name": "Pendry San Diego LVX"