Integration types
Use the Demand API to implement the integration that best fits your business scenario.
The following sections describe the basic flows you can implement with the Demand API and the endpoints required.
While these flows were initially focused on accommodation, they now also apply partially to cars and, in the upcoming Beta version, also to attractions.
Content only
Share our content with your audience and redirect them to our platform to plan and book.
Search and look
Let your audience start their search on your website and redirect them to our platform to complete their booking.
Entire booking journey
Allow your audience to search, find and book directly on your website. For this integration use the full set of endpoints, including those for orders.
Post-booking, report and loyalty
Create a complete travel experience with search, booking, payments, reporting and loyalty programmes.
Content only
Let travellers browse relevant content about Booking.com offerings directly from your application. Redirect them to Booking.com to check availability, prices, and make bookings.
Content is static data that changes infrequently—or not at all—such as addresses or photos. This flow works for all travel services.
In your application:
- Use the static data endpoints to build a local cache with data relevant to your business scenario.
- Display the content to travellers.
- Redirect travellers to Booking.com when they want to explore further and book.
Static data and caching
Static data comprises two types:
Content: Data about a property, car, or attraction that may change infrequently, if at all - such as its address, or photos.
- Content is obtained via endpoints like /accommodations/details, or /cars/depots.
Reference: Data that provides identifiers (IDs or codes) and names (in multiple languages) for location, currencies, payment cards, and languages. Other Demand API endpoints use these IDs or codes in requests and responses.
- Reference data is provided by /accommodations/chains, cars or accommodation constants, and all the /common endpoints.
Using a local cache of static data reduces endpoint traffic and improves response times.
Recommendations
We strongly recommend using a local cache of static data in any production application.
- Without caching, your application must call the relevant static data endpoints whenever the data is needed by other endpoints.
- For example, without a cache, using the /search endpoint may require additional calls to fetch static data.
- Using cached prices or availability may result in failed requests due to stale data.
- Current prices and availability are returned via the /search and /availability endpoints.
Search and look
Allow travellers to search for offerings that match their requirements, view full details—including current prices and availability—and redirect them to Booking.com to book.
This flow applies to all travel services.
In your application:
Endpoint | Use it to ... |
---|---|
/search | ✓ To provide a search experience for your business scenario. |
/availability | ✓ To let travellers see full pricing and availability. |
Local cache of static data | ✓ To provide additional content for your search results and product pages. |
URL | ✓ Redirect travellers to Booking.com to complete bookings. |
Search, look, and book
Let travellers search for offerings, view full details, and book directly from your application.
This flow is currently supported for accommodations.
Support for cars and attractions will be included in upcoming Beta versions.
In your application:
Step | Endpoint | Use it to |
---|---|---|
Search | /search |
|
Look | /availability |
|
Book |
|
Post-booking
Perform management and reporting tasks for placed orders.
In your application:
Task | Endpoint | Use it to |
---|---|---|
See order details | /orders/details/* |
|
Modify an order | /orders/modify |
|
Cancel an order | /orders/cancel |
|
Next steps
Once you’ve identified the integration flow that best fits your business scenario:
Explore the relevant endpoints
Review the OpenAPI reference to understand the request and response structures for each endpoint in your chosen flow.Set up your test environment
- Use your API credentials to make test calls in the sandbox environment.
- Verify that your integration handles key use cases, such as search, booking, and order management.
- Use the Try out guide for hello world cases.
Implement caching and error handling
Follow best practices for static data caching and error handling to ensure a stable and efficient integration.Expand to additional services
If you start with accommodations, you can later extend your integration to cars and attractions as these services become available in the Demand API.Go live
Once your implementation has been validated in sandbox, follow the production readiness checklist before switching to production.
Need help choosing the right flow or combining endpoints across travel services? Contact your Booking.com Account manager for more information.