Company
Date Published
Author
Albert Fang
Word count
4149
Language
English
Hacker News points
None

Summary

The Hotels.com API allows developers to search a global database of vacation rentals, hotel packages, and other travel deals to book reservations or generate custom displays of listings. The API supports hotel listings in over 100 different countries worldwide and has five main endpoints: GET details, GET images, GET search nearby, GET reviews, and GET suggest. These endpoints return various data such as hotel information, room availability, user reviews, and geolocation coordinates. The Hotels.com API is a RESTful API that communicates in JSON over HTTP connections using a Swagger file for configuration. It has a free tier with limited functionality and also offers a professional upgrade option for high-traffic application requirements. The API can be used by developers building travel applications and web publishers to embed dynamic advertising content in their websites. It also supports affiliate programs and allows users to earn commissions on their web traffic recommendations. The Hotels.com API is designed for use by developers, but it also offers a sandbox environment that generates code snippets required for establishing the most common endpoints of the system.