- SITA Flight Follower API
- SITA On Time Performance API
- SITA Flight Schedule API
- SITA Flight Status API
- SITA Historical Flight Status API
- Overview
- 1 Revision History
- 2 Registration and API Sign Up
- 3 SITA Historical Flight Status API
- 4 Error Response
- 5 Notes
- 6 Appendix A Status Codes
- 7 Appendix B V2 Flight Details Response Schema
- 8 Appendix C V2 Flight Updates Response Schema
- 9 Appendix D Update Fields
- 10 Appendix E Flights Response Examples
- 11 Appendix F Historical Flight Use Cases
- 12 Appendix G Historical Flight Service Type Codes
- Contact Us
- SITA Flight Duration API
- SITA Flight Status Notification API
- Publish Flight Information - AMSOpen API
- Publish Flight Information - ACRIS API
- Publish Flight Information - AIDX API
- SITA Flight Connection API
Overview
SITA Historical Flight Status API allows consumers to view flight update information for flights departed within the past 2 years
Artificial Intelligence and Machine Learning are increasingly being used to improve airline and airport operations. This API is ideal for developers and data scientists who want to analyze patterns or behaviour of carriers, flights and routes. This information is sourced from various real-time systems and databases across the globe and is stored on SITA’s cloud to support any research or analysis.
Information includes arriving airport, departure airport, scheduled/actual time, airport Code, terminal, claim, gate, aircraft, marketingCarriers/operatingCarrier, airline, flightNumber, tailNumber.
This API answers the below questions:
- What was the trend or behaviour of a specific flight for past 12 months?
- Is there a pattern of flight delays between two airports?
- Can help in analyzing the seasonality of flights.
SITA Historical Flight Status API
dots.support@sita.aero
version 1.1.0-SNAPSHOT
1 Revision History
Date | Version | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 Registration and API Sign Up
SITA Historical API is a REST based service which provides information about flights that have from the past.
To access the APIs you will need an API key. These can be obtained by creating an account on https://www.developer.aero/ and registering your interest for access to the API.
2.1 Authentication
To access the APIs an OAuth access token must be supplied. To obtain an OAuth token a request must be sent to the https://sitaopen.api.aero/historical/oauth/token
endpoint using the OAuth2 Client Credential flow, using your API key as the client_id
, and your consumer secret as the client_secret
.
Once an access token has been obtained, it can be placed in the Authorization
HTTP header as a bearer token, for example:
Authorization: Bearer eyJ92dNw9dka...
2.2 Security
-
All incoming requests will be REST over HTTPS.
-
Users are authenticated using their API key.
-
Certain response payload elements will be filtered based on permissions associated with their token.
2.3 Rate Limiting
All incoming requests are subject to a rate limiting restriction. The following headers are included in HTTP responses:
Header | Description |
---|---|
|
The total number of requests allowed in the current time window |
|
The number of requests left for the current time window |
|
The policy describing how many request per time window are allowed |
|
The number of seconds remaining in the current time window. Header not displayed after rate limit has been exceeded |
|
The epoch timestamp at which the current rate limit window resets. Header only displayed after rate limit has been exceeded |
3 SITA Historical Flight Status API
The SITA Historical Flight Status API is a REST based service which provides information about flights around the world.
A user may
-
Search for the flight details based on a combination of airport, airline and flight number details
-
Search for flight updates created within a specific time window. These can be at a global level or filtered to an airport/airline/flight number level
3.1 Resources
This section describes each SITA Historical Flight Status API service.
Detailed API structure, example requests and responses, JSON schema for request (where appropriate) and responses, and error response codes and formats are included.
3.2 Flights V2
3.2.1 GET Get Flight by Airline and Flight Number
Retrieve a single flight according to airline and flight number showing both the departure and arrival flight details. Results are filtered by operation date (default is current UTC date).
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
operationDate
In this scenario the operationDate is considered to be the local date on which the flight departed/arrived.
operationDate & searchByUTC
A user can force the operationDate value to be considered as UTC by providing the parameter 'searchByUTC=true'.
Path parameters
Parameter | Description |
---|---|
|
2-character airline IATA code or 3-character airline ICAO code |
|
Flight number |
Query parameters
Parameter | Description |
---|---|
|
Local date of operation (yyyy-MM-dd). Default value is current UTC date |
|
Search based by UTC. Default value is false |
|
Include cargo flights. Default value is false |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
Actual In Block Time |
|
|
Actual Landing Time |
|
|
Actual Off Block Time |
|
|
Actual Take Off Time |
|
|
Estimated In Block Time |
|
|
Estimated Landing Time |
|
|
Estimated Off Block Time |
|
|
Estimated Take Off Time |
|
|
Target Off Block Time |
|
|
Target Take Off Time |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Departure |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
The actual local time at which the aircraft arrived at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft landed on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to land on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Flight Stats |
|
|
Baggage |
|
|
Total number of cargo pieces |
|
|
Total number of bags/pieces |
|
|
Load breakdown |
|
|
Total number of mail pieces |
|
|
Total weight of bags/pieces |
|
|
Passengers |
|
|
Actual number of business class passengers |
|
|
Actual number of economy class passengers |
|
|
Actual number of 1st class passengers |
|
|
Actual number of passengers |
|
|
Actual number of transfer passengers |
|
|
Actual number of transit passengers |
|
|
Total number of adults |
|
|
Total number of booked business class passengers |
|
|
Total number of booked economy class passengers |
|
|
Total number of booked 1st class passengers |
|
|
Total number of booked passengers |
|
|
Total number of children |
|
|
Total number of infants |
|
|
Total number of reduced mobility passengers e.g those requiring assistance boarding the aircraft etc. |
|
|
Metadata |
|
|
UTC timestamp when last update update was applied to this flight |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/airline/UL/flightNumber/1512?operationDate=2021-04-01' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3330
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"aircraft" : {
"iataCode" : "321",
"icaoCode" : "A321",
"model" : "A321",
"registration" : "4RAND"
}
},
"flightStats" : {
"passengers" : {
"bookedTotal" : "120",
"adult" : "109",
"child" : "2",
"infant" : "2"
},
"baggage" : {
"count" : "235",
"load" : "3661",
"cargo" : "0",
"mail" : "0"
}
},
"departure" : {
"airport" : {
"iataCode" : "CMB",
"cityText" : "Colombo"
},
"scheduled" : "2021-04-01T12:25:00+04:00",
"estimated" : "2021-04-01T14:43:00+05:30",
"actual" : "2021-04-01T13:48:00+05:30",
"status" : "DP",
"statusText" : "Departed",
"terminal" : "T1",
"gate" : "C3",
"stand" : "401R",
"checkIn" : "F10",
"chute" : "S1",
"standSlots" : [ {
"name" : "401R",
"externalName" : "401R",
"startTime" : "2021-04-01T11:06:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Sector 4C"
} ],
"checkinSlots" : [ {
"name" : "F10",
"externalName" : "F10",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F11",
"externalName" : "F11",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F12",
"externalName" : "F12",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F8",
"externalName" : "F8",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F9",
"externalName" : "F9",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
} ],
"gateSlots" : [ {
"name" : "C3",
"externalName" : "C3",
"startTime" : "2021-04-01T11:18:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Pier C Contact"
} ],
"chuteSlots" : [ {
"name" : "S1",
"externalName" : "S1",
"startTime" : "2021-04-01T09:25:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Chutes"
} ],
"route" : [ {
"sequenceNumber" : 0
} ],
"customProperties" : [ {
"key" : "S---_Status",
"value" : "SCH"
} ],
"events" : {
"AOBT" : "2021-04-01T12:18:00+04:00",
"ATOT" : "2021-04-01T12:26:00+04:00",
"EOBT" : "2021-04-01T13:13:00+04:00"
},
"delayPrediction" : {
"minutes" : 65,
"prediction" : "2021-04-01T13:30:00+04:00"
}
},
"serviceType" : "J",
"duration" : 255
} ]
}
3.2.2 GET Get Flights by Airport, Airline and Direction
Retrieve all flights arriving to or departing from a specified airport for a given airline. Results are filtered by operation date (default is current UTC date).
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
operationDate
If the operation date is not provided the search is based on the current UTC date/time. The search window will be current UTC date/time → current UTC date/time + 4 hours (futureWindow default value).
The user can adjust the search window by providing values for the pastWindow/futureWindow in their request.
If the operation date is provided the search window will be operationDate (00:00:00) → operationDate + 4 hours (futureWindow default value) e.g. 2021-01-12 00:00:00 → 2021-01-12 04:00:00.
In this scenario the operationDate is considered to be the local date on which the flight departed/arrived.
The user can adjust the search window by providing values for the pastWindow/futureWindow in their request.
operationDate & searchByUTC
A user can force the operationDate value to be considered as UTC by providing the parameter 'searchByUTC=true'. By doing so the user has the ability to search for flights in the past/future based on UTC date/time.
Path parameters
Parameter | Description |
---|---|
|
3-character airport IATA code or 4-character airport ICAO code |
|
2-character airline IATA code or 3-character airline ICAO code |
|
1-character direction indicator (A/D) |
Query parameters
Parameter | Description |
---|---|
|
Local date of operation (yyyy-MM-dd). Default value is current UTC date |
|
Search based by UTC. Default value is false |
|
Include cargo flights. Default value is false |
|
Filter results based on origin or destination airport |
|
View 'full' or 'local' leg, based on direction. Default value is local. See notes for further details. |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
Actual In Block Time |
|
|
Actual Landing Time |
|
|
Actual Off Block Time |
|
|
Actual Take Off Time |
|
|
Estimated In Block Time |
|
|
Estimated Landing Time |
|
|
Estimated Off Block Time |
|
|
Estimated Take Off Time |
|
|
Target Off Block Time |
|
|
Target Take Off Time |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Departure |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
The actual local time at which the aircraft arrived at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft landed on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to land on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Flight Stats |
|
|
Baggage |
|
|
Total number of cargo pieces |
|
|
Total number of bags/pieces |
|
|
Load breakdown |
|
|
Total number of mail pieces |
|
|
Total weight of bags/pieces |
|
|
Passengers |
|
|
Actual number of business class passengers |
|
|
Actual number of economy class passengers |
|
|
Actual number of 1st class passengers |
|
|
Actual number of passengers |
|
|
Actual number of transfer passengers |
|
|
Actual number of transit passengers |
|
|
Total number of adults |
|
|
Total number of booked business class passengers |
|
|
Total number of booked economy class passengers |
|
|
Total number of booked 1st class passengers |
|
|
Total number of booked passengers |
|
|
Total number of children |
|
|
Total number of infants |
|
|
Total number of reduced mobility passengers e.g those requiring assistance boarding the aircraft etc. |
|
|
Metadata |
|
|
UTC timestamp when last update update was applied to this flight |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/airport/MCT/airline/UL/direction/D?operationDate=2021-04-01' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3330
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"aircraft" : {
"iataCode" : "321",
"icaoCode" : "A321",
"model" : "A321",
"registration" : "4RAND"
}
},
"flightStats" : {
"passengers" : {
"bookedTotal" : "120",
"adult" : "109",
"child" : "2",
"infant" : "2"
},
"baggage" : {
"count" : "235",
"load" : "3661",
"cargo" : "0",
"mail" : "0"
}
},
"departure" : {
"airport" : {
"iataCode" : "CMB",
"cityText" : "Colombo"
},
"scheduled" : "2021-04-01T12:25:00+04:00",
"estimated" : "2021-04-01T14:43:00+05:30",
"actual" : "2021-04-01T13:48:00+05:30",
"status" : "DP",
"statusText" : "Departed",
"terminal" : "T1",
"gate" : "C3",
"stand" : "401R",
"checkIn" : "F10",
"chute" : "S1",
"standSlots" : [ {
"name" : "401R",
"externalName" : "401R",
"startTime" : "2021-04-01T11:06:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Sector 4C"
} ],
"checkinSlots" : [ {
"name" : "F10",
"externalName" : "F10",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F11",
"externalName" : "F11",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F12",
"externalName" : "F12",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F8",
"externalName" : "F8",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F9",
"externalName" : "F9",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
} ],
"gateSlots" : [ {
"name" : "C3",
"externalName" : "C3",
"startTime" : "2021-04-01T11:18:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Pier C Contact"
} ],
"chuteSlots" : [ {
"name" : "S1",
"externalName" : "S1",
"startTime" : "2021-04-01T09:25:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Chutes"
} ],
"route" : [ {
"sequenceNumber" : 0
} ],
"customProperties" : [ {
"key" : "S---_Status",
"value" : "SCH"
} ],
"events" : {
"AOBT" : "2021-04-01T12:18:00+04:00",
"ATOT" : "2021-04-01T12:26:00+04:00",
"EOBT" : "2021-04-01T13:13:00+04:00"
},
"delayPrediction" : {
"minutes" : 65,
"prediction" : "2021-04-01T13:30:00+04:00"
}
},
"serviceType" : "J",
"duration" : 255
} ]
}
3.2.3 GET Get Flights by Airport and Direction
Retrieve all flights arriving to or departing from a specific airport. Results are filtered by operation date (default is current UTC date).
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
operationDate
If the operation date is not provided the search is based on the current UTC date/time. The search window will be current UTC date/time → current UTC date/time + 4 hours (futureWindow default value).
The user can adjust the search window by providing values for the pastWindow/futureWindow in their request.
If the operation date is provided the search window will be operationDate (00:00:00) → operationDate + 4 hours (futureWindow default value) e.g. 2021-01-12 00:00:00 → 2021-01-12 04:00:00.
In this scenario the operationDate is considered to be the local date on which the flight departed/arrived.
The user can adjust the search window by providing values for the pastWindow/futureWindow in their request.
operationDate & searchByUTC
A user can force the operationDate value to be considered as UTC by providing the parameter 'searchByUTC=true'. By doing so the user has the ability to search for flights in the past/future based on UTC date/time.
Path parameters
Parameter | Description |
---|---|
|
3-character airport IATA code or 4-character airport ICAO code |
|
1-character direction indicator (A/D) |
Query parameters
Parameter | Description |
---|---|
|
Local date of operation (yyyy-MM-dd). Default value is current UTC date |
|
Search based by UTC. Default value is false |
|
Include cargo flights. Default value is false |
|
Filter results based on origin or destination airport |
|
View 'full' or 'local' leg, based on direction. Default value is local. See notes for further details. |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
Actual In Block Time |
|
|
Actual Landing Time |
|
|
Actual Off Block Time |
|
|
Actual Take Off Time |
|
|
Estimated In Block Time |
|
|
Estimated Landing Time |
|
|
Estimated Off Block Time |
|
|
Estimated Take Off Time |
|
|
Target Off Block Time |
|
|
Target Take Off Time |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Departure |
|
|
The actual local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Expected carousel(s) for baggage reclaim |
|
|
Carousel Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Check-in desk details e.g CK-1 |
|
|
Checkin Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Baggage chute details e.g CH-2 |
|
|
Chute Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Custom Properties |
|
|
Key value used to identify a custom property |
|
|
The value of a custom property |
|
|
Flight Delay Prediction. Available for Premium Users. |
|
|
A message related to the prediction |
|
|
Calculated Delay in Minutes |
|
|
Calculated Delay Prediction |
|
|
Diversion |
|
|
Original flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Recovery flight |
|
|
Airport |
|
|
The city in which the airport is located e.g New York |
|
|
The city in which the airport is located e.g New York |
|
|
3-character airport IATA code e.g JFK |
|
|
4-character airport ICAO code e.g KJFK |
|
|
The name of the airport e.g John F Kennedy International Airport |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
The latest estimated local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Events |
|
|
The actual local time at which the aircraft arrived at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft landed on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The actual local time at which the aircraft left the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected at the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to land on the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The estimated local time at which the aircraft is expected to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the gate e.g 2020-01-22T12:00:00+03:00 |
|
|
The local time at which the aircraft is targeted to leave the runway e.g 2020-01-22T12:00:00+03:00 |
|
|
The flights departure/arrival gate e.g C1 |
|
|
|
|
|
Gate remark text when applicable e.g Boarding at 21:00 |
|
|
Gate Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
Route |
|
|
3-character airport IATA code |
|
|
4-character airport ICAO code |
|
|
Value used to identify the routes position within an entire flight route e.g leg 0, leg 1, leg 2 etc |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Aircraft stand details e.g S12 |
|
|
Stand Slots |
|
|
Location details of the slot resource i.e check-in desks1-20, Gate 2C etc |
|
|
End time for the slot activity e.g check-in desk closed |
|
|
Name used to identify the slot |
|
|
Name used to identify the slot internally |
|
|
Start time for the slot activity e.g check-in desk opened |
|
|
The current status code for this flight e.g SC, DP |
|
|
The current status text for this flight e.g Scheduled, Departed |
|
|
The flights departure/arrival terminal e.g T1 |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Flight Stats |
|
|
Baggage |
|
|
Total number of cargo pieces |
|
|
Total number of bags/pieces |
|
|
Load breakdown |
|
|
Total number of mail pieces |
|
|
Total weight of bags/pieces |
|
|
Passengers |
|
|
Actual number of business class passengers |
|
|
Actual number of economy class passengers |
|
|
Actual number of 1st class passengers |
|
|
Actual number of passengers |
|
|
Actual number of transfer passengers |
|
|
Actual number of transit passengers |
|
|
Total number of adults |
|
|
Total number of booked business class passengers |
|
|
Total number of booked economy class passengers |
|
|
Total number of booked 1st class passengers |
|
|
Total number of booked passengers |
|
|
Total number of children |
|
|
Total number of infants |
|
|
Total number of reduced mobility passengers e.g those requiring assistance boarding the aircraft etc. |
|
|
Metadata |
|
|
UTC timestamp when last update update was applied to this flight |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/airport/MCT/direction/D?operationDate=2021-04-01' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3330
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"aircraft" : {
"iataCode" : "321",
"icaoCode" : "A321",
"model" : "A321",
"registration" : "4RAND"
}
},
"flightStats" : {
"passengers" : {
"bookedTotal" : "120",
"adult" : "109",
"child" : "2",
"infant" : "2"
},
"baggage" : {
"count" : "235",
"load" : "3661",
"cargo" : "0",
"mail" : "0"
}
},
"departure" : {
"airport" : {
"iataCode" : "CMB",
"cityText" : "Colombo"
},
"scheduled" : "2021-04-01T12:25:00+04:00",
"estimated" : "2021-04-01T14:43:00+05:30",
"actual" : "2021-04-01T13:48:00+05:30",
"status" : "DP",
"statusText" : "Departed",
"terminal" : "T1",
"gate" : "C3",
"stand" : "401R",
"checkIn" : "F10",
"chute" : "S1",
"standSlots" : [ {
"name" : "401R",
"externalName" : "401R",
"startTime" : "2021-04-01T11:06:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Sector 4C"
} ],
"checkinSlots" : [ {
"name" : "F10",
"externalName" : "F10",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F11",
"externalName" : "F11",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F12",
"externalName" : "F12",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F8",
"externalName" : "F8",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
}, {
"name" : "F9",
"externalName" : "F9",
"startTime" : "2021-04-01T07:40:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Check-In F"
} ],
"gateSlots" : [ {
"name" : "C3",
"externalName" : "C3",
"startTime" : "2021-04-01T11:18:00+04:00",
"endTime" : "2021-04-01T12:18:00+04:00",
"area" : "Pier C Contact"
} ],
"chuteSlots" : [ {
"name" : "S1",
"externalName" : "S1",
"startTime" : "2021-04-01T09:25:00+04:00",
"endTime" : "2021-04-01T11:25:00+04:00",
"area" : "Chutes"
} ],
"route" : [ {
"sequenceNumber" : 0
} ],
"customProperties" : [ {
"key" : "S---_Status",
"value" : "SCH"
} ],
"events" : {
"AOBT" : "2021-04-01T12:18:00+04:00",
"ATOT" : "2021-04-01T12:26:00+04:00",
"EOBT" : "2021-04-01T13:13:00+04:00"
},
"delayPrediction" : {
"minutes" : 65,
"prediction" : "2021-04-01T13:30:00+04:00"
}
},
"serviceType" : "J",
"duration" : 255
} ]
}
3.2.4 GET Get Flight Updates by Airport, Airline and Flight Number
Retrieve a single flight and its updates based on airline, flight number and arrival/departure airport. Results are filtered by operation date (default is current UTC date).
The date range defined by the 'from' and 'to' query parameters may not exceed 60 minutes.
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
operationDate
In this scenario the operationDate is considered to be the local date on which the flight departed/arrived.
operationDate & searchByUTC
A user can force the operationDate value to be considered as UTC by providing the parameter 'searchByUTC=true'.
Path parameters
Parameter | Description |
---|---|
|
3-character airport IATA code or 4-character airport ICAO code |
|
2-character airline IATA code or 3-character airline ICAO code |
|
Flight number |
Query parameters
Parameter | Description |
---|---|
|
Local date of operation (yyyy-MM-dd). Default value is current UTC date |
|
Date interval start e.g 2020-01-01T12:00:00-0000. Default is current UTC date/time - 2 minutes |
|
Date interval end e.g 2020-01-01T12:05:00-0000. Default is current UTC date/time - 1 minutes |
|
Group marketing and operating carrier flights into a single record. Default value is false |
|
Show additional information such as version |
|
Include cargo flights. Default value is false |
|
1-character direction indicator (A/D) |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Departure |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Metadata |
|
|
UTC timestamp when update was applied |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/updates/airport/MCT/airline/UL/flightNumber/1512?from=2021-04-01T03:00:00.000Z&to=2021-04-01T04:00:00.000Z' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 5521
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"marketingCarriers" : [ {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "512",
"name" : "SriLankan Airlines"
} ]
},
"departure" : {
"scheduled" : "2021-04-01T08:25:00+00:00",
"version" : 39,
"updates" : [ {
"updatedField" : "CHECK_IN_SLOT",
"previous" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"current" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"received" : "2021-04-01T03:17:35.662Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:15:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T04:34:28.747Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T05:10:43.956Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T07:06:13.922Z"
}, {
"updatedField" : "STATUS",
"previous" : "SC",
"current" : "FC",
"received" : "2021-04-01T07:52:30.967Z"
}, {
"updatedField" : "STATUS",
"previous" : "FC",
"current" : "GC",
"received" : "2021-04-01T08:13:56.299Z"
}, {
"updatedField" : "ESTIMATED",
"current" : "2021-04-01T13:58:00+05:30",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "GATE_SLOT",
"previous" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:25:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Pier C Contact\"}]",
"current" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:28:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Pier C Contact\"}]",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "EVENTS",
"previous" : "{}",
"current" : "{\"EOBT\":\"2021-04-01T12:28:00+04:00\"}",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T08:22:41.376Z"
}, {
"updatedField" : "DELAY_PREDICTION",
"previous" : "{\"minutes\":55,\"prediction\":\"2021-04-01T13:20:00+04:00\"}",
"current" : "{\"minutes\":65,\"prediction\":\"2021-04-01T13:30:00+04:00\"}",
"received" : "2021-04-01T08:25:12.156Z"
} ]
},
"arrival" : {
"version" : 39
}
} ]
}
3.2.5 GET Get Flight Updates by Airport and Airline
Retrieve all updates created within the from/to search window for flights arriving to or departing from an airport, operated or marketed by the provided airline.
The date range defined by the 'from' and 'to' query parameters may not exceed 60 minutes.
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
Path parameters
Parameter | Description |
---|---|
|
3-character airport IATA code or 4-character airport ICAO code |
|
2-character airline IATA code or 3-character airline ICAO code |
Query parameters
Parameter | Description |
---|---|
|
Date interval start e.g 2020-01-01T12:00:00-0000. Default is current UTC date/time - 2 minutes |
|
Date interval end e.g 2020-01-01T12:05:00-0000. Default is current UTC date/time - 1 minutes |
|
Group marketing and operating carrier flights into a single record. Default value is false |
|
Show additional information such as version |
|
Include cargo flights. Default value is false |
|
1-character direction indicator (A/D) |
|
View 'full' or 'local' leg, based on direction. Default value is local. See notes for further details. |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Departure |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Metadata |
|
|
UTC timestamp when update was applied |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/updates/airport/MCT/airline/UL?from=2021-04-01T03:00:00.000Z&to=2021-04-01T04:00:00.000Z' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 5521
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"marketingCarriers" : [ {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "512",
"name" : "SriLankan Airlines"
} ]
},
"departure" : {
"scheduled" : "2021-04-01T08:25:00+00:00",
"version" : 39,
"updates" : [ {
"updatedField" : "CHECK_IN_SLOT",
"previous" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"current" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"received" : "2021-04-01T03:17:35.662Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:15:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T04:34:28.747Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T05:10:43.956Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T07:06:13.922Z"
}, {
"updatedField" : "STATUS",
"previous" : "SC",
"current" : "FC",
"received" : "2021-04-01T07:52:30.967Z"
}, {
"updatedField" : "STATUS",
"previous" : "FC",
"current" : "GC",
"received" : "2021-04-01T08:13:56.299Z"
}, {
"updatedField" : "ESTIMATED",
"current" : "2021-04-01T13:58:00+05:30",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "GATE_SLOT",
"previous" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:25:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Pier C Contact\"}]",
"current" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:28:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Pier C Contact\"}]",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "EVENTS",
"previous" : "{}",
"current" : "{\"EOBT\":\"2021-04-01T12:28:00+04:00\"}",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T08:22:41.376Z"
}, {
"updatedField" : "DELAY_PREDICTION",
"previous" : "{\"minutes\":55,\"prediction\":\"2021-04-01T13:20:00+04:00\"}",
"current" : "{\"minutes\":65,\"prediction\":\"2021-04-01T13:30:00+04:00\"}",
"received" : "2021-04-01T08:25:12.156Z"
} ]
},
"arrival" : {
"version" : 39
}
} ]
}
3.2.6 GET Get Flight Updates by Airport
Retrieve all updates created within the from/to search window for flights arriving to or departing from an airport.
The date range defined by the 'from' and 'to' query parameters may not exceed 60 minutes.
Payload elements are filtered based on permissions associated with the 'X-apiKey' used in the request.
Path parameters
Parameter | Description |
---|---|
|
3-character airport IATA code or 4-character airport ICAO code |
Query parameters
Parameter | Description |
---|---|
|
Date interval start e.g 2020-01-01T12:00:00-0000. Default is current UTC date/time - 2 minutes |
|
Date interval end e.g 2020-01-01T12:05:00-0000. Default is current UTC date/time - 1 minutes |
|
Group marketing and operating carrier flights into a single record. Default value is false |
|
Show additional information such as version |
|
Include cargo flights. Default value is false |
|
1-character direction indicator (A/D) |
|
View 'full' or 'local' leg, based on direction. Default value is local. See notes for further details. |
Request headers
Name | Description |
---|---|
|
Content type of this request. Required value is 'application/json' |
|
Authorization header that contains the access token. |
Response fields
Path | Type | Description |
---|---|---|
|
|
Flight Records |
|
|
Arrival |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Departure |
|
|
The published scheduled local departure/arrival time for this flight e.g 2020-01-22T12:00:00+03:00 |
|
|
Updates |
|
|
Current field value |
|
|
UTC timestamp when update was applied (only visible when updates are grouped) |
|
|
Previous field value |
|
|
UTC timestamp when update was received |
|
|
Payload field which was updated |
|
|
FLIFO internal version number |
|
|
Flight duration in minutes e.g 60 |
|
|
Flight Identifier |
|
|
Aircraft |
|
|
Call-sign for the aircraft type |
|
|
IATA code for the aircraft |
|
|
ICAO code for the aircraft |
|
|
Specific aircraft model details |
|
|
Aircraft registration/tail number details e.g EIAA44W |
|
|
Marketing Carriers |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g AA |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Operating Carrier |
|
|
Flight number e.g 1234 |
|
|
2-character airline IATA code e.g A |
|
|
3-character airline ICAO code e.g AAL |
|
|
Name of airline e.g American Airlines |
|
|
Metadata |
|
|
UTC timestamp when update was applied |
|
|
Flight service type e.g J-Passenger, F-Cargo |
Curl request
$ curl 'https://historical.api.aero/historical/v2/flights/updates/airport/MCT?from=2021-04-01T03:00:00.000Z&to=2021-04-01T04:00:00.000Z' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer eyJkb2N1bWVudGF0aW9uIiwidG9rZW4ifQ...'
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 5521
{
"flightRecords" : [ {
"flightIdentifier" : {
"operatingCarrier" : {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "1512",
"name" : "SriLankan Airlines"
},
"marketingCarriers" : [ {
"iataCode" : "UL",
"icaoCode" : "ALK",
"flightNumber" : "512",
"name" : "SriLankan Airlines"
} ]
},
"departure" : {
"scheduled" : "2021-04-01T08:25:00+00:00",
"version" : 39,
"updates" : [ {
"updatedField" : "CHECK_IN_SLOT",
"previous" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T08:25:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"current" : "[{\"name\":\"F9\",\"externalName\":\"F9\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F10\",\"externalName\":\"F10\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F11\",\"externalName\":\"F11\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F12\",\"externalName\":\"F12\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"},{\"name\":\"F8\",\"externalName\":\"F8\",\"startTime\":\"2021-04-01T07:40:00+04:00\",\"endTime\":\"2021-04-01T11:25:00+04:00\",\"area\":\"Check-In F\"}]",
"received" : "2021-04-01T03:17:35.662Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:15:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T04:34:28.747Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:19:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T05:10:43.956Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:18:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T07:06:13.922Z"
}, {
"updatedField" : "STATUS",
"previous" : "SC",
"current" : "FC",
"received" : "2021-04-01T07:52:30.967Z"
}, {
"updatedField" : "STATUS",
"previous" : "FC",
"current" : "GC",
"received" : "2021-04-01T08:13:56.299Z"
}, {
"updatedField" : "ESTIMATED",
"current" : "2021-04-01T13:58:00+05:30",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "GATE_SLOT",
"previous" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:25:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Pier C Contact\"}]",
"current" : "[{\"name\":\"C3\",\"externalName\":\"C3\",\"startTime\":\"2021-04-01T11:28:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Pier C Contact\"}]",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "EVENTS",
"previous" : "{}",
"current" : "{\"EOBT\":\"2021-04-01T12:28:00+04:00\"}",
"received" : "2021-04-01T08:22:41.375Z"
}, {
"updatedField" : "STAND_SLOT",
"previous" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:25:00+04:00\",\"area\":\"Sector 4C\"}]",
"current" : "[{\"name\":\"401R\",\"externalName\":\"401R\",\"startTime\":\"2021-04-01T11:06:00+04:00\",\"endTime\":\"2021-04-01T12:28:00+04:00\",\"area\":\"Sector 4C\"}]",
"received" : "2021-04-01T08:22:41.376Z"
}, {
"updatedField" : "DELAY_PREDICTION",
"previous" : "{\"minutes\":55,\"prediction\":\"2021-04-01T13:20:00+04:00\"}",
"current" : "{\"minutes\":65,\"prediction\":\"2021-04-01T13:30:00+04:00\"}",
"received" : "2021-04-01T08:25:12.156Z"
} ]
},
"arrival" : {
"version" : 39
}
} ]
}
4 Error Response
4.1 Response fields
Path | Type | Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4.2 HTTP Response
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 159
{
"errors" : {
"error" : [ {
"description" : "Error Description",
"code" : 9999,
"invalidParam" : "parameterName"
} ]
}
}
5 Notes
5.1 'view' parameter
'view' parameter
The 'view' query parameter can have the value 'local' or 'full' (default value is 'local').
The purpose of this parameter is to enable the user to decide if they wish to see just the 'local' view of the flight (e.g only the
departure details if 'direction' parameter provided was 'D') or the 'full' view which will return both departure and arrival details for the flight(s) if 'direction' parameter provided was 'D'.
See 'Appendix E - Flights Response Examples' for sample 'local' and 'full' response
payloads.
6 Appendix A Status Codes
Code | Description |
---|---|
AD |
Arrived-Diverted |
AP |
Approach |
AR |
Arrived |
AT |
See Agent |
BC |
Boarding Complete |
BD |
Boarding |
BO |
Boarded |
CD |
Baggage Delay |
CO |
Closed |
CL |
Closed |
CX |
Cancelled |
DE |
Deleted |
DL |
Delayed |
DP |
Departed |
DV |
Diverted |
EN |
Enroute |
EX |
Expected |
FB |
First Bag Unloaded |
FC |
Final Call |
GC |
Gate Closed |
GG |
Go To Gate |
GT |
Gate Time (Gate Time HH:MM can be found in gateInfo field) |
IA |
In Air |
ID |
In Air-Diverted |
IR |
In Range |
LB |
Last Bag Unloaded |
LD |
Landed-Diverted |
LN |
Landed |
LR |
Landed-Recovered |
OG |
Landed (On Ground) |
ON |
On Time |
TX |
Taxiing |
PD |
Possible Delay |
RA |
Arrived-Recovered |
RE |
In Air-Recovered |
RG |
Return To Gate |
SC |
Scheduled |
UN |
Unknown |
VN |
TEST |
WX |
Weather |
7 Appendix B V2 Flight Details Response Schema
{
"type" : "object",
"properties" : {
"flightRecords" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"flightIdentifier" : {
"type" : "object",
"properties" : {
"operatingCarrier" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
}
}
},
"marketingCarriers" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
}
}
}
},
"aircraft" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"model" : {
"type" : "string"
},
"registration" : {
"type" : "string"
},
"callSign" : {
"type" : "string"
}
}
}
}
},
"flightStats" : {
"type" : "object",
"properties" : {
"passengers" : {
"type" : "object",
"properties" : {
"bookedTotal" : {
"type" : "string"
},
"bookedFirst" : {
"type" : "string"
},
"bookedBusiness" : {
"type" : "string"
},
"bookedEconomy" : {
"type" : "string"
},
"actualTotal" : {
"type" : "string"
},
"actualFirst" : {
"type" : "string"
},
"actualBusiness" : {
"type" : "string"
},
"actualEconomy" : {
"type" : "string"
},
"actualTransfer" : {
"type" : "string"
},
"actualTransit" : {
"type" : "string"
},
"reducedMobility" : {
"type" : "string"
},
"adult" : {
"type" : "string"
},
"child" : {
"type" : "string"
},
"infant" : {
"type" : "string"
}
}
},
"baggage" : {
"type" : "object",
"properties" : {
"count" : {
"type" : "string"
},
"load" : {
"type" : "string"
},
"totalWeight" : {
"type" : "string"
},
"cargo" : {
"type" : "string"
},
"mail" : {
"type" : "string"
}
}
}
}
},
"departure" : {
"type" : "object",
"properties" : {
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "any"
},
"estimated" : {
"type" : "any"
},
"actual" : {
"type" : "any"
},
"status" : {
"type" : "string"
},
"statusText" : {
"type" : "string"
},
"terminal" : {
"type" : "string"
},
"gate" : {
"type" : "string"
},
"gateRemark" : {
"type" : "string"
},
"gateRemarkText" : {
"type" : "string"
},
"carousel" : {
"type" : "string"
},
"stand" : {
"type" : "string"
},
"checkIn" : {
"type" : "string"
},
"chute" : {
"type" : "string"
},
"standSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"checkinSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"carouselSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"gateSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"chuteSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"route" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"sequenceNumber" : {
"type" : "integer"
}
}
}
},
"customProperties" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"key" : {
"type" : "string"
},
"value" : {
"type" : "string"
}
}
}
},
"events" : {
"type" : "object",
"properties" : {
"ALDT" : {
"type" : "any"
},
"AIBT" : {
"type" : "any"
},
"AOBT" : {
"type" : "any"
},
"ATOT" : {
"type" : "any"
},
"ELDT" : {
"type" : "any"
},
"EIBT" : {
"type" : "any"
},
"EOBT" : {
"type" : "any"
},
"ETOT" : {
"type" : "any"
},
"TOBT" : {
"type" : "any"
},
"TTOT" : {
"type" : "any"
}
}
},
"diversion" : {
"type" : "object",
"properties" : {
"original" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "string"
}
}
},
"recovery" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "string"
}
}
}
}
},
"delayPrediction" : {
"type" : "object",
"properties" : {
"minutes" : {
"type" : "integer"
},
"prediction" : {
"type" : "string"
},
"message" : {
"type" : "string"
}
}
}
}
},
"arrival" : {
"type" : "object",
"properties" : {
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "any"
},
"estimated" : {
"type" : "any"
},
"actual" : {
"type" : "any"
},
"status" : {
"type" : "string"
},
"statusText" : {
"type" : "string"
},
"terminal" : {
"type" : "string"
},
"gate" : {
"type" : "string"
},
"gateRemark" : {
"type" : "string"
},
"gateRemarkText" : {
"type" : "string"
},
"carousel" : {
"type" : "string"
},
"stand" : {
"type" : "string"
},
"checkIn" : {
"type" : "string"
},
"chute" : {
"type" : "string"
},
"standSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"checkinSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"carouselSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"gateSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"chuteSlots" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"name" : {
"type" : "string"
},
"externalName" : {
"type" : "string"
},
"startTime" : {
"type" : "any"
},
"endTime" : {
"type" : "any"
},
"area" : {
"type" : "string"
}
}
}
},
"route" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"sequenceNumber" : {
"type" : "integer"
}
}
}
},
"customProperties" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"key" : {
"type" : "string"
},
"value" : {
"type" : "string"
}
}
}
},
"events" : {
"type" : "object",
"properties" : {
"ALDT" : {
"type" : "any"
},
"AIBT" : {
"type" : "any"
},
"AOBT" : {
"type" : "any"
},
"ATOT" : {
"type" : "any"
},
"ELDT" : {
"type" : "any"
},
"EIBT" : {
"type" : "any"
},
"EOBT" : {
"type" : "any"
},
"ETOT" : {
"type" : "any"
},
"TOBT" : {
"type" : "any"
},
"TTOT" : {
"type" : "any"
}
}
},
"diversion" : {
"type" : "object",
"properties" : {
"original" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "string"
}
}
},
"recovery" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"airport" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"cityText" : {
"type" : "string"
}
}
},
"scheduled" : {
"type" : "string"
}
}
}
}
},
"delayPrediction" : {
"type" : "object",
"properties" : {
"minutes" : {
"type" : "integer"
},
"prediction" : {
"type" : "string"
},
"message" : {
"type" : "string"
}
}
}
}
},
"serviceType" : {
"type" : "string"
},
"duration" : {
"type" : "integer"
},
"metadata" : {
"type" : "object",
"properties" : {
"lastUpdateTime" : {
"type" : "any"
}
}
}
}
}
}
}
}
8 Appendix C V2 Flight Updates Response Schema
{
"type" : "object",
"properties" : {
"flightRecords" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"flightIdentifier" : {
"type" : "object",
"properties" : {
"operatingCarrier" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
}
}
},
"marketingCarriers" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"iataCode" : {
"type" : "string"
},
"icaoCode" : {
"type" : "string"
},
"flightNumber" : {
"type" : "string"
},
"name" : {
"type" : "string"
}
}
}
}
}
},
"departure" : {
"type" : "object",
"properties" : {
"scheduled" : {
"type" : "any"
},
"version" : {
"type" : "integer"
},
"updates" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"updatedField" : {
"type" : "string",
"enum" : [ "GATE", "CLAIM", "TERMINAL", "ACTUAL", "ESTIMATED", "SCHEDULED", "AIRCRAFT", "DURATION", "TAILNO", "STATUS", "SERVICE_TYPE", "STAND", "CHECK_IN", "AIRCRAFT_OBJECT", "STAND_SLOT", "CHECK_IN_SLOT", "CAROUSEL_SLOT", "GATE_SLOT", "CHUTE_SLOT", "ROUTE", "FLIGHT_STATS", "CUSTOM_PROPERTIES", "MARKETING_CARRIER", "EVENTS", "DIVERSION", "AIRPORT", "RECOVERY", "ORIGINAL", "DELAY_PREDICTION" ]
},
"previous" : {
"type" : "string"
},
"current" : {
"type" : "string"
},
"received" : {
"type" : "any"
},
"metadata" : {
"type" : "object",
"properties" : {
"lastUpdateTime" : {
"type" : "any"
}
}
}
}
}
}
}
},
"arrival" : {
"type" : "object",
"properties" : {
"scheduled" : {
"type" : "any"
},
"version" : {
"type" : "integer"
},
"updates" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"updatedField" : {
"type" : "string",
"enum" : [ "GATE", "CLAIM", "TERMINAL", "ACTUAL", "ESTIMATED", "SCHEDULED", "AIRCRAFT", "DURATION", "TAILNO", "STATUS", "SERVICE_TYPE", "STAND", "CHECK_IN", "AIRCRAFT_OBJECT", "STAND_SLOT", "CHECK_IN_SLOT", "CAROUSEL_SLOT", "GATE_SLOT", "CHUTE_SLOT", "ROUTE", "FLIGHT_STATS", "CUSTOM_PROPERTIES", "MARKETING_CARRIER", "EVENTS", "DIVERSION", "AIRPORT", "RECOVERY", "ORIGINAL", "DELAY_PREDICTION" ]
},
"previous" : {
"type" : "string"
},
"current" : {
"type" : "string"
},
"received" : {
"type" : "any"
},
"metadata" : {
"type" : "object",
"properties" : {
"lastUpdateTime" : {
"type" : "any"
}
}
}
}
}
}
}
},
"metadata" : {
"type" : "object",
"properties" : {
"lastUpdateTime" : {
"type" : "any"
}
}
}
}
}
}
}
}
9 Appendix D Update Fields
Field | Description |
---|---|
NEW_FLIGHT |
Identifies a new flight created within FLIFO. This is the first possible notification which can be generated for a flight |
GATE |
Gate change |
CLAIM |
Baggage Claim/Carousel |
ACTUAL |
Actual time of departure or arrival |
ESTIMATED |
Estimated time of departure or arrival |
AIRCRAFT |
Aircraft type change |
TERMINAL |
Terminal change |
DURATION |
Flight duration change |
TAILNO |
Tail number change |
STATUS |
Flight status change. |
SCHEDULED |
Scheduled departure/arrival time change |
SERVICE_TYPE |
Change of flight service type |
STAND |
Stand allocation change |
STAND_SLOT |
Sand slot change |
CHECK_IN |
Check in desk allocation |
CHECK_IN_SLOT |
Check in slot change |
AIRCRAFT_OBJECT |
Aircraft object change |
CAROUSEL_SLOT |
Carousel slot change |
GATE_SLOT |
Gate slot change |
CHUTE_SLOT |
Baggage chute slot change |
ROUTE |
Route change |
FLIGHT_STATS |
Flight Stats change i.e. passenger counts/baggage counts |
EVENTS |
Events change i.e. updates to off/on block times |
MARKETING_CARRIER |
Change to listed marketing/codeshare flight details |
CUSTOM_PROPERTIES |
Change to details contained within the custom properties key value mappings |
DIVERSION |
Diversion details change |
DELAY_PREDICTION |
Delay Prediction change |
10 Appendix E Flights Response Examples
/v1/flights/airport/MCT/airline/UL/direction/D?view=local | /v1/flights/airport/MCT/airline/UL/direction/D?view=full |
---|---|
|
|
11 Appendix F Historical Flight Use Cases
11.1 Flight Updates Use Cases
Scenario: |
As an API user I want to make a request to the Historical API to return all updates for flights at a given airport within a provided timeframe |
Request: |
GET /historical/v2/flights/updates/airport/AMS?operationDateFrom=2020-01-01T12:00:00-0000&operationDateTo=2020-01-01T12:30:00-0000 |
Response: |
List of flight update records for AMS flights between January 1st at 12pm until 12.30pm |
Scenario: |
As an API user I want to make a request to the Historical API to return all updates for flights from a specific airline at a given airport within a provided timeframe |
Request: |
GET /historical/v2/flights/updates/airport/AMS/airline/KL?operationDateFrom=2020-01-01T12:00:00-0000&operationDateTo=2020-01-01T12:30:00-0000 |
Response: |
List of flight update records for KL flights to and from AMS between January 1st at 12pm until 12.30pm |
Scenario: |
As an API user I want to make a request to the Historical API to return all updates for flights from a specific airline, with a specific flight number, at a given airport within a provided timeframe |
Request: |
GET /historical/v2/flights/updates/airport/AMS/airline/KL/flightNumber/1417?operationDateFrom=2020-01-01T12:00:00-0000&operationDateTo=2020-01-01T12:30:00-0000 |
Response: |
List of flight update records for KL flights with a flight number of 1417 to and from AMS between January 1st at 12pm until 12.30pm |
11.2 Flight Details Use Cases
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records arriving at a specific airport |
Request: |
GET /historical/v2/flights/airport/AMS/direction/A |
Response: |
List of flight records for flights arriving at AMS airport |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records departing a specific airport |
Request: |
GET /historical/v2/flights/airport/AMS/direction/D |
Response: |
List of flight records for flights departing at AMS airport |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records arriving at a given airport for a specific airline and flight number |
Request: |
GET /historical/v2/flights/airport/AMS/airline/KL/flightNumber/1417/direction/A |
Response: |
List of flight records for flights arriving at AMS airport with an airline code of KL, and a flight number of 1417 |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records departing from a given airport for a specific airline and flight number |
Request: |
GET /historical/v2/flights/airport/AMS/airline/KL/flightNumber/1417/direction/D |
Response: |
List of flight records for flights departing from AMS airport with an airline code of KL, and a flight number of 1417 |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records arriving at a given airport for a specific airline |
Request: |
GET /historical/v2/flights/airport/AMS/airline/KL/direction/A |
Response: |
List of flight records for flights arriving at AMS airport with an airline code of KL |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records departing a given airport for a specific airline |
Request: |
GET /historical/v2/flights/airport/AMS/airline/KL/direction/D |
Response: |
List of flight records for flights departing from AMS airport with an airline code of KL |
Scenario: |
As an API user I want to make a request to the Historical API to return all flight records departing a given airport for a specific airline |
Request: |
GET /historical/v2/flights/airline/KL/flightNumber/1417 |
Response: |
List of a single record for a flight with an airline code of KL and a flight number of 1417 |
12 Appendix G Historical Flight Service Type Codes
Code | Description | Application | Content |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contact Us
For subscription and sales queries, please contact:
Product Inquiries
For Historical Flight Updates API related queries, please contact:
Technical Support Team