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.

Or from code, with an address its owner gave you for this. audience (who the data is for: AUDIENCES) and other_source (another flight data source already in use, and the role of this one: OTHER_SOURCES) are accepted now and will soon be required by the API:

from flyitalyadsb import request_key

request_key("you@example.com", audience="my_product_users", other_source="none", name="My app")

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 Fleet 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", audience=, other_source=) (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 Tracks Overflights
Free €0 30 300,000 up to 500 km last 7 days not included
Starter €9 60 1,000,000 up to 1,000 km last 30 days 10 km, 6 h window
Pro €49 300 10,000,000 whole world last 90 days 50 km, 24 h
Fleet €149 300 10,000,000 whole world the whole archive 50 km, 24 h
  • The Free plan also has a cap of 100 requests a minute per IP.
  • Fleet adds a list of up to 25 watched aircraft, with a webhook at every takeoff and landing.
  • More than 25 aircraft, more volume, an SLA or reselling the data as an API or feed: get in touch.
  • 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. Self-serve plans are best effort; an SLA is available on tailored plans, in a written agreement.
  • 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 refreshes every half second. 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 2023-03-03 except 2026-05-05 and 2026-05-06 (from 2022-04-10 to 2023-03-02 only the first and last point of each flight). 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.2.2

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.2.2
File Size Uploaded Provenance Actions
flyitalyadsb-0.2.2.tar.gz 27.9 kB With provenance Details for flyitalyadsb-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 52.0 kB

Release files / flyitalyadsb-0.2.2.tar.gz

Download URL flyitalyadsb-0.2.2.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
11827aabc68998efef177d45093c85fc02429dc2616cb8e46fe23fdb381410c4
BLAKE2b-256 checksum
How to use checksums
6afc8f829cd4e314d14e868c30559c358c9785c47f5ce764dde97760dfd05d18
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 14, 2026.

Transparency log

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

Download URL flyitalyadsb-0.2.2-py3-none-any.whl
Size 24.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
918e9fca7f3c3ea56daee29792697947bdbd48b2b60dd93e3b3ef696cac8ca38
BLAKE2b-256 checksum
How to use checksums
387fe9aa61b64b10f2d214f919ac4dcc9b178284271f51f096f9d9054ad090c0
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 14, 2026.

Transparency log

Security for flyitalyadsb 0.2.2

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.2.2.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 14, 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