Skip to content

Trip Purpose Prediction API

by amadeus.com

No authHTTPSDevelopment
Open documentation ↗

Overview

Before using this API, we recommend you read our **[Authorization Guide](https://developers.amadeus.com/self-service/apis-docs/guides/authorization-262)** for more information on how to generate an access token.

Trip Purpose Prediction is a development API from amadeus.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 1 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
https://test.api.amadeus.com/v1
Version
1.1.4
Endpoints
1
Spec updated
2023-03-24

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://test.api.amadeus.com/v1/travel/predictions/trip-purpose" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://test.api.amadeus.com/v1/travel/predictions/trip-purpose", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://test.api.amadeus.com/v1/travel/predictions/trip-purpose",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/travel/predictions/trip-purposeReturns the forecast purpose of a trip

Questions

Does the Trip Purpose Prediction API need an API key?

No. The Trip Purpose Prediction API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Trip Purpose Prediction API support HTTPS?

Yes, the Trip Purpose Prediction API is served over HTTPS.

How many endpoints does the Trip Purpose Prediction API have?

Its OpenAPI description lists 1 endpoint in version 1.1.4. All of them are shown on this page.

What are alternatives to the Trip Purpose Prediction API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).