The following curl command connects to the Flights History endpoint, retrieves historic data for the specified ICAO address and prints the received data to the console.
The server will only send the target updates between the desired dates and then stop the connection.
end are mandatory in order to retrieve data.
The following parameters can be specified to retrieve real-time data with more accuracy.
|datetime||Required - History data extraction start timestamp (ISO 8601 format)|
|datetime||Required - History data extraction end timestamp (ISO 8601 format)|
|ID||Spire internal unique flight ID|
|string||Hexadecimal representation of ICAO 24 – bit address|
|string||Flight number (IATA format)|
|string||IATA/ICAO aircraft type code|
|string||Aircraft role e.g. PAX|
|string||IATA/ICAO airline code|
|string||IATA/ICAO departure airport code|
|string||IATA/ICAO arrival airport code|
|string||IATA/ICAO airport code for all inbound and outbound flights|
|string||Flight state as one of "ON_GROUND","AIRBORNE","LANDED","POST_FLIGHT"|