API REFERENCES/Beta//
- Attraction constants
Search attractions
Attraction details
Attraction Reviews
Attraction Review Scores
Attraction constants
Returns localised attraction constants, including category and subcategory metadata.
- Use this endpoint to retrieve and cache the category ID-to-name mapping before performing attraction searches with category filters.
- Call this endpoint during initial integration or periodically to refresh cached values.
- To retrieve all constants, send an empty request body.
Security
BearerAuth
List of language codes used to localise category names. Each category name is returned as an object keyed by language code.
- If a requested language is not available, it may be omitted from the response.
- If not provided,
en-gbis used by default.
Default:["en-gb"]
Example:
[ "es" ]
- https://demandapi.booking.com/3.2https://demandapi.booking.com/3.2/attractions/constants
- https://demandapi-sandbox.booking.com/3.2https://demandapi-sandbox.booking.com/3.2/attractions/constants
curl -i -X POST \
https://demandapi.booking.com/3.2/attractions/constants \
-H 'Authorization: Bearer <YOUR_string_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Affiliate-Id: 0' \
-d '{
"languages": [
"en-gb"
]
}'Response
- Response with default language (en-gb)
- Response with multiple languages
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": { "categories": [ … ] } }