GET
Hotel Search API
Search for available hotels in any destination with flexible date and guest configurations.
Overview
Availability Search
Search for hotels with real-time availability and pricing information based on dates and guest requirements.
Need a Destination ID?
Don't know the dest_id for your location? Use the Destinations Lookup endpoint to convert any location name (e.g., "Barcelona", "Paris") into a Booking.com destination ID.
The Hotel Search endpoint allows you to search for available hotels in any destination with specific check-in/check-out dates, number of guests, and rooms. Returns real-time availability and pricing data.
Endpoint URL
GET https://api.stayapi.com/v1/booking/search
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| dest_id | string | Required | Destination ID from Booking.com (e.g., "-3233180" for Phuket) |
| dest_type | string | Optional | Destination type (default: "CITY") |
| checkin | string | Optional | Check-in date in YYYY-MM-DD format |
| checkout | string | Optional | Check-out date in YYYY-MM-DD format |
| adults | integer | Optional | Number of adults (default: 2) |
| rooms | integer | Optional | Number of rooms (default: 1) |
| children | integer | Optional | Number of children (default: 0) |
| children_ages | string | Optional | Comma-separated ages of children |
| rows_per_page | integer | Optional | Results per page (default: 25, max: 100) |
| offset | integer | Optional | Starting offset for pagination (default: 0) |
| language | string | Optional | Language preference (default: "en-us") |
| currency | string | Optional | Currency code (default: "USD") |
Request
Response