A simple library to get flight data from flightradar24 from within Python code.
This is a community-maintained continuation of supercoderz/pyflightdata, which has been inactive since 2021. It fixes the Cloudflare 403 errors that broke the original package (login and data requests were being blocked) and keeps the project alive with modern packaging and CI. If the original project resumes active maintenance, please prefer contributing there.
pip install pyflightdata2
The import name is unchanged, so existing code keeps working:
from pyflightdata import FlightDataThe test suite calls flightradar24 directly rather than mocking it, so CI runs are informational: GitHub-hosted runners get Cloudflare-blocked regardless of code correctness, unrelated to whether the library itself works.
The code for pyflightdata is licenced under MIT licence, see LICENCE.txt.
We dont own or store any underlying data, the API simply invokes the providers interfaces and returns the data.
Please raise an issue at https://github.com/dmoraine/pyflightdata/issues if you see a data or code issue. Pull requests are welcome.
pyflighdtata was started as a small hobby library, but it has found other users who have built interesting apps of their own. Here is a list of the apps that we know of, if you have any other apps that you want to be listed here then please get in touch with us.
- IATA arrivals cli - this is a neat and useful script to get the details of an airport in your command line - https://github.com/E3V3A/iata-arrivals-cli