You will want to use “FlightInfoEx” to get the details about the flight you are interested in. Note that there will likely be multiple flights (over different days) for any given flight number so you will probably need to let the user pick which one they want.
Once you know which flight from the above call, you can use the corresponding faFlightID to call “MapFlightEx” to generate a map of the requested flight. There are several arguments you can pass to that function to control the map creation, and the return will be a Base64 encoded version of the image.
Alternatively, you can draw your own map by using the latitude/longitude of the flight and its path, as returned by “GetHistoricalTrack”, which will give you much more control over the appearance and interactivity of the map.