OpenSky Flight
Pipeline
OpenSky's live API shows every aircraft in the sky right now, but keeps no history. This pipeline polls it over the Antelope Valley and Edwards AFB and stores each snapshot, building a time series of its own for traffic analytics and anomaly detection.
in progress · collection layer built, analytics next
A sky with a memory.
The OpenSky Network's /states/all endpoint returns a snapshot of every aircraft currently visible to its receivers: position, altitude, velocity, heading and transponder status. Each call replaces the last, so there's no way to look back.
Polling that endpoint on a schedule and storing each poll turns a stream of snapshots into history. From there you can ask how busy the airspace is by hour, which aircraft keep returning, and which tracks don't look physically plausible.
Where it stands.
Getting the data right first.
Two kinds of time
The schema keeps the aircraft's own timestamps (last contact, last position fix) apart from the pipeline's (when it polled, when it stored the row). Mixing them is how a pipeline quietly reports stale positions as current.
Idempotent by design
A unique key on aircraft ID and last-contact time means re-running a poll can't create duplicate rows.
Keep the awkward rows
Transponder replies with no position are stored, not dropped, so coverage gaps stay visible instead of being hidden by the pipeline.
Tested against a real response
The parser is checked against a recorded API response of nine aircraft, covering callsign padding, null states and timestamp types.
What comes next.
Storage and scheduling. Write the storage step and an Airflow DAG that polls on an interval, all running from one Docker Compose stack.
Traffic analytics. SQL views for traffic by hour and day, the busiest aircraft and how the box's coverage changes over time.
Anomaly detection. Rules for physically implausible jumps in speed, altitude or position, then an unsupervised outlier model for what the rules miss.
Known limits
Time resolution is capped by the poll interval, and OpenSky's free tier limits both the interval and the box size. Coverage is one region, not global, and units stay metric as OpenSky sends them.