I encountered a similar issue earlier while working with the Booking.com API through RapidAPI. In my project, I had to first identify the endpoint that returns a list of hotels where the unique ID is included in each hotel’s metadata. Once I had the list, I looked for the unique identifier field and then used that ID in subsequent calls to fetch details like reviews. It required careful reading of the documentation as different endpoints sometimes use slightly different parameter names. Testing in sandbox mode was incredibly useful to ensure consistency before moving to production.
i eventually used the search endpoint which listed hotels with all details. then i scrapped the id from the response. be sure to check the api docs for any differences in parameter names, worked good for me in test mode