HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/api/lodging_content/v1/contentContentGet lodgings content
Get lodging content information including property details, amenities, policies, and room types. Usage of this endpoint is limited to authorized tenants only, contact Hopper to get access.
Locale support: The locale field in the request controls the language of translatable text fields (descriptions, policies, check-in information) and defaults to en-US. Locale is only applied to hotel content — for vacation homes it is ignored and content is returned in the provider's default language.
Request body application/json · required
Search criteria for retrieving lodging content
request_idUnique value used to identify this request. If provided to us during operational questions, it will help us provide better support.
123e4567-e89b-12d3-a456-426614174000lodging_idsList of lodging IDs to get content for (up to 20)
localeLocale code representing the language and regional variation of text content. This follows the IETF RFC 5646 standard for language tags, which provides a standardized way to identify languages.
Common examples:
- "en-US" for U.S. English
- "fr-FR" for French in France
- "es-ES" for Spanish in Spain
- "zh-CN" for Chinese in China
- "ja-JP" for Japanese in Japan
^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$ · Example en-USResponses
200List of lodging content matching the search criteria
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000lodgingsLodgings list
Show fields
lodging_idUnique identifier for the lodging
123e4567-e89b-12d3-a456-426614174000contentComprehensive content information for a lodging property, including all details needed for guest discovery, evaluation, and booking decisions. This serves as the base schema for all lodging types and contains core information applicable to any accommodation property.
This schema uses discriminator patterns to support different lodging types (hotels, vacation rentals) while maintaining a consistent base structure. The content includes property details, location information, amenities, media assets, and operational information.
Show fields
Comprehensive content information for a lodging property, including all details needed for guest discovery, evaluation, and booking decisions. This serves as the base schema for all lodging types and contains core information applicable to any accommodation property.
This schema uses discriminator patterns to support different lodging types (hotels, vacation rentals) while maintaining a consistent base structure. The content includes property details, location information, amenities, media assets, and operational information.
type:hotel (hotel_content) hotel_content · one of 2
Content information specific to hotel properties, extending the base lodging content with hotel-industry specific fields and business concepts. Hotels are typically commercial accommodations with daily housekeeping, front desk services, and standardized amenities.
Hotel-Specific Features:
- Chain and brand affiliation indicating service standards and loyalty programs
- Accepted payment methods for guest transactions
- Corporate operational standards and guest service protocols
type:hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
Content information specific to vacation rental properties, extending the base lodging content with fields relevant to short-term rental accommodations. Vacation rentals are typically private residences or units rented directly from property owners or managers, offering home-like amenities and more personalized, residential experiences compared to hotels.
Vacation Rental Specific Features:
- House rules and property-specific policies set by individual owners
- Host information for direct guest communication and local expertise
- Unit configuration details for space planning and occupancy decisions
- Multi-unit property indicators for complex or compound properties
type:hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
Content information specific to vacation rental properties, extending the base lodging content with fields relevant to short-term rental accommodations. Vacation rentals are typically private residences or units rented directly from property owners or managers, offering home-like amenities and more personalized, residential experiences compared to hotels.
Vacation Rental Specific Features:
- House rules and property-specific policies set by individual owners
- Host information for direct guest communication and local expertise
- Unit configuration details for space planning and occupancy decisions
- Multi-unit property indicators for complex or compound properties
type:hotel (hotel_content) hotel_content · one of 2
Content information specific to hotel properties, extending the base lodging content with hotel-industry specific fields and business concepts. Hotels are typically commercial accommodations with daily housekeeping, front desk services, and standardized amenities.
Hotel-Specific Features:
- Chain and brand affiliation indicating service standards and loyalty programs
- Accepted payment methods for guest transactions
- Corporate operational standards and guest service protocols
type:hotel (hotel_content) hotel_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
vacation_rental (vacation_rental_content) vacation_rental_content · one of 2
400Invalid Request. There will be an error code in the response detailing the issue.
error_codeError codes for the content operation. This is a non-exhaustive list of enum values, which will be extended in the future.
unauthorizedunknown_errordescriptionA human-readable description of the error.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000Example
{
"error_code": "unauthorized",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}499Client closed the connection before the response could be sent (HTTP 499). This occurs when clients timeout or cancel requests while the server is still processing. The client will not receive this response. This means a quote, a booking or any other long running process may have been processed.
error_codeError returned when a client closes the connection before the response could be sent.
client_closed_requestdescriptionA human-readable description of what happened. For booking requests, this may include the partner reference ID for tracking.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000additional_contextAdditional context about the error. For booking requests, includes partner_reference_id for tracking in BigQuery.
Example
{
"error_code": "client_closed_request",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000",
"additional_context": {}
}500Internal server error
error_codeError returned when an internal server error occurs.
internal_server_errordescriptionA human-readable description of the error.
response_idUnique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.
123e4567-e89b-12d3-a456-426614174000Example
{
"error_code": "internal_server_error",
"description": "string",
"response_id": "123e4567-e89b-12d3-a456-426614174000"
}curl -X PUT "https://travel-distribution.staging.htsapis.com/api/lodging_content/v1/content" \
-H "HTS-API-KEY: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"request_id": "123e4567-e89b-12d3-a456-426614174000",
"lodging_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"locale": "en-US"
}'{
"response_id": "123e4567-e89b-12d3-a456-426614174000",
"lodgings": [
{
"lodging_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
