FlightAware Discussions

AeroAPI not returning results

Hi,

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

POST 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?

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: http://flightaware.com/commercial/

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

Authentication Required

Authentication Required

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

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