Skip to main content

flyitalyadsb: official Python client for the FlyItalyADSB ADS-B API

flyitalyadsb is the official Python client for the FlyItalyADSB ADS-B API: live and historical aircraft positions as JSON for any point on Earth, from a community network of about 3,200 ADS-B and MLAT receivers. Commercial use is allowed on every plan, Free included. The Free key is self-serve and answers up to 500 km around a point; the Pro plan (€49/month) returns the whole world in one request. The data is unfiltered: military, PIA and LADD aircraft are flagged, not removed, and the network's own MLAT locates aircraft that don't broadcast a position. Beyond live positions there are per-aircraft history, overflights of a place, notable-traffic events and an MCP server for AI assistants. Standard library only (no dependencies), fully typed, Python 3.9+.

pip install flyitalyadsb

Quickstart

Get a free key with your email on the API page (no approval step), then:

from flyitalyadsb import Client

client = Client()  # reads the key from FLYITALYADSB_API_KEY, or Client(api_key="...")

# Every aircraft within 25 km of London Heathrow, right now
for a in client.near(51.47, -0.45, 25):
    print(a.callsign, a.registration, a.icao_type, a.altitude, "MIL" if a.military else "")

print(client.limits)  # your plan and usage this month, from the X-FIA-* headers

Keep the key out of your code and out of git: an environment variable, or your secret store.

Methods

Every method is one request on your key; the account calls through request() (/me/location, /webhooks) are not counted. Radii are in kilometres.

Method Endpoint Returns
near(lat, lon, radius_km) /lat/{lat}/lon/{lon}/dist/{km} AircraftList: every aircraft within the radius, anywhere on Earth
world() /lat/0/lon/0/dist/20040 AircraftList: the whole world in one request (Pro and Business plans)
by_icao(icao) /icao/{hex} Aircraft, or None if it isn't seen now
by_callsign(callsign) /callsign/{callsign} Aircraft or None
by_registration(registration) /reg/{reg} Aircraft or None
military(), pia(), ladd() /mil, /pia, /ladd AircraftList: military, PIA and LADD aircraft seen now, network-wide
squawk(code) /sqk/{squawk} AircraftList: e.g. 7700, 7600, 7500, network-wide
aircraft_type(designator) /type/{type} AircraftList: an ICAO type, e.g. "A320", "B738", "EC35"
history(icao) /history/{icao} HistoryDates: the UTC days with a track
history(icao, day) /history/{icao}/{date} Trace or None: one day's track, positions() for the points
profile(icao) /profile/{icao} Profile or None: identity, live status, history summary, links
overflights(lat, lon, radius_km, start, end) /overflights Overflights: the aircraft that flew over a place between two times
events(lat, lon, radius_km, since=, until=, kinds=) /events Events: emergencies, military and other notable traffic, up to 7 days back
request(method, path, params=, body=) any other, e.g. /me/location, /webhooks the parsed JSON
request_key(email, found_via="pypi") (a function) POST /keys asks for a free key: the address gets a one-time link. Never called for you

Aircraft has typed fields with readable names (callsign, registration, icao_type, lat, lon, altitude in feet or "ground", ground_speed in knots, vertical_rate in ft/min, squawk, source such as adsb_icao or mlat, db_flags) and the flags military, interesting, pia, ladd, on_ground and from_mlat. Every field the API sent stays available with its own name in raw and through get(), e.g. a.get("nav_altitude_mcp"). Lists are iterable and have len(). Every result keeps the full JSON in raw. The fields and units: fields and units.

from datetime import datetime, timedelta, timezone

now = datetime.now(timezone.utc)

# What flew within 3 km of a place in the last 2 hours, with the lowest altitude in the circle
for o in client.overflights(45.4642, 9.19, 3, now - timedelta(hours=2), now):
    print(o.closest_time, o.registration, o.icao_type, o.callsigns, o.min_alt_ft, o.closest_km)

# Emergencies and military traffic within 100 km in the last 24 hours
for e in client.events(45.54, 10.22, 100, kinds=["emergency", "military"]):
    print(e.time, e.kind, e.reason, e.callsign, e.registration, e.map_url)

# One aircraft's days with a track, and its last day's track
dates = client.history("4ca7b5")
if dates.dates:
    track = client.history("4ca7b5", dates.dates[-1])
    print(len(track.positions()) if track else 0, "points")

Plans and limits

Choose mostly by area: each request asks for the aircraft in a circle, and the largest circle depends on the plan. Commercial use is allowed on every plan, Free included.

Plan Price per month (before tax) Requests/min (per key) Requests/month Radius per request Overflights
Free €0 30 300,000 up to 500 km 10 km, 6 h window
Starter €9 60 1,000,000 up to 1,000 km 25 km, 24 h
Pro €49 300 10,000,000 whole world 50 km, 24 h
Business €249 1,000 50,000,000 whole world 50 km, 24 h
  • The Free plan also has a cap of 100 requests a minute per IP.
  • A paid plan raises the limits of the key you already have.
  • Requests refused for a limit are not counted, and nothing is ever billed beyond the plan.
  • The monthly counter resets on the 1st. No plan includes an SLA: the service is best effort.
  • Current prices and limits are always on the plans page.

client.limits (and .limits on every result) reports the key's state from the X-FIA-Plan, X-FIA-Limit-Per-Min, X-FIA-Quota-Month and X-FIA-Used-Month headers: plan, limit_per_min, quota_month, used_month and remaining_month.

Errors

Exception When Useful attributes
PlanLimitError 403 or 429: a limit of the plan reason ("radius", "overflights", "paid_plan", "rate_limit", "monthly_quota"), max_radius_km, retry_after, resets, plans_url
AuthError 401: missing or invalid key help_url
NotFoundError 404 (the lookups return None instead)
ApiError any other error answer, e.g. 400 status, message, code, body, limits
TransportError no usable answer: network, timeout, not JSON

All of them are FlyItalyADSBError.

from flyitalyadsb import Client, PlanLimitError

client = Client(user_agent="my-app/1.0")  # name your app in the User-Agent
try:
    everything = client.world()
except PlanLimitError as e:
    if e.reason == "radius":  # Free and Starter: 500 and 1,000 km per request
        print(f"Up to {e.max_radius_km:g} km on this plan; the whole world needs Pro: {e.plans_url}")
    elif e.reason == "monthly_quota":
        print("Monthly quota used up until", e.resets, e.plans_url)
    else:
        print(e)

The client never hammers the API. On a 429 or 503 that carries Retry-After of at most max_retry_wait seconds (default 30), it waits once and tries again; otherwise it raises. Radius and monthly-quota errors are never retried. The timeout is 30 seconds by default (Client(timeout=...)).

What's in the data

  • One record per aircraft in readsb's aircraft.json format: ICAO address, position, altitude, speed, track, vertical rate, squawk, category, and the military, PIA and LADD flags. Registration and ICAO type are present for about 99% of aircraft, callsign for about 98%.
  • Unfiltered: military, PIA and LADD aircraft are flagged, not hidden. Positions from ADS-B and from the network's own MLAT, which covers many military aircraft.
  • The picture is rebuilt every 2 seconds. Coverage follows the receivers, worldwide: check an area with the coverage tool before you build on it.
  • History: per-aircraft daily tracks for every day since 2026-08-17, plus 2022 to 2024 with gaps. Overflights of a place since 2026-08-17.
  • Not included: routes (departure and arrival airports), schedules and photos.

Licence and credit

The flight data is licensed CC BY-SA 4.0. The only thing asked is a credit with the licence where your users see the data (in the app, on the device or in its manual, on the product page), with a link to flyitalyadsb.com:

Flight data: FlyItalyADSB (flyitalyadsb.com), CC BY-SA 4.0

The same line is flyitalyadsb.ATTRIBUTION. Share-alike covers the data and adapted versions of it (a dataset, feed or API built from it), not your product's code, artwork or design. Details: using the data in a product and the terms of service.

The code of this package is MIT; the data it returns is not MIT (see NOTICE).

MCP server for AI assistants

The same data, with the same key, is available to AI assistants through an MCP server at https://flyitalyadsb.com/mcp (Streamable HTTP, listed in the official MCP registry as com.flyitalyadsb/mcp). On claude.ai: Connectors, Add custom connector, URL https://flyitalyadsb.com/mcp. In Claude Code:

claude mcp add --transport http flyitalyadsb https://flyitalyadsb.com/mcp \
  --header "X-Api-Key: $FLYITALYADSB_API_KEY"

Guide: MCP and AI agents.

Found a bug in the client? Open an issue.


Flight data: FlyItalyADSB (flyitalyadsb.com), CC BY-SA 4.0. Service provided by Nesso Labs S.r.l.

Metadata

Release files for flyitalyadsb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flyitalyadsb 0.1.0
File Size Uploaded Provenance Actions
flyitalyadsb-0.1.0.tar.gz 25.9 kB With provenance Details for flyitalyadsb-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flyitalyadsb 0.1.0
File Interpreter ABI Platform Actions
flyitalyadsb-0.1.0-py3-none-any.whl Python 3 none any Details for flyitalyadsb-0.1.0-py3-none-any.whl

Total release size: 48.5 kB

Release files / flyitalyadsb-0.1.0.tar.gz

Download URL flyitalyadsb-0.1.0.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82578e313f347f30da73547bd9280d27f9b27131d843162db96ceb7905e1bd6c
BLAKE2b-256 checksum
How to use checksums
e247b756af3d7a4d2769334d5b39b682c9aaa528408be01514a36f1df5557b95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / flyitalyadsb-0.1.0-py3-none-any.whl

Download URL flyitalyadsb-0.1.0-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47e083d7bad6b012910486392ad61245ba4ee706d504f8255d8a2464100fb632
BLAKE2b-256 checksum
How to use checksums
77922e9a799cb365892c1a1197760f2e8b9487054e8b373c71b69b08bdf8cce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for flyitalyadsb 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flyitalyadsb-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page