Skip to content

Interim documentation

These endpoints are documented as they exist today and are provided as-is. This documentation will be replaced by a considerably more robust API specification (API v2).

List routes​

GET
/data/routes

Returns the airports and routes of the operators your community has selected, so that a user can pick an airport pair to search.

This is the static schedule, not a list of current flights. It can include pairs that are no longer flown, and a search for a listed pair can return no flights.

  • A route is one operator flying from one airport to another. The return direction is a separate route.
  • A route is listed if the schedule has an active entry for it with a departure time and at least one weekday. Operators without an ICAO code are left out.
  • Times and weekdays are not returned.
  • A community with no selected operators gets empty lists.
  • The list is not paged. This endpoint never calls the data provider or consumes credits.

Use an API key or a JWT that identifies a community. A JWT that identifies only a user gets 403 community_required.

The three filters are optional and combine. They ignore case and can only narrow the list. Leave out a filter you don't need: unlike the search parameters limit, cursor and depth, an empty filter is an error.

To revalidate a copy you hold, send its ETag in If-None-Match. An unchanged list returns 304 with no body. Keep copies separate for each community and set of filters.

Authorizations​

apiKeyHeader

Your community's SimVector API key.

Type
API Key (header: x-api-key)
or
apiKeyQuery

Your community's SimVector API key (prefer the header, as query strings are logged).

Type
API Key (query: api_key)
or
bearerJwt

Token from GET /auth/jwt. Valid for 48 hours.

Type
HTTP (bearer)

Parameters​

Header Parameters

If-None-Match

The ETag of the copy you hold, including its quotes.

Type
string

Query Parameters

operators

Comma-separated operator ICAO codes, for example DAL,UAL. Codes your community has not selected match nothing.

Type
string
Min Length
1
departure_icao

ICAO code of the departure airport, for example KJFK.

Type
string
Min Length
1
arrival_icao

ICAO code of the arrival airport, for example EGLL.

Type
string
Min Length
1

Responses​

The airports and routes.

application/json
JSON
{
  
"data": {
  
  
"airports": [
  
  
  
{
  
  
  
  
"icao": "EGLL",
  
  
  
  
"iata": "LHR",
  
  
  
  
"name": "London Heathrow",
  
  
  
  
"latitude": 51.47,
  
  
  
  
"longitude": -0.45
  
  
  
},
  
  
  
{
  
  
  
  
"icao": "KJFK",
  
  
  
  
"iata": "JFK",
  
  
  
  
"name": "John F Kennedy Intl",
  
  
  
  
"latitude": 40.64,
  
  
  
  
"longitude": -73.78
  
  
  
}
  
  
],
  
  
"routes": [
  
  
  
{
  
  
  
  
"operator_icao": "DAL",
  
  
  
  
"departure_airport": "KJFK",
  
  
  
  
"arrival_airport": "EGLL",
  
  
  
  
"flight_number_count": 2
  
  
  
}
  
  
]
  
},
  
"meta": {
  
  
"count": 1
  
}
}

Playground​

Server
Authorization
Headers
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

AMXM schema © 2024 RTCA, EUROCAE. Use does not imply endorsement by RTCA or EUROCAE.