List hotels
Retrieves a list of hotels near a location.
Use case
This endpoint can be used on the back-end by your application to retrieve a list of the hotels near a particular location (please limit your requests to 250 hotels at a time). It supports geographic coordinates, hotel brand keyword, city or code from the destination_lookup endpoint as the destination. It supports the master hotel chain code from the get_hotel_chains_list endpoint for chains. The response contains the location and basic hotel information, including hotel chain, images, distance, neighborhood, sort order, hotel property and room amenity codes.
What’s next?
The list of hotel IDs in the response can be used to pre-populate the request of the get_availability endpoint to get hotel rates and availability.
Path parameters
Headers
Request signature for authentication. Format: Signature YOUR_SIGNATURE. Calculated using HMAC-SHA256 with your secret key.
Query parameters
Your public API key. Example: api_key=testkey.
The UNIX (UTC) timestamp created by your application for this request (in seconds). Must be within 2.5 minutes of the current time.
The language preference of your user. Valid values: en_US, fr_FR, de_DE, es_ES, it_IT, pt_PT, ja_JP, ko_KR. Default is en_US.
The user agent (device, application or browser) of your user. Allows retrieval of mobile rates and discounts from some providers. Must be properly encoded. Max 32 characters. Required to get discounted mobile rates.
Configuration ID for proper company settings. Obtain via the get_configurations endpoint.
The booking channel. Valid values include: aft, obt, web.
The search destination. Supports geographic coordinates, hotel brand keyword, city or code from the destination_lookup endpoint. Must be percent-encoded.
Filter results to specific hotel chains using the master chain code from get_hotel_chains_list.
The check-in date for the hotel search. Format: YYYY-MM-DD.
Sort order for results. Valid values: name, -preference, distance, price.
Unit for search_radius. Valid values: KM (kilometers), MI (miles).
Comma-separated star ratings to filter by. Example: 4,4.5,5.
