API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

room_info

The details about a room including the id, the name, and allowed occupancy

Fields

room_id
string
required

The Id for a room in a lodging.

Example 123456
name
string
required

Room name

Example Standard King room
max_adults
integer
required

The number adults that are able to stay in this room.

Example 2
max_children
integer
required

The number children that are able to stay in this room.

Example 2
media
array of room_media
required

List of media assets with their associated room media types

Show fields
Array of room_media · one of 2 · List of media assets with their associated room media types

Media asset with its associated room media type

Exactly one of the following, selected by type:
image (media_image) media_image
type
string enum
required

Type of media content

Values imagevideo · Example image
url
string · uri
required

URL to the original media content resource, this is not resized

Example https://example.com/images/hotel-lobby.jpg
links
object
required

Links to the media content at different sizes.

Show fields
1440px
media_image_link

A link to a media image at a specific size

Show fields
url
string · uri
required

URL to the media content at this size

Example https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg
category
string enum

Category of lodging media content

Values primarylobbyguest_roompoolfitnessspasports_facilityamenitydiningbarinteriorexteriorviewpoint_of_interestliving_areakitchenbedroombathroomuncategorized · Example primary
caption
string

Optional caption for the image

Example Spacious hotel lobby with modern decor
is_primary
boolean

Indicates if this is the primary image for the lodging

Example true
video (media_video) media_video
type
string enum
required

Type of media content

Values imagevideo · Example image
url
string · uri
required

URL to the original media content resource

Example https://example.com/videos/hotel-tour.mp4
thumbnail_url
string · uri
required

URL to the thumbnail image for the video

Example https://example.com/videos/hotel-tour-thumbnail.jpg
description
string

Room description

Example Comfortable room with king-size bed, city view, and modern amenities
size_sq_ft
integer

Room size in square feet

Example 350
bed_configurations
array of bed_configuration

List of bed configurations in the room

Show fields
Array of bed_configuration · List of bed configurations in the room
quantity
integer
required

Number of beds of this type

Range ≥ 1 · Example 2
bed_type
string enum
required

Type of bed available in a room

Values doublefutonkingmurphyqueensofatatamitwinsinglefullrun_of_the_housedormwaterbunkcribrollawaytrundleunspecified · Example king
room_amenities
array of room_amenity

List of amenities available in the room

Show fields
Array of room_amenity · List of amenities available in the room
amenity_type
string enum
required

Type of amenity available in a specific room

Values accessibilityair_conditioningbarchildcarecoffee_makercoffee_teafitness_centerfree_wifihair_dryerheatinghot_tubkitchen_essentialslaundryoutdoor_spacepoolroom_wifiworkspacebreakfast_includedprivate_open_air_bathsmokingwestern_stylejapanese_stylerollaway_or_extra_beds_available · Example free_wifi
name
string
required

Display name of the room amenity

Example Free WiFi
views
array of room_view

List of views available from the room (e.g. ocean, city, garden). Omitted or empty when the room's views are unknown.

smoking_policy
string enum

Smoking policy of a room. Omitted when unknown; absence does not mean non-smoking.

Values smokingnon_smokingsmoking_and_non_smoking · Example non_smoking
accessibility_features
array of room_accessibility_feature

Accessibility features available in the room. Omitted when unknown; absence does not mean the room is inaccessible.

Example
{
  "room_id": "123456",
  "name": "Standard King room",
  "max_adults": 2,
  "max_children": 0,
  "size_sq_ft": 350,
  "bed_configurations": [
    {
      "quantity": 1,
      "bed_type": "king"
    }
  ],
  "room_amenities": [
    {
      "amenity_type": "free_wifi",
      "name": "Free WiFi"
    },
    {
      "amenity_type": "hair_dryer",
      "name": "Hair dryer"
    }
  ],
  "views": [
    "city",
    "partial_ocean"
  ],
  "smoking_policy": "non_smoking",
  "accessibility_features": [
    "wheelchair_accessible",
    "roll_in_shower"
  ],
  "media": [
    {
      "type": "image",
      "url": "https://example.com/images/standard-king-room.jpg",
      "links": {
        "1440px": {
          "url": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
        }
      },
      "category": "guest_room",
      "caption": "Spacious king room with city view",
      "is_primary": true,
      "media_type": "exact_room"
    },
    {
      "type": "video",
      "url": "https://example.com/videos/standard-king-room-tour.mp4",
      "thumbnail_url": "https://example.com/videos/standard-king-room-tour-thumbnail.jpg",
      "media_type": "exact_room"
    }
  ]
}