FlightRadarAPI

repository·main·Indexed 17 days ago

https://github.com/jeanextreme002/flightradarapi

An unofficial SDK for FlightRadar24 providing programmatic access to flight, airport, airline, and zone data for Python 3 (3.10+) and Node.js environments. It includes features for filtering flights by aircraft type or airline, calculating distances between entities, and downloading historical flight data (premium required). Intended strictly for educational purposes.

Tokens
12.9K
Snippets
50
Records
56
Agent score
64%

What's inside flightradarapi

  1. Important Usage Terms for FlightRadarAPI

    main

    FlightRadarAPI is an unofficial SDK for FlightRadar24.

    • Educational Use Only: This SDK should only be used for your own educational purposes.
    • Commercial Use: If you require commercial access to Flightradar24 data, you must contact business@fr24.com directly. Do not use this unofficial SDK for commercial purposes.
    • Compliance: Users should review Flightradar24's terms and conditions to ensure compliance.
  2. How APIClient and RetryPolicy work together

    main

    The APIClient uses a RetryPolicy to wrap network calls. When a request is made via client.request(), the client executes the request within an internal _run_with_retry loop.

    This loop specifically catches:

    1. CloudflareError: Raised when the client detects Cloudflare bot mitigation.
    2. requests.errors.RequestsError: Raised for transient network-level issues.

    If an error is caught, the client waits for a duration calculated by RetryPolicy.sleep_for() (which uses exponential backoff and jitter) and tries again, up to max_attempts. If all attempts fail, the last exception encountered is raised to the caller.