diff --git a/python/FlightRadar24/api.py b/python/FlightRadar24/api.py index 79007d0..76f3213 100644 --- a/python/FlightRadar24/api.py +++ b/python/FlightRadar24/api.py @@ -285,7 +285,8 @@ def get_flights( registration: Optional[str] = None, aircraft_type: Optional[str] = None, *, - details: bool = False + details: bool = False, + flight_id: Optional[str] = None, ) -> List[Flight]: """ Return a list of flights. See more options at set_flight_tracker_config() method. @@ -306,6 +307,7 @@ def get_flights( if bounds: request_params["bounds"] = bounds.replace(",", "%2C") if registration: request_params["reg"] = registration if aircraft_type: request_params["type"] = aircraft_type + if flight_id: request_params["selected"] = flight_id # Get all flights from Data Live FlightRadar24. response = APIRequest(Core.real_time_flight_tracker_data_url, request_params, Core.json_headers, timeout=self.timeout)