The following curl command connects to the Flights Live endpoint, retrieves real-time in UTC for the specified ICAO address and prints the received data to the console.
The following parameters can be specified to retrieve real-time data with more accuracy.
|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"|