Current state vectors of aircraft, optionally for one ICAO24 address or a bounding box.
GET/states/all
- Takes: Name
- Passive: the target is not contacted
- Cost: 1 to 4 credits depending on bounding box area
Each row of states is an array indexed by field (0 icao24, 1 callsign, 2 origin_country, 3 time_position, 4 last_contact, 5 longitude, 6 latitude, 7 baro_altitude, 8 on_ground, 9 velocity, 10 true_track, 11 vertical_rate, 12 sensors, 13 geo_altitude, 14 squawk, 15 spi, 16 position_source, 17 category when extended=1). Anonymous callers only get the most recent vectors at 10 second resolution.
Query parameters
icao24Hex ICAO24 address; repeat the parameter for several aircraft
timeUnix timestamp; defaults to now
laminLower latitude bound; give all four bounds together
lominLower longitude bound
lamaxUpper latitude bound
lomaxUpper longitude bound
extendedSet to 1 to include the aircraft category
Response fields · 2ShowHide
time
Time the vectors are associated with
states
State vectors, each an array indexed as described above
curl 'https://opensky-network.org/api/states/all' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"time": 1700000000,
"states": [
[
"abc9f3",
"TEST123 ",
"Exampleland",
1699999999,
1699999999,
8.55,
47.45,
10000,
false,
220.5,
90,
0,
null,
10100,
"1000",
false,
0,
4
]
]
}