Skip to main content

Output

Messages output by the endpoint are encoded in JSON format. The message(s) output when calling the endpoint will have the form of a Flight Object as detailed below.

Flight Object#

The Flight Object will contain all available fields which describe a flight observed by ADS-B and each is identified by a unique flight_id. All fields included in the Flight object are described below.

Content#

Flight object information#

The fields in this table are taken directly from ADS-B messages:

FieldTypeDescriptionExample
icao_addressstringHexadecimal representation of ICAO 24-bit address"02013F"
callsignstringCall sign"RAM200"
latitudefloatLatitude in degrees, between -90 and 90 (both inclusive)-26.80491819
longitudefloatLongitude in degrees, between -180 (exclusive) and 180 (inclusive)28.64151588
altitude_barointegerBarometric altitude in feet38000
altitude_gnssintegerGNSS altitude in feet35000
on_groundbooleanSpecifies if the aircraft is on the ground. true if the aircraft is on the ground, false if the aircraft is airbornefalse
speedfloatAircraft speed in knots477
headingfloatAircraft heading in degrees (0 is North)273
vertical_rateintegerVertical rate of ascent/descent, in ft/min100
squawkstringMode-A squawk code"6617"

Spire flight object metadata#

These fields are merged into each record to provide additional information regarding the ADS-B message:

FieldTypeDescriptionExample
flight_idIDSpire internal unique flight ID. Random UUIDv4 sequence"9bfe2152-471a-402d-9c07-07b2da25649c"
timestampdatetimeTimestamp for which all data fields are valid"2023-01-04T07:55:25Z"

Aircraft Information#

The following fields are enhanced data and may be present in the record depending on availability:

FieldTypeDescriptionExample
tail_numberstringAircraft Registration"G-EUUL"
aircraft_type_icaostringAircraft type (ICAO code)"A320"
aircraft_type_namestringFull aircraft type name"Airbus A320 (sharklets)"
aircraft_rolestringAircraft rolePAX,CAR
airline_icaostringIATA code of the airline"BAW"
airline_iatastringIATA code of the airline"BA"
airline_namestringAirline commerical name"British Airways"

Flight Information#

The following fields are enhanced data and may be present in the record depending on availability:

FieldTypeDescriptionExample
flight_numberstringFlight number (IATA format)"WN9002"
departure_airport_icaostringDeparture airport ICAO code"EHAM"
departure_airport_iatastringDeparture airport IATA code"AMS"
departure_scheduled_timedatetimeScheduled departure time, format is in ISO 8601"2019-06-06T07:55:25Z"
departure_estimated_timedatetimeDeparture estimated time, format is in ISO 8601"2019-06-06T07:55:25Z"
departure_utc_offsetstringDeparture airport timezone offset from UTC"-0700"
arrival_airport_icaostringArrival airport ICAO code"EGNX"
arrival_airport_iatastringArrival airport IATA code'EMA"
arrival_scheduled_timedatetimeScheduled arrival time, format is in ISO 8601"2019-06-06T07:55:25Z"
arrival_estimated_timedatetimeEstimated arrival time, format is in ISO 8601"2019-06-06T07:55:25Z"
arrival_utc_offsetstringArrival airport timezone offset from UTC"0300"

Flight Analytics#

The following fields are enhanced data and may be present in the record depending on availability:

FieldTypeDescriptionExample
flight_statestringFlight state"ON_GROUND","AIRBORNE","LANDED","POST_FLIGHT"
takeoff_timetimestampTimestamp of actual detected take off"2023-01-04T11:44:15Z"
landing_timetimestampTimestamp of actual detected landing"2023-01-04T11:44:15Z"
flight_starttimestampTimestamp reflecting point when ADS-B tracking begins"2023-01-04T11:44:15Z"
off_block_timetimestampTimestamp of actual detected OFF block event"2023-01-04T11:44:15Z"
on_block_timetimestampTimestamp of actual detected ON block event"2023-01-04T11:44:15Z"

Sample#

Here is an example of a typical Flight Object broadcast by our API:

{
"flight_id":"a8236288-06cf-4319-9f59-95f36b700c09",
"timestamp":"2023-02-02T14:12:21Z",
"is_active":false,
"icao_address":"896497",
"tail_number":"A6-AOQ",
"aircraft_type_icao":"A320",
"aircraft_type_name":"Airbus A320 (sharklets)",
"aircraft_role":"PAX",
"airline_icao":"ABY",
"airline_iata":"G9",
"airline_name":"Air Arabia",
"flight_number":"G9466",
"callsign":"ABY466",
"flight_state":"AIRBORNE",
"departure_airport_icao":"VIDP",
"departure_airport_iata":"DEL",
"arrival_airport_icao":"OMSJ",
"arrival_airport_iata":"SHJ",
"departure_utc_offset":"-0700",
"arrival_utc_offset":"0300",
"departure_scheduled_time":"2023-02-02T12:50:00Z",
"arrival_scheduled_time":"2023-02-02T16:50:00Z",
"latitude":24.480743,
"longitude":73.501587,
"altitude_baro":38000,
"altitude_gnss":35000,
"on_ground":false,
"speed":400.0,
"heading":236.22697,
"vertical_rate":0,
"squawk":"0576",
"departure_estimated_time":"2023-02-02T12:50:00Z",
"arrival_estimated_time":"2023-02-02T16:50:00Z",
"takeoff_time":"2023-02-02T13:23:07Z",
"flight_start":"2023-02-02T13:05:40Z"
}