Skip to main content

API for FlightRadar24

Project description

FlightRadarAPI

Unofficial API for FlightRadar24 written in Python 3.

If you want to use the data collected using this API commercially, you need to subscribe to the Business plan.
See more information at: https://www.flightradar24.com/terms-and-conditions

Python Package Pypi License Python Version Downloads

Installing FlightRadarAPI:

pip3 install FlightRadarAPI

Basic Usage:

Just create a FlightRadar24API object after importing it.

from FlightRadar24 import FlightRadar24API
fr_api = FlightRadar24API()

Getting airports list:

airports = fr_api.get_airports()

Getting airlines list:

airlines = fr_api.get_airlines()

Getting flights list:

flights = fr_api.get_flights(...)

Getting zones list:

zones = fr_api.get_zones()

You can also get more information about a specific flight such as: aircraft images, estimated time, trail, etc.

details = fr_api.get_flight_details(flight.id)
flight.set_flight_details(details)

print("Flying to", flight.destination_airport_name)

Filtering flights and airports:

Getting flights by airline:

airline_icao = "AZU"
thy_flights = fr_api.get_flights(airline = airline_icao)

Getting flights by bounds:

bounds = fr_api.get_bounds(zone)
flights = fr_api.get_flights(bounds = bounds)

Getting airport by ICAO or IATA:

airport_icao = "VNLK"
lukla_airport = fr_api.get_airport(airport_icao)

Getting and configuring Real-time Flight Tracker parameters:

config = fr_api.get_flight_tracker_config()

new_config = FlightTrackerConfig(...)
fr_api.set_flight_tracker_config(new_config, limit = 500, ...)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FlightRadarAPI-1.3.7.tar.gz (10.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page