API reference

HTS APIs

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

Schema

room_media

Media asset with its associated room media type

Fields

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
Example
{
  "type": "image",
  "url": "https://example.com/images/hotel-lobby.jpg",
  "category": "primary",
  "caption": "Spacious hotel lobby with modern decor",
  "is_primary": true,
  "links": {
    "1440px": {
      "url": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
    }
  }
}