# Need help with FlightXML API

**URL:** https://discussions.flightaware.com/t/need-help-with-flightxml-api/18766
**Category:** AeroAPI
**Created:** [July 21, 2016, 11:02am UTC](https://discussions.flightaware.com/t/need-help-with-flightxml-api/18766 "2016-07-21T11:02:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HamoodiJosef](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HamoodiJosef](https://discussions.flightaware.com/u/HamoodiJosef)
#### Post date: [July 21, 2016, 11:02am UTC](https://discussions.flightaware.com/t/need-help-with-flightxml-api/18766/1 "2016-07-21T11:02:21Z")

</div>

Hello, I would like to fetch some data about flight (for example AIC102) from the api.

I need the following information (please look the screenshot)

[prntscr.com/bvmvgo](http://prntscr.com/bvmvgo)

But when I try to receive information using method FlightInfoEx (parameters are ident=AIC102, howMany=1,offset=0 ), I see strange time (the problem is not in timezone, because minutes are wrong too).

Could anybody explain me how to fetch such information from response?  
Thank you

---

<div class="post-metadata">

### Author: ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)
#### Post date: [July 21, 2016, 4:12pm UTC](https://discussions.flightaware.com/t/need-help-with-flightxml-api/18766/2 "2016-07-21T16:12:03Z")

</div>

Do not use howMany=1. You will very frequently get a different flight than the one you were hoping for. You need to ask for howMany\>1 and walk through the results to find the specific one you think you want (howMany of 1-15 are the same price, so there is no price benefit anyways).

The filed arrival time comes from (filed\_departuretime + filed\_ete).

The estimated arrival time is the estimatedarrivaltime field. Once it has arrived, you can use actualarrivaltime. If you want to know the originally scheduled time, you can use AirlineFlightSchedules to look it up by date and ident.

The duration is filed\_ete field, but once it has arrived you can use (actualarrivaltime - actualdeparturetime) to get the precise duration.

---

<div class="post-metadata">

### Author: ![HamoodiJosef](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HamoodiJosef](https://discussions.flightaware.com/u/HamoodiJosef)
#### Post date: [July 22, 2016, 10:41am UTC](https://discussions.flightaware.com/t/need-help-with-flightxml-api/18766/3 "2016-07-22T10:41:00Z")

</div>

Thanks a lot!  
It works now 😃
