OpenSky Aircraft State Vectors Scraper avatar

OpenSky Aircraft State Vectors Scraper

Pricing

from $2.22 / 1,000 aircraft-state extracteds

Go to Apify Store
OpenSky Aircraft State Vectors Scraper

OpenSky Aircraft State Vectors Scraper

Export current OpenSky aircraft identity, position, altitude, speed, heading and source timestamps by geographic bounding box.

Pricing

from $2.22 / 1,000 aircraft-state extracteds

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Share

Collect a current snapshot of OpenSky aircraft state vectors inside a geographic bounding box. The Actor exports one clean dataset row per aircraft with its ICAO24 identity, callsign, position, altitude, speed, heading, vertical rate, squawk, ground status, and source timestamps.

Use a ready-made New York, Los Angeles, or London region, or supply your own bounded coordinates. No OpenSky account or API key is required for this current-state workflow.

What does this OpenSky scraper do?

The Actor calls OpenSky Network's public current-state endpoint and converts its positional arrays into named fields. It performs these steps:

  1. validates the chosen region and limits;
  2. requests one current snapshot for the bounding box;
  3. validates the HTTP response and JSON shape;
  4. normalizes available aircraft fields;
  5. applies ground-status and callsign filters;
  6. deduplicates aircraft by ICAO24;
  7. saves at most maxItems rows.

This Actor intentionally covers current state vectors only. It does not claim credentialed historical flights, airport arrivals, airport departures, aircraft ownership, or scheduled-route enrichment.

Who is it for?

  • Aviation researchers building regional traffic samples.
  • Airport and operations analysts comparing repeated snapshots.
  • Developers who need current aircraft telemetry without decoding OpenSky arrays.
  • Data teams loading aircraft position records into warehouses or dashboards.
  • Automation builders scheduling a lightweight regional traffic monitor.

Why use this Actor?

OpenSky returns useful data in compact positional arrays. This Actor provides a stable, documented object shape instead.

Key advantages include:

  • geographic presets that work immediately;
  • support for a validated custom bounding box;
  • explicit SI units in field names;
  • timestamps converted to ISO 8601;
  • optional airborne, on-ground, and callsign-prefix filters;
  • bounded retries with fresh route identities for transient source failures;
  • pay-per-event billing tied to saved records;
  • JSON, CSV, Excel, API, webhook, and MCP compatibility through Apify.

Getting started

  1. Open the Actor in Apify Console.
  2. Keep New York City selected for the first run.
  3. Set Maximum aircraft to 25.
  4. Leave the optional filters unset.
  5. Click Start.
  6. Open the Dataset tab when the run finishes.
  7. Export the records or connect the dataset to your workflow.

A first run normally needs only this input:

{
"region": "new-york",
"maxItems": 25
}

Input parameters

FieldTypeDefaultDescription
regionstringnew-yorknew-york, los-angeles, london, or custom.
boundsobjectNew York exampleCoordinates used only with region: "custom".
onGroundbooleanunsettrue keeps ground aircraft; false keeps airborne aircraft.
callsignPrefixstringunsetCase-insensitive 1–8 letter/digit callsign prefix.
maxItemsinteger100Maximum saved records, from 1 through 500.

Custom bounds contain:

  • minLatitude: southern edge from -90 through 90;
  • minLongitude: western edge from -180 through 180;
  • maxLatitude: northern edge from -90 through 90;
  • maxLongitude: eastern edge from -180 through 180.

Minimum coordinates must be lower than maximum coordinates. A custom box may cover at most 25 square degrees to avoid an unexpectedly large anonymous API request.

Regional snapshot examples

Collect up to 50 airborne aircraft around London:

{
"region": "london",
"onGround": false,
"maxItems": 50
}

Collect on-ground aircraft around Los Angeles:

{
"region": "los-angeles",
"onGround": true,
"maxItems": 50
}

Use a custom box around Amsterdam:

{
"region": "custom",
"bounds": {
"minLatitude": 52.1,
"minLongitude": 4.4,
"maxLatitude": 52.6,
"maxLongitude": 5.1
},
"maxItems": 100
}

Output fields

FieldMeaning
icao24Lowercase hexadecimal ICAO transponder address.
callsignTrimmed transmitted callsign, or null.
originCountryCountry OpenSky infers from the ICAO address.
longitude, latitudeCurrent WGS-84 coordinates, or null.
barometricAltitudeMetersBarometric altitude in meters, or null.
geometricAltitudeMetersGeometric altitude in meters, or null.
onGroundWhether OpenSky reports the aircraft on the ground.
velocityMetersPerSecondGround speed in meters per second, or null.
headingDegreesTrack clockwise from geographic north, or null.
verticalRateMetersPerSecondClimb/descent rate, or null.
squawkTransponder squawk code, or null.
positionSourceOpenSky numeric position-source code, or null.
lastContactAtISO timestamp of the latest aircraft message.
positionUpdatedAtISO timestamp of the latest position update.
sourceSnapshotAtISO timestamp assigned by OpenSky to the snapshot.
collectedAtISO timestamp when the Actor collected the response.
sourceUrlExact bounded OpenSky endpoint used by the run.

Unavailable telemetry remains null; it is not replaced with zero or an invented value.

Example output

A current row has this shape:

{
"icao24": "a1b2c3",
"callsign": "EXA123",
"originCountry": "United States",
"longitude": -73.9123,
"latitude": 40.7421,
"barometricAltitudeMeters": 3048,
"geometricAltitudeMeters": 3124.2,
"onGround": false,
"velocityMetersPerSecond": 215.7,
"headingDegrees": 87.4,
"verticalRateMetersPerSecond": 4.2,
"squawk": "1200",
"positionSource": 0,
"lastContactAt": "2026-09-09T06:45:12.000Z",
"positionUpdatedAt": "2026-09-09T06:45:11.000Z",
"sourceSnapshotAt": "2026-09-09T06:45:15.000Z",
"collectedAt": "2026-09-09T06:45:16.000Z",
"sourceUrl": "https://opensky-network.org/api/states/all?lamin=40.45&lomin=-74.3&lamax=41&lomax=-73.6"
}

How much does it cost to extract OpenSky aircraft state vectors?

Billing contains a $0.0005 run-start event plus one aircraft-state event for each saved row. The BRONZE price is $0.003696 per aircraft state vector; volume tiers reduce the item price. Failed records, filtered-out aircraft, and duplicate ICAO24 values do not incur an item event.

Approximate BRONZE examples:

Saved aircraftApproximate total
1$0.0042
10$0.0375
25$0.0929
100$0.3701

Apify applies the pricing tier associated with your account. The Console estimate shown before a run is the best place to confirm the applicable tier.

Scheduling a traffic monitor

Create an Apify Schedule to run the same region every few minutes or hours. Each run is an independent current snapshot. Use sourceSnapshotAt and icao24 as the core keys when comparing snapshots.

A common workflow is:

  1. schedule the Actor;
  2. export each default dataset through a webhook;
  3. upsert rows into a warehouse by snapshot and ICAO24;
  4. calculate additions, removals, movement, or aggregate traffic outside the Actor;
  5. alert only on conditions relevant to your operation.

The Actor does not maintain cross-run history or send alerts itself.

Integrations

Connect the default dataset to:

  • Google Sheets for a small operational log;
  • Make or Zapier for no-code routing;
  • Slack or email through a webhook workflow;
  • PostgreSQL, BigQuery, or Snowflake for snapshot comparison;
  • Python notebooks for aviation research;
  • BI tools for regional traffic dashboards.

For repeated ingestion, consume the dataset API after the run completes rather than scraping Console tables.

Run with the Apify API using cURL

Replace YOUR_TOKEN with an Apify API token:

curl -X POST \
"https://api.apify.com/v2/acts/automation-lab~opensky-aircraft-state-vectors/runs?token=YOUR_TOKEN&waitForFinish=120" \
-H "Content-Type: application/json" \
-d '{"region":"new-york","maxItems":25}'

Read dataset items with the defaultDatasetId returned by the run.

Run with JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/opensky-aircraft-state-vectors').call({
region: 'london',
onGround: false,
maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Run with Python

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/opensky-aircraft-state-vectors').call(
run_input={'region': 'los-angeles', 'onGround': True, 'maxItems': 50}
)
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

Use with MCP and AI agents

Add the Apify MCP server to Claude Code:

claude mcp add --transport http apify \
"https://mcp.apify.com?tools=automation-lab/opensky-aircraft-state-vectors"

Claude Desktop, Cursor, and VS Code setup

Claude Desktop, Cursor, and VS Code can use this equivalent MCP configuration:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=automation-lab/opensky-aircraft-state-vectors"
}
}
}

Example prompts:

  • "Collect up to 25 current aircraft state vectors around New York."
  • "Return current airborne aircraft around London as structured JSON."
  • "Run the Los Angeles ground-aircraft snapshot and summarize counts by origin country."

Ask the agent to preserve the dataset URL when you need the complete machine-readable result.

Reliability and retries

The Actor makes one official API request per attempt. Apify cloud runs use the platform's low-cost proxy route because direct cloud egress to OpenSky can time out; local runs use direct HTTP. It retries network errors, timeouts, HTTP 429, and temporary server errors up to three total attempts with backoff and a fresh proxy identity in the cloud. Stable client errors and malformed responses fail instead of returning a misleading empty dataset.

No residential or browser fallback is enabled. The structured API route avoids browser assets and keeps transfer small.

Limits and data freshness

  • Results are a current source snapshot, not guaranteed real-time tracking.
  • Aircraft outside OpenSky receiver coverage may be absent.
  • Callsign, coordinates, altitude, squawk, and movement fields may be null.
  • Ground-state reporting depends on aircraft and receiver data.
  • maxItems limits saved matches, not the upstream snapshot response.
  • Callsign filtering applies only when a callsign is transmitted.
  • The anonymous OpenSky service can enforce rate limits or change availability.
  • This Actor does not expose credentialed history.

For broad coverage, schedule several bounded regional runs rather than submitting one huge custom box.

Empty results

An empty dataset can be valid when no aircraft currently match the box and filters. If the result is unexpectedly empty:

  1. remove callsignPrefix;
  2. unset onGround;
  3. choose a busy preset;
  4. run at a different time;
  5. check the run log for an upstream error.

Empty successful runs still incur the one-time start event but no aircraft-state events.

Troubleshooting

The custom box is rejected

Check coordinate order, coordinate ranges, and the 25-square-degree area limit. Minimum values must be lower than maximum values.

I expected more aircraft

Increase maxItems, remove optional filters, and remember that receiver coverage changes over time.

A run fails with HTTP 429

The Actor already performs bounded retries. Reduce schedule frequency and retry later rather than starting many parallel runs.

Some values are null

OpenSky does not receive every telemetry field from every aircraft. Null preserves that uncertainty accurately.

Responsible use and legality

OpenSky data is provided by a community receiver network and remains subject to OpenSky's terms and policies. Use the Actor for lawful research, analysis, and operations. Do not use aircraft data to facilitate harassment, targeting, surveillance abuse, or unsafe activity.

You are responsible for your schedule frequency, data retention, downstream use, and compliance with applicable law. Avoid collecting more data than your legitimate purpose requires.

FAQ

Does this require an OpenSky account?

No. The supported current bounded state-vector request uses the anonymous public endpoint.

Does it return flight history?

No. Credentialed historical flights, arrivals, and departures are deliberately excluded.

Can I query one aircraft?

You can narrow a region and optionally filter by callsign prefix. The Actor does not promise a direct ICAO24 lookup mode.

Can I use a custom airport radius?

Provide a custom rectangle around the airport. Radius-to-box conversion is not part of the input contract.

Are the records deduplicated?

Yes. Each run keeps at most one record per ICAO24 value.

Can I export CSV or Excel?

Yes. Use the standard Apify dataset export controls or API formats.

Will it compare runs for me?

No. Store or forward scheduled datasets, then compare by ICAO24 and snapshot timestamp in your downstream system.

For complementary public aviation operations data, use FAA NAS Status & Airport Delays Scraper. It covers FAA airport delay and closure advisories rather than individual aircraft telemetry.

Use the two datasets together only when their different source scopes fit your analysis.