Join our community at https://www.reddit.com/r/HotelByte/
parentDestinationId parametercountryCode parameter (ISO 3166-1 alpha-2 format, e.g., "US", "CN")parentDestinationId is ignored when countryCode is providedstandard (default): Basic destination metadata and hierarchy informationdetails: Includes coordinates and full hierarchical relationshipscurl --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
}'{
"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"
}
]
}
}