FlightAware Discussions

Questions to display flight information in API

Esteemed,
I need some help with the flight information.
When querying flight AAL963, for example, we get this API return:

<FlightXML2:flights>
<FlightXML2:faFlightID>AAL963-1575265556-airline-0146</FlightXML2:faFlightID>
<FlightXML2:ident>AAL963</FlightXML2:ident>
<FlightXML2:aircrafttype>B77W</FlightXML2:aircrafttype>
<FlightXML2:filed_ete>09:30:00</FlightXML2:filed_ete>
<FlightXML2:filed_time>1575512367</FlightXML2:filed_time>
<FlightXML2:filed_departuretime>1575509700</FlightXML2:filed_departuretime>
<FlightXML2:filed_airspeed_kts>470</FlightXML2:filed_airspeed_kts>
<FlightXML2:filed_airspeed_mach></FlightXML2:filed_airspeed_mach>
<FlightXML2:filed_altitude>310</FlightXML2:filed_altitude>
<FlightXML2:route>
       JPOOL1 BILEE SBI A766 KEHLI UM782 LEVAT UM782 ABIDE UM549 DA 
       DEL UM549 VUBOM UL795 ETAXI UZ38 MOXEP MOXE1A
</FlightXML2:route>
       <FlightXML2:actualdeparturetime>1575512400</FlightXML2:actualdeparturetime>
       <FlightXML2:estimatedarrivaltime>1575546180</FlightXML2:estimatedarrivaltime>
       <FlightXML2:actualarrivaltime>1575546180</FlightXML2:actualarrivaltime>
       <FlightXML2:diverted></FlightXML2:diverted>
       <FlightXML2:origin>KDFW</FlightXML2:origin>
       <FlightXML2:destination>SBGR</FlightXML2:destination>
       <FlightXML2:originName>Int'l de Dallas-Fort Worth</FlightXML2:originName>
       <FlightXML2:originCity>Dallas-Fort Worth, TX</FlightXML2:originCity>
<FlightXML2:destinationName>
       		Int'l de São Paulo-Garulhos 
</FlightXML2:destinationName>
       <FlightXML2:destinationCity>Sao Paulo</FlightXML2:destinationCity>
</FlightXML2:flights>

This gives us the following flight information:
“actualdeparturetime” = 12/04/2019 20:20:00 (UTC -06: 00)
“filed_departuretime” = 12/04/2019 19:35:00 (UTC -06: 00) - Scheduled Time
“actualarrivaltime” = 05/12/2019 08:43:00 (UTC -03: 00) - brazilian daylight saving time difference
“estimatedarrivaltime” = 12/05/2019 08:43:00 (UTC -03: 00) - Scheduled time

In displaying information on the flightaware web portal, we have the following:

flightInfo

“estimatedarrivaltime” = 09:05AM -02 (+1)

“actualarrivaltime” = 09:43AM -02 (+1)

My question is as follows:
The “actualarrivaltime” is the same as the “estimatedarrivaltime”, and the portal displays a different time. How should I get “estimatedarrivaltime” as it is on the web portal?

The value “Programado 09:05AM -02 (+1)” on the screenshot represents the filed (scheduled) arrival time. This can be calculated as the filed_departuretime + filed_ete from the API response.

Other common status calculations for FlightInfoStatus can be found on the FlightXML FAQ.