Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python/FlightRadar24/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down