Content API

To understand the significance of the Content API, it's important to know that the data returned by the Travellerschoice Hotel API falls into two categories:

  • Static information: This includes data not directly related to the booking process, such as comments, descriptions, hotel images, and addresses.

  • Dynamic information: This refers to data that can change frequently, like prices, availability dates, cancellation policies, and fees.

The core idea behind the TCTT Hotel API is to provide results in a straightforward format as quickly as possible. To ensure this, we limit the size of response messages by returning only the dynamic booking-related information. However, static information is still valuable.

The ContentAPI is designed to deliver all the necessary static information for the BookingAPI in a fast and simple manner, offering quicker and more reliable access.

In a nutshell, Content APIs provide all the static data in advance, ensuring that Booking APIs remain lightweight and perform faster. You are required to import all the static data (data masters) into your database. Booking APIs will reference these data masters using IDs, which you can use to retrieve and populate the necessary data when making a Booking API request.

How to manage contents: The ContentAPI is designed to provide detailed information about the hotels available in our BookingAPI. It includes several methods that allow you to retrieve hotel details, as well as lists of destinations, countries, and master data that enrich hotel information (such as room type descriptions, accommodation type descriptions, and category descriptions).

Last updated