# Codeshare how to obtain

**URL:** <https://discussions.flightaware.com/t/codeshare-how-to-obtain/16480>\
**Category:** AeroAPI\
**Created:** [April 10, 2015, 3:42pm UTC](https://discussions.flightaware.com/t/codeshare-how-to-obtain/16480 "2015-04-10T15:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RicardoSousa](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@RicardoSousa](https://discussions.flightaware.com/u/RicardoSousa)\
**Post date:** [April 10, 2015, 3:42pm UTC](https://discussions.flightaware.com/t/codeshare-how-to-obtain/16480/1 "2015-04-10T15:42:15Z")

</div>

Good afternoon.

I am using the flightXml api, using the queries Enroute, Scheduled, Arrived and Departed. My question is how can i obtain the codeshare from flights?

Can i obtain codeshare per Airport, from flights that will departed or scheduled?

Thanks for all.

---

<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:** [April 10, 2015, 4:08pm UTC](https://discussions.flightaware.com/t/codeshare-how-to-obtain/16480/2 "2015-04-10T16:08:46Z")

</div>

Once you know the faFlightID of the flight you are interested in, you can call “AirlineFlightInfo” and one of the fields is the list of codeshares.
