About the API:
The Trip Purpose Prediction API is a powerful tool that allows businesses and travel companies to better understand the needs and preferences of their customers. By analyzing historical trip booking data, the API utilizes artificial intelligence technology to accurately predict whether a given itinerary is for a business trip or a vacation.
This API can be used by a wide range of companies in the travel industry, including airlines, hotels, rental car companies, and travel agencies. By gaining insights into their customers' travel purposes, these companies can better tailor their products and services to meet their customers' needs, which can lead to increased customer satisfaction and loyalty.
One of the key advantages of the Trip Purpose Prediction API is its ability to accurately predict the purpose of a trip based on historical data. This is made possible by the AI algorithms that have been trained on vast amounts of travel data, allowing the API to identify patterns and trends that would be difficult for humans to discern. As a result, the API can make predictions with a high degree of accuracy, which can help businesses make more informed decisions about how to market and sell their products.
Another advantage of the Trip Purpose Prediction API is its ease of use. The API is designed to be easy to integrate into existing systems, which means that businesses can start using it quickly and easily without the need for extensive technical expertise. This makes it a valuable tool for businesses of all sizes, from small travel agencies to large multinational corporations.
Overall, the Trip Purpose Prediction API is a powerful tool that can help businesses in the travel industry better understand their customers and tailor their products and services to meet their needs. By providing accurate predictions about the purpose of a trip, this API can help businesses make more informed decisions and improve their bottom line.
Pass dates of departure and arrival, destination and receive the trip purpose prediction.
Targeted Marketing: Travel companies can use the API to understand the purpose of a customer's trip and use this information to target them with personalized marketing messages. For example, if the API predicts that a customer is traveling for business, the company can offer them discounts on business-related services, such as meeting rooms or transportation to conferences.
Customer Segmentation: By using the API to segment customers based on their travel purpose, businesses can better understand their customer base and tailor their products and services accordingly. For example, if the API predicts that a large portion of a hotel's guests is traveling for business, the hotel may want to focus on offering amenities that are important to business travelers, such as high-speed internet or a business center.
Revenue Management: The Trip Purpose Prediction API can help travel companies with revenue management by allowing them to better understand the seasonality and demand patterns for different types of trips. For example, if the API predicts that a particular route or destination is popular for vacation travel during the summer months, the travel company can adjust pricing and inventory accordingly to maximize revenue.
Fraud Detection: The API can be used to identify suspicious activity related to trip bookings. For example, if the API predicts that a customer is traveling for business but the booking is made using a personal credit card, it could indicate potential fraud. The travel company can then investigate further or take appropriate action to prevent fraudulent transactions.
Risk Assessment: The API can be used to assess the risk associated with a particular trip. For example, if the API predicts that a customer is traveling for leisure but the destination is known for high crime rates, the travel company can provide the customer with additional safety information or offer alternative destinations that may be safer.
Besides API call limitations per month, there are no other limitations.
Predict whether a trip is for business or leisure.
Get Purpose - Endpoint Features
| Object | Description |
|---|---|
departureDate |
[Required] the date on which the traveler will depart from the origin to go to the destination. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2017-12-25 |
originLocationCode |
[Required] city/airport IATA code from which the traveler will depart, e.g. BOS for Boston |
returnDate |
[Required] the date on which the traveler will depart from the destination to return to the origin. Dates are specified in the ISO 8601 YYYY-MM-DD format, e.g. 2018-02-28 |
destinationLocationCode |
[Required] city/airport IATA code to which the traveler is going, e.g. PAR for Paris |
{"data":{"id":"BOSPAR20230510","probability":"0.99877286","result":"LEISURE","subType":"trip-purpose","type":"prediction"},"meta":{"defaults":{"searchDate":"2023-04-11"},"links":{"self":"https://prod.api.amadeus.com/v1/travel/predictions/trip-purpose?originLocationCode=BOS\u0026destinationLocationCode=PAR\u0026departureDate=2023-05-10\u0026returnDate=2023-05-25\u0026searchDate=2023-04-11"}}}
curl --location --request GET 'https://zylalabs.com/api/1900/trip+purpose+prediction+api/1596/get+purpose?departureDate=2023-05-10&originLocationCode=BOS&returnDate=2023-05-25&destinationLocationCode=PAR' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Get Purpose endpoint returns a prediction of whether a trip is for business or leisure, along with a probability score indicating the confidence level of the prediction.
The key fields in the response data include "id" (unique trip identifier), "probability" (confidence score), "result" (predicted trip purpose), and "subType" (type of prediction).
The response data is structured in a JSON format, containing a "data" object with prediction details and a "meta" object with additional information like search date and links.
The endpoint accepts parameters such as originLocationCode, destinationLocationCode, departureDate, returnDate, and searchDate to customize the prediction request.
The predictions are based on historical trip booking data analyzed by AI algorithms, which identify patterns and trends from vast amounts of travel data.
Typical use cases include targeted marketing, customer segmentation, revenue management, fraud detection, and risk assessment based on trip purpose predictions.
Users can leverage the returned data to tailor marketing strategies, enhance customer experiences, optimize pricing, and improve service offerings based on predicted trip purposes.
Data accuracy is maintained through continuous training of AI algorithms on updated travel data, along with quality checks to ensure reliable predictions.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
743ms
Service Level:
100%
Response Time:
4,838ms
Service Level:
100%
Response Time:
4,535ms
Service Level:
100%
Response Time:
712ms
Service Level:
100%
Response Time:
127ms
Service Level:
100%
Response Time:
872ms
Service Level:
100%
Response Time:
715ms
Service Level:
100%
Response Time:
1,949ms
Service Level:
100%
Response Time:
6,478ms
Service Level:
100%
Response Time:
222ms
Service Level:
100%
Response Time:
11,295ms
Service Level:
100%
Response Time:
3,521ms
Service Level:
100%
Response Time:
9,558ms
Service Level:
100%
Response Time:
1,376ms
Service Level:
100%
Response Time:
4,589ms
Service Level:
100%
Response Time:
3,035ms
Service Level:
100%
Response Time:
1,497ms
Service Level:
100%
Response Time:
2,477ms
Service Level:
100%
Response Time:
1,657ms
Service Level:
100%
Response Time:
1,986ms