Demo: Orbit Travel API
Download OpenAPI DocumentSearch destinations, flights and seat maps, book and pay, manage saved passengers and Orbit Miles, and receive booking and payment events by webhook or from the Events API.
Every request needs an API key in the x-api-key header, or an OAuth access token from Create an access token in Authorization: Bearer …. Each credential can make 60 requests a minute.
Authentication
Create an access token
Destinations
List destinations
Get a destination
Flights
Search flights
Get a flight
Legacy flight searchDeprecated
The first flight search, with page numbers instead of cursors. It is slower on large result sets and is switched off on 31 March 2032.
Warning
Deprecated: use Search flights. Rename destination
to destinationId, and follow page.nextCursor instead of counting pages.
Query Parameters
Destination id (renamed destinationId in Search flights).
Page number, starting at 1.
Flights per page.
Responses
200OK
Flights on this page.
Show child attributes
Departure time (UTC).
Flight id.
Departure spaceport code.
Destination id.
Journey length in days.
Available fares, cheapest first.
Show child attributes
Cabin.
Price in the smallest currency unit (cents).
ISO 4217 currency code.
Seats left at this fare.
Flights matching the search, on all pages.
This page number.
Flights per page.
Requests allowed per minute for this credential.
Requests left in the current window.
When the window resets, in Unix seconds.
Always true: this endpoint is deprecated.
When the endpoint stops working (HTTP date).
The replacement endpoint.
400The request is invalid: a parameter or body field failed validation.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401Authentication is missing or invalid.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
403Authenticated, but not allowed to do this.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Too many requests: more than 60 a minute. Wait `Retry-After` seconds, then retry.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
Seconds to wait before retrying.
Requests allowed per minute for this credential.
Requests left in the current window.
When the window resets, in Unix seconds.
500Something failed on the server. Retry with backoff.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl 'http://localhost:3010/v1/flights/search-legacy?destination=dst_proxima_b&page=1&perPage=10' \
--header 'x-api-key: YOUR_API_KEY'{
"results": [
{
"departsAt": "2031-04-12T08:00:00Z",
"id": "flt_2031_proxima",
"from": "KSC",
"destinationId": "dst_proxima_b",
"durationDays": 210,
"fares": [
{
"cabin": "economy",
"amount": 1299900,
"currency": "USD",
"seatsLeft": 12
}
]
}
],
"total": 2,
"page": 1,
"perPage": 10
}