# OpenSky Network API reference

> 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…

Source: https://osinttools.io/apis/opensky-network/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/opensky-network/

- Base URL: https://opensky-network.org/api
- Authentication: OAuth access token, sent as a bearer token. Get a key: https://opensky-network.org/ OAuth2 client credentials; token endpoint https://auth.opensky-network.org/auth/realms/opensky-network/protocol/openid-connect/token
- Rate limits: 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.
- Vendor docs: https://openskynetwork.github.io/opensky-api/

## Overview

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.

## Errors

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

## State vectors

### Current state vectors of aircraft, optionally for one ICAO24 address or a bounding box.

`GET /states/all`

- Takes: Name
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `icao24` | query | string | no | Hex ICAO24 address; repeat the parameter for several aircraft Example: abc9f3 |
| `time` | query | integer | no | Unix timestamp; defaults to now Example: 1700000000 |
| `lamin` | query | number | no | Lower latitude bound; give all four bounds together Example: 45.8 |
| `lomin` | query | number | no | Lower longitude bound Example: 5.9 |
| `lamax` | query | number | no | Upper latitude bound Example: 47.8 |
| `lomax` | query | number | no | Upper longitude bound Example: 10.5 |
| `extended` | query | integer | no | Set to 1 to include the aircraft category Example: 1 |

Response fields:

- `time` (integer): Time the vectors are associated with
- `states` (array): State vectors, each an array indexed as described above

```bash
curl 'https://opensky-network.org/api/states/all' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

### State vectors seen by your own receivers; requires authentication and costs no credits.

`GET /states/own`

- Footprint: passive (the target is not contacted)
- Cost: No credits

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `icao24` | query | string | no | Hex ICAO24 address; repeatable Example: abc9f3 |
| `serials` | query | integer | no | Receiver serial; repeatable Example: 1234 |
| `time` | query | integer | no | Unix timestamp; defaults to now Example: 1700000000 |

Response fields:

- `time` (integer): Time the vectors are associated with
- `states` (array): State vectors, same layout as /states/all

```bash
curl 'https://opensky-network.org/api/states/own' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

## Tracks

### Experimental: the trajectory of one aircraft, live or for a known flight.

`GET /tracks`

- Takes: Name
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `icao24` | query | string | yes | Lowercase hex ICAO24 address Example: abc9f3 |
| `time` | query | integer | no | Unix time within a known flight; 0 returns the live track Example: 0 |

Response fields:

- `icao24` (string): Lowercase hex address
- `startTime` (integer): Time of the first waypoint (Unix)
- `endTime` (integer): Time of the last waypoint (Unix)
- `calllsign` (string): Callsign for the whole track (the docs spell the key this way)
- `path` (array): Waypoints as arrays: time, latitude, longitude, baro_altitude, true_track, on_ground

```bash
curl 'https://opensky-network.org/api/tracks?icao24=abc9f3' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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
    ]
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
