# AeroAPI not returning results

**URL:** <https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313>\
**Category:** AeroAPI\
**Created:** [July 20, 2021, 6:28pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313 "2021-07-20T18:28:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxwhereto](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dxwhereto/32/85462_2.png) [@dxwhereto](https://discussions.flightaware.com/u/dxwhereto)\
**Post date:** [July 20, 2021, 6:28pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313/1 "2021-07-20T18:28:18Z")

</div>

Hi,

I’m trying to get results from AeroAPI for KLAX. Here is the request:

POST [http://flightxml.flightaware.com/json/FlightXML2/Departed](http://flightxml.flightaware.com/json/FlightXML2/Departed)  
{  
“airport”: “KLAX”,  
“filter”: “airline”,  
“howMany”: 10,  
“offset”: 0  
}

But the response comes back empty:

{  
“DepartedResult”: {  
“next\_offset”: -1,  
“departures”:   
}  
}

Why is this happening?

---

<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:** [July 20, 2021, 8:45pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313/2 "2021-07-20T20:45:16Z")

</div>

Hello,

Can you double check that you are properly connected and that your key is entered correctly?

Taylor Fischer  
Support Specialist

Toll Free: +1.800.713.8570  
Support Line:+1.713.588.6514

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

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

---

<div class="post-metadata">

**Author:** ![dxwhereto](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dxwhereto/32/85462_2.png) [@dxwhereto](https://discussions.flightaware.com/u/dxwhereto)\
**Post date:** [July 20, 2021, 8:52pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313/3 "2021-07-20T20:52:07Z")

</div>

Yes my key is entered correctly. If I don’t enter it correctly I get an error like this:

 Authentication Required 
# Authentication Required

---

<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:** [July 20, 2021, 9:07pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313/4 "2021-07-20T21:07:36Z")

</div>

Can you double check that all the operators (airport, filter, howmany, offset) all have checkmarks in their respective boxes?

Alternatively, copy and paste this command and see what results you get:

[http://flightxml.flightaware.com/json/FlightXML2/Scheduled?airport=“KLAX”&filter=“airline”&howMany=10&offset=0](http://flightxml.flightaware.com/json/FlightXML2/Scheduled?airport=%22KLAX%22&filter=%22airline%22&howMany=10&offset=0)

---

<div class="post-metadata">

**Author:** ![dxwhereto](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dxwhereto/32/85462_2.png) [@dxwhereto](https://discussions.flightaware.com/u/dxwhereto)\
**Post date:** [July 20, 2021, 9:23pm UTC](https://discussions.flightaware.com/t/aeroapi-not-returning-results/78313/5 "2021-07-20T21:23:22Z")

</div>

Oh I see the issue! You aren’t supporting JSON request bodies. When I changed it to use form/urlencoded it works. Thanks
