The flight_id should be considered to be opaque (similar to a UUID) and is not intended to have externally parsable or understandable meanings. It is not possible to “generate” a flight_id algorithmically by knowing just the flight number and its time.
You would include a start and end date if you are looking for a flight within a specific time range. If no time frame is selected it would give you the most recent flights, up to 15 if there is no max_pages set., with some that could be occurring in the future.
There is no public documentation of the values of status field.
My application requires getting just the single flight - i know the departure date-time.
I’d like a single flight returned or none.
Is /flights/UAL82?... the optimal api call?
I noticed that in the above api call - I need to set both the start and end parameters to get a specific flight. Actually I need to add 1 second to the end since it doesn’t allow the same time for both start and end.
Pls consider making those time parameters inclusive - so that the same timestamp can be used.
Hello @bovineone, @cbw, could I please get an update on this matter? I’m specifically interested in obtaining information about a particular flight, and would like to avoid any extraneous data. Could you possibly share any relevant code or documentation with me? Thank you.
The premise of the original question in this thread is not valid. It’s simply not possible to “generate” your own fa_flight_id for a flight and be able to directly look it up from that generated id. The fa_flight_ids should be basically treated as opaque GUID/UUID values, since they are generated by our server in a way that is not repeatable and not deterministic. The only way to obtain the fa_flight_id for a flight is to receive that id from another of our API responses.
To look up a recent flight by ident (within the last 14 days), you should be using GET /flights/-ident-
If you know a little more about a very recent flight (within the last 48 hours), you can also use the search function: GET /flights/search
If you are interested in an older flight (more than 14 days ago), then you can use the history lookup: GET /history/flights/-ident-