Skip to content
OSINTtools.io

OpenSky Network API

Non-profit ADS-B and Mode S receiver network offering live data and a free API for research and non-commercial use.

Base URL
https://opensky-network.org/api
Sign-in
OAuth
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from openskynetwork.github.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The OpenSky Network REST API returns live and recent aircraft state vectors (position, altitude, speed, callsign, squawk) collected by its receiver network, plus the track of a single aircraft. An investigator uses it to follow an aircraft by its ICAO24 transponder address or to list what is flying in a bounding box.

Base URL is https://opensky-network.org/api. Authentication is OAuth2 client credentials only; basic auth is no longer accepted. Tokens last 30 minutes, and a 401 means request a new one.

The docs also describe /flights/all, /flights/aircraft, /flights/arrival and /flights/departure (flights per aircraft or airport, updated nightly), but do not list the fields of their responses, so they are not detailed here. Historical data older than one hour is meant to be read through the Trino interface.

Quick start

  1. Get a key

    Create an account with OpenSky Network and copy your oauth. Where to get it

  2. Make your first request

    Current state vectors of aircraft, optionally for one ICAO24 address or a bounding box.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://opensky-network.org/api/states/all' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "time": 1700000000,
      "states": [
        [
          "abc9f3",
          "TEST123 ",
          "Exampleland",
          1699999999,
          1699999999,
          8.55,
          47.45,
          10000,
          false,
          220.5,
          90,
          0,
          null,
          10100,
          "1000",
          false,
          0,
          4
        ]
      ]
    …

Authentication

OAuth: your app gets an access token from OpenSky Network and sends it as a bearer token. See the vendor's docs for the flow.

OAuth2 client credentials; token endpoint https://auth.opensky-network.org/auth/realms/opensky-network/protocol/openid-connect/token

Get a key from OpenSky Network

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Credit buckets per day: 400 anonymous, 4,000 standard, 8,000 active feeder; 14,400 per hour for licensed users. /states/*, /tracks/* and /flights/* have separate buckets. At zero, 429 with X-Rate-Limit-Retry-After-Seconds.

Errors

StatusMeaning
400Bad request, for example a time more than 1 hour in the past for an authenticated user
401Token expired or missing; request a new token
403/states/own called without authentication
404No flights or track found
429Credits exhausted

State vectors

  • 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

icao24string

Hex ICAO24 address; repeat the parameter for several aircraft

Example: abc9f3
timeinteger

Unix timestamp; defaults to now

Example: 1700000000
laminnumber

Lower latitude bound; give all four bounds together

Example: 45.8
lominnumber

Lower longitude bound

Example: 5.9
lamaxnumber

Upper latitude bound

Example: 47.8
lomaxnumber

Upper longitude bound

Example: 10.5
extendedinteger

Set to 1 to include the aircraft category

Example: 1
Response fields · 2Show

timeinteger

Time the vectors are associated with

statesarray

State vectors, each an array indexed as described above

curl 'https://opensky-network.org/api/states/all' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "time": 1700000000,
  "states": [
    [
      "abc9f3",
      "TEST123 ",
      "Exampleland",
      1699999999,
      1699999999,
      8.55,
      47.45,
      10000,
      false,
      220.5,
      90,
      0,
      null,
      10100,
      "1000",
      false,
      0,
      4
    ]
  ]
}
  • Passive: the target is not contacted
  • Cost: No credits

Same response shape as /states/all. Returns 403 without authentication.

Query parameters

icao24string

Hex ICAO24 address; repeatable

Example: abc9f3
serialsinteger

Receiver serial; repeatable

Example: 1234
timeinteger

Unix timestamp; defaults to now

Example: 1700000000
Response fields · 2Show

timeinteger

Time the vectors are associated with

statesarray

State vectors, same layout as /states/all

curl 'https://opensky-network.org/api/states/own' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "time": 1700000000,
  "states": [
    [
      "abc9f3",
      "TEST123 ",
      "Exampleland",
      1699999999,
      1699999999,
      8.55,
      47.45,
      10000,
      false,
      220.5,
      90,
      0,
      null,
      10100,
      "1000",
      false,
      0
    ]
  ]
}

Tracks

  • Takes: Name
  • Passive: the target is not contacted
  • Cost: 4 credits for live or under 24 h

The docs mark this endpoint experimental and say it can be out of order at any time. The docs list the path as /tracks but show /tracks/all in an example. Tracks older than 30 days are unavailable. Each path entry is an array: time, latitude, longitude, baro_altitude, true_track, on_ground.

Query parameters

icao24stringrequired

Lowercase hex ICAO24 address

Example: abc9f3
timeinteger

Unix time within a known flight; 0 returns the live track

Example: 0
Response fields · 5Show

icao24string

Lowercase hex address

startTimeinteger

Time of the first waypoint (Unix)

endTimeinteger

Time of the last waypoint (Unix)

calllsignstring

Callsign for the whole track (the docs spell the key this way)

patharray

Waypoints as arrays: time, latitude, longitude, baro_altitude, true_track, on_ground

curl 'https://opensky-network.org/api/tracks?icao24=abc9f3' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "icao24": "abc9f3",
  "startTime": 1699990000,
  "endTime": 1699999000,
  "calllsign": "TEST123",
  "path": [
    [
      1699990000,
      47.45,
      8.55,
      0,
      90,
      true
    ],
    [
      1699990900,
      47.5,
      8.9,
      3000,
      85,
      false
    ]
  ]
}