Trip Purpose Prediction
Before using this API, we recommend you read our [Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262) for…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Before using this API, we recommend you read our Authorization Guide for more information on how to generate an access token.
Endpoints 1
trip-purpose-prediction
- GETReturns the forecast purpose of a trip
/travel/predictions/trip-purpose?originLocationCode=NYC&destinationLocationCode=MAD&departureDate=2023-12-01&returnDate=2023-12-12&searchDate=string
API details
- Base URL
https://test.api.amadeus.com/v1- Authentication
- None declared in the description
- Operations
- 1 operation on 1 pathGET 1
- Main resources
- trip-purpose-prediction 1
- Response formats
application/vnd.amadeus+json- Description format
- Swagger 2.0, API version
1.1.4 - Links
- OpenAPI document
How to test the Trip Purpose Prediction in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Trip Purpose Prediction collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Returns the forecast purpose of a trip” (GET /travel/predictions/trip-purpose?originLocationCode=NYC&destinationLocationCode=MAD&departureDate=2023-12-01&returnDate=2023-12-12&searchDate=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Trip Purpose Prediction?
Before using this API, we recommend you read our [Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262) for… It is listed under Travel and has 1 endpoint.
Who publishes the Trip Purpose Prediction?
It is listed from Amadeus's public API description (an OpenAPI document), not published by Amadeus on Swastik Codes. Anyone who controls amadeus.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Trip Purpose Prediction?
Requests go to https://test.api.amadeus.com/v1. Endpoint paths are added to this base URL.
How do I authenticate with the Trip Purpose Prediction?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Trip Purpose Prediction have?
1 operation on 1 path (1 GET). The largest groups are trip-purpose-prediction.
Is forking the Trip Purpose Prediction free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.