# Learning Flight Search

**URL:** <https://discussions.flightaware.com/t/learning-flight-search/80827>\
**Category:** AeroAPI\
**Created:** [January 3, 2022, 1:21am UTC](https://discussions.flightaware.com/t/learning-flight-search/80827 "2022-01-03T01:21:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssegraves](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/ssegraves/32/92453_2.png) [@ssegraves](https://discussions.flightaware.com/u/ssegraves)\
**Post date:** [January 3, 2022, 1:21am UTC](https://discussions.flightaware.com/t/learning-flight-search/80827/1 "2022-01-03T01:21:42Z")

</div>

I am new to this API but I would like to send AeroAPI a flight number or route and a date and get back the flight id but I am getting weird results.

For example, passing -origin “KPDX” -destination “KEWR” for today (01/02/2022) I get back only a United flight that is delayed.

In the advanced search options I can see there are different criteria I can set to look for departure time, but can I simply just put in the departure date? What is the best way to go about this?

---

<div class="post-metadata">

**Author:** ![Fischer6385](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/fischer6385/32/114966_2.png) [@Fischer6385](https://discussions.flightaware.com/u/Fischer6385)\
**Post date:** [January 4, 2022, 7:49pm UTC](https://discussions.flightaware.com/t/learning-flight-search/80827/2 "2022-01-04T19:49:06Z")

</div>

The reason you are only seeing the delayed flight is because it will show you the most recent flights first, which in this case is a flight that has yet to happen.

I would recommend looking into the GET flights/search/advanced call, specifically at the operators you can use. For instance, you could set something like {\< arrivalTime 1276811040} and a departure time to match afterwards to call for a specific time frame.

Taylor Fischer -  
Commercial Support

Toll Free: +1.800.713.8570  
Support Line:+1.713.588.6514

Eleven Greenway Plaza, Suite 2900 - Houston, Texas - 77046  
FlightAware

–  
Learn about FlightAware Global and Premium Accounts: [Commercial Services - FlightAware](http://flightaware.com/commercial/)

---

<div class="post-metadata">

**Author:** ![ssegraves](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/ssegraves/32/92453_2.png) [@ssegraves](https://discussions.flightaware.com/u/ssegraves)\
**Post date:** [January 7, 2022, 5:57am UTC](https://discussions.flightaware.com/t/learning-flight-search/80827/3 "2022-01-07T05:57:50Z")

</div>

Thanks Taylor, I appreciate the response!

I tried the following in the advanced search {orig KPDX} {dest KEWR} {\< arrivalTime 1641535200}

But nothing is returned. I would expect to see at least one flight. I’m assuming I’m missing something simple.
