I’m accessing the /json/FlightXML2/ url using python 3 scripts. To do GETs I’m using the “requests” lib from python.
What I would like to know is if the FlightAware database has the information about which planes are commercial and privates. Furthermore, if the plane is flying at the moment, if it is a commercial or private flight. I’m aiming at private flights tracking but I could not find in the documentation any possible query that would give me this information.
In FlightXML3 requests like AirportBoards allow only ga or commercial results to be returned.
Requests that utilize the FlightInfoStatusStruct for the return results, like FlightInfoStatus or AirportBoards contain a type field in the response to indicate if the flight is ga or commercial.
For AeroAPI, you can use the GET /airports/{id}/flights/departures method to retrieve departing flights for an aircraft. You can look at the type field, which is an enum of either General_Aviation┃Airline, whether this is a commercial or general aviation flight.