Destinations Catalog
The destinations endpoint provides access to destination catalog data including cities, regions, airports, and their hierarchical relationships.
Endpoint
POST /content/hotels/v1/destinations
Use Cases
Get Destination Details
{
"query": {
"destinationCodes": ["BCN"]
}
}
List Destinations
{
"query": {
"maxSize": 100
}
}
Response Structure
{
"destinations": {
"destinations": [
{
"code": "BCN",
"name": "Barcelona",
"type": "city",
"location": {
"city": "Barcelona",
"countryCode": "ES",
"latitude": 41.3851,
"longitude": 2.1734
},
"parent": "ES",
"children": ["BCN-AIRPORT"],
"texts": [
{
"text": "Barcelona is a vibrant city in Catalonia",
"languageCode": "en"
}
]
}
],
"count": 1,
"token": null
}
}
Key Fields
code- Destination code (use in search)name- Destination nametype- Destination type (city, region, airport, etc.)location- Geographic locationparent- Parent destination codechildren- Child destination codestexts- Multi-language descriptions
Destination Hierarchy
Destinations form a hierarchy:
Country (ES)
└── Region (Catalonia)
└── City (BCN)
└── Airport (BCN-AIRPORT)
Use this hierarchy to build location selectors in your UI.
Next Steps
- Content API Reference - Complete endpoint documentation
- Hotels Catalog - Get hotel information
- Content Overview - Learn about Content API