It allows developers to forecast traveler purpose, Business or Leisure, together with the probability in the context of search & shopping.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET '/v1/travel/predictions/trip-purpose?originLocationCode=LON&destinationLocationCode=AMS&departureDate={{departureDate}}&returnDate={{returnDate}}'