{"id":21355,"library":"FlightRadarAPI","title":"FlightRadarAPI","description":"Python SDK for FlightRadar24, providing access to real-time flight tracking data including flights, airlines, airports, and more. Currently at version 1.4.0, with monthly releases. Works with Python >=3.7.","status":"active","version":"1.4.0","language":"python","source_language":"en","source_url":"https://github.com/JeanExtreme002/FlightRadarAPI","tags":["flightradar24","aviation","flight-tracking","api-sdk"],"install":[{"cmd":"pip install FlightRadarAPI","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"HTTP library for API calls","package":"requests","optional":false}],"imports":[{"note":"The SDK exposes a class, not a module-level namespace.","wrong":"import FlightRadarAPI","symbol":"FlightRadarAPI","correct":"from FlightRadarAPI import FlightRadarAPI"},{"note":"","wrong":"","symbol":"Flight","correct":"from FlightRadarAPI import Flight"}],"quickstart":{"code":"from FlightRadarAPI import FlightRadarAPI\n\n# Initialize with your FlightRadar24 username/password or token\nusername = os.environ.get('FR24_USERNAME', '')\npassword = os.environ.get('FR24_PASSWORD', '')\napi = FlightRadarAPI(username=username, password=password)\n\n# Get real-time flights (returns list of Flight objects)\nflights = api.get_flights()\nfor flight in flights:\n    print(flight.callsign, flight.latitude, flight.longitude)","lang":"python","description":"Initialize the API with credentials and fetch live flight data."},"warnings":[{"fix":"Use `from FlightRadarAPI import FlightRadarAPI` and instantiate the class.","message":"The SDK changed from a module-level function-based API to a class-based API in version 1.0.0. Old code using `import FlightRadarAPI` and calling functions directly will break.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Provide valid credentials via environment variables or constructor arguments.","message":"The `get_flights` method now requires authentication (username/password or token). Anonymous access is no longer supported.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Implement request throttling and respect HTTP 429 responses.","message":"FlightRadarAPI uses rate limits; frequent requests may result in temporary bans. Use with respect and caching.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install FlightRadarAPI` and ensure import is `from FlightRadarAPI import FlightRadarAPI`.","cause":"Package not installed or installed but import path wrong.","error":"ModuleNotFoundError: No module named 'FlightRadarAPI'"},{"fix":"Create an instance first: `api = FlightRadarAPI(...)` then `api.get_flights()`.","cause":"Trying to call get_flights as a module function instead of a method on an instance.","error":"AttributeError: module 'FlightRadarAPI' has no attribute 'get_flights'"},{"fix":"Set FR24_USERNAME and FR24_PASSWORD environment variables or pass them to the constructor.","cause":"Missing credentials when calling methods that require authentication.","error":"ValueError: Needs authentication. Provide username and password."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}