Get up and running with the Products V2 API in minutes.
In this quickstart, you'll learn how to access and retrieve travel product information using the Products V2 API. We'll show you how to:
Before you start, you'll need:
Let's start by retrieving travel products. Here's how to get a list of available products:
Never expose your API key in client-side code. In production, make API calls from your backend server and use environment variables to store your API key securely.
The API returns a detailed product object with comprehensive information about each travel product:
Now let's retrieve products with filtering options:
Retrieve detailed information for a specific product:
Here's a complete HTML example that demonstrates all the key features for accessing product information:
The Products V2 API returns rich, structured data with several key sections:
The API response structure can vary depending on the endpoint and parameters used. Some responses may include additional metadata, while others focus on specific product details. The examples above handle the most common response patterns.
Now that you've completed the quickstart, you're ready to:
Always implement proper error handling for production applications: