Join our community at https://www.reddit.com/r/HotelByte/

HotelByte
HomepageWaitlist
HomepageWaitlist
Hotel Partners Roadmap
Submit issues
  1. Content
  • 1. Get started
    • Overview
    • Booking flow
    • Certification and Go Live
    • Frequently Asked Questions (FAQ)
  • 2. Guides
    • Quick start
    • Error handling
    • Rate limit
    • Certification cases
    • Test more scenarios
  • 3. API Reference
    • Authentication
      • Ticket
    • Content
      • Destinations
        POST
      • HotelStaticDetail
        POST
      • HotelsMetadata
        POST
    • Search
      • HotelList
      • HotelRates
    • Make bookings
      • CheckAvail
      • Book
    • Manage bookings
      • QueryOrders
      • Cancel
  • Schemas
    • Schemas
    • hotel.common.bff.Table
    • OrderHomeFunctionReq
    • TicketReq
    • TicketResp
    • DestinationInclude
    • DestinationExtra
    • Coordinates
    • CheckAvailReq
    • CheckAvailResp
    • HotelsMetadataListResp
    • HotelsMetadataReq
    • ComputedCancelPolicyItem
    • OrderHomeFunctionResp
    • OriginalRoomNaming
    • Rate
    • CancelResp
    • Tax
    • Holder
    • HotelOrder
    • OrderRoomRefundInfo
    • HotelListReq
    • HotelListResp
    • HotelListBasicInfo
    • BaseHeader
    • BookingHeader
    • ContentHeader
    • HotelMeta
    • DestinationType
    • Guest
    • DestinationsReq
    • DestinationsResp
    • OrderStatus
    • GuestPerRoom
    • RatePkgId
    • RoomRatePkg
    • HotelRatesReq
    • BookReq
    • HotelRatesResp
    • BookResp
    • CancelReq
    • QueryOrdersReq
    • HotelStaticDetailReq
    • QueryOrdersResp
    • HotelStaticDetailResp
  1. Content

Destinations

HotelByte OpenAPI - Test
https://api-test.hotelbyte.com
HotelByte OpenAPI - Test
https://api-test.hotelbyte.com
POST
https://api-test.hotelbyte.com
/api/search/destinations
ContentOpenapiSearch
Get destination information (standard or detailed) by destination ancestor ID or country code.
This endpoint provides hierarchical destination data for hotel booking applications. You can retrieve destinations by either specifying a parent destination ID or a country code.
Query Methods:
1.
By Parent Destination ID: Get all sub-destinations under a specific destination
Use parentDestinationId parameter
Returns immediate children of the specified destination
Useful for building location hierarchies (e.g., cities within a state)
2.
By Country Code: Get all destinations within a specific country
Use countryCode parameter (ISO 3166-1 alpha-2 format, e.g., "US", "CN")
Returns top-level destinations for the specified country
parentDestinationId is ignored when countryCode is provided
Response Detail Levels:
standard (default): Basic destination metadata and hierarchy information
details: Includes coordinates and full hierarchical relationships
Common Use Cases:
Building location selection dropdowns in booking forms
Implementing progressive location disclosure (country → state → city)
Geographic search autocomplete functionality
Performance Notes:
Response is cached for optimal performance
Large countries may return many destinations; consider pagination for UI

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200成功
application/json
OK
Body

🟠400请求有误
🟠401未认证
🟠403权限不足
🟠429请求过多
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-test.hotelbyte.com/api/search/destinations' \
--header 'Client-Request-Timestamp;' \
--header 'IP;' \
--header 'Language;' \
--header 'Request-Id;' \
--header 'Trace-Id;' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "countryCode": "AE",
    "parentDestinationId": "804028047",
    "include": "standard",
    "filterEmptyCities": true,
    "minHotelCount": 0
}'
Response Response Example
{
    "code": 0,
    "msg": "string",
    "data": {
        "destinations": [
            {
                "id": "string",
                "type": 0,
                "name": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "nameFull": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "countryCode": "string",
                "coordinates": {
                    "centerLat": 0,
                    "centerLng": 0,
                    "boundingPolygon": {
                        "type": "string",
                        "coordinates": [
                            {
                                "lat": 0,
                                "lng": 0
                            }
                        ]
                    }
                },
                "extra": {
                    "cityName": {
                        "en": "string",
                        "zh": "string",
                        "ar": "string"
                    },
                    "provinceName": {
                        "en": "string",
                        "zh": "string",
                        "ar": "string"
                    },
                    "continentName": {
                        "en": "string",
                        "zh": "string",
                        "ar": "string"
                    },
                    "hotelCount": 0
                },
                "countryName": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "destinationName": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "parentDestinationName": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "parentDestinationId": "string"
            }
        ]
    }
}
Previous
Ticket
Next
HotelStaticDetail
Built with