apilayer / aviationstack Goto Github PK
View Code? Open in Web Editor NEWFree, Real-Time Flight Tracker & Status REST API
Home Page: https://aviationstack.com
Free, Real-Time Flight Tracker & Status REST API
Home Page: https://aviationstack.com
By doing regular request to api:
http://api.aviationstack.com/v1/flights?access_key=
i get totally empty response:
{
"pagination": {
"limit": 100,
"offset": 0,
"count": 0,
"total": 0
},
"data": []
}
adding any optional parameters doesn't help.
I did a test query on this flight.
this was returned.
{"pagination":{"limit":100,"offset":0,"count":1,"total":1},"data":[{"flight_date":"2020-02-04","flight_status":"landed","departure":{"airport":"Singapore Changi","timezone":"Asia/Singapore","iata":"SIN","icao":"WSSS","terminal":"1","gate":"D35","delay":13,"scheduled":"2020-02-04T20:25:00+00:00","estimated":"2020-02-04T20:25:00+00:00","actual":"2020-02-04T20:38:00+00:00","estimated_runway":"2020-02-04T20:38:00+00:00","actual_runway":"2020-02-04T20:38:00+00:00"},"arrival":{"airport":"Penang International","timezone":"Asia/Kuala_Lumpur","iata":"PEN","icao":"WMKP","terminal":"I","gate":null,"baggage":null,"delay":null,"scheduled":"2020-02-04T21:50:00+00:00","estimated":"2020-02-04T21:50:00+00:00","actual":"2020-02-04T21:33:00+00:00","estimated_runway":"2020-02-04T21:33:00+00:00","actual_runway":"2020-02-04T21:33:00+00:00"},"airline":{"name":"Scoot","iata":"TR","icao":"TGW"},"flight":{"number":"428","iata":"TR428","icao":"TGW428","codeshared":null},"aircraft":{"registration":"9V-TAU","iata":"A320","icao":"A320","icao24":"76D035"},"live":null}]}
The actual timings here (2020-02-04T20:38:00+00:00 and 2020-02-04T21:33:00+00:00 appears to be in local time (GMT+8), not +0.
Why am i so sure? I was one of the pilot operating this flight.
Hi,
I am trying to pull in live data from the API for the flights but it keeps returning a null response in the live section of the json.
I am using the following command
https://api.aviationstack.com/v1/flights?access_key=*access_kay*&limit=10&offset=0
I am using a basic plan? I get the following response
{
"pagination": {
"limit": 10,
"offset": 0,
"count": 10,
"total": 9594200
},
"data": [ ...
{
"flight_date": "2022-05-18",
"flight_status": "scheduled",
"departure": {
"airport": "Kingsford Smith",
"timezone": "Australia/Sydney",
"iata": "SYD",
"icao": "YSSY",
"terminal": null,
"gate": null,
"delay": null,
"scheduled": "2022-05-18T03:15:00+00:00",
"estimated": "2022-05-18T03:15:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"arrival": {
"airport": "Adelaide International Airport",
"timezone": "Australia/Adelaide",
"iata": "ADL",
"icao": "YPAD",
"terminal": null,
"gate": null,
"baggage": null,
"delay": null,
"scheduled": "2022-05-18T05:00:00+00:00",
"estimated": "2022-05-18T05:00:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"airline": {
"name": "Qantas",
"iata": "QF",
"icao": "QFA"
},
"flight": {
"number": "7448",
"iata": "QF7448",
"icao": "QFA7448",
"codeshared": null
},
"aircraft": null,
"live": null
}
]
}
If someone can give some insight into what is going wrong, I would be most grateful.
Thanks
Luke
Hi,
I have using AviationStack API for several years, and starting from December, I cannot connect to it anymore, due to the following error when connecting to any API endpoint:
{"error":{"code":"Argument 1 passed to App\Legacy\SharedFunctions::mysql_fetch_array() must be an instance of PDOStatement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in /opt/component/app/Legacy/AviationstackFunctions.php on line 2190","message":"Argument 1 passed to App\Legacy\SharedFunctions::mysql fetch array() must be an instance of PDOStatement, instance of Doctrine\DBAL\ForwardCompatibility\Result given, called in /opt/component/app/Legacy/AviationstackFunctions.php on line 2190"}}
Tried from API doc webpage, Postman, Java code, etc, so the problem is not on the client side.
How come there is no Bombardier or Gulfstream?
Real-Time Flights Available on: All plans so all the option sould work using a free plan key like the optional flight_date parameter
cf api documemention Real-Time Flights Available on: All plans
flight_date [Optional] Filter your results by providing a flight date in the format YYYY-MM-DD. Example: 2019-02-31
https://api.aviationstack.com/v1/flights
? access_key = XXXX
but if we provide the flight_date parameter we get the error :
"error": {
"code": "function_access_restricted",
"message": "Your current subscription plan does not support this API function."
Because the api end on Historical Flights Available point because the name for both are same '/v1/flights' and
Historical Flights is not free plan !
Historical Flights Available on: Basic Plan and higher
https://api.aviationstack.com/v1/flights
? access_key = XXXX
& flight_date = 2019-12-11
solution => change api enpoint for one off them or change the Real-Time Flights response to return only flight off the day ( not the case actualy seem to return also J-1 flight may be more
The total of 6471 airports doesn't seemt to be up to date:
IATA counted cca 9000 3 years ago, ICAO - 10K.
What is the data source? When was the last time it was updated?
Hello Aviation Stack team,
I am testing the API functionalities and I believe that the time RFC3339 (ISO8601) fields are always returning +00:00 even though the time shown is always local.
For example, running this query http://api.aviationstack.com/v1/flights?access_key=c13216e8c004047e54ea58de41784ba7&flight_iata=LX3047
Returns:
(...)
{"airport":"Heathrow","timezone":"Europe/London","iata":"LHR","icao":"EGLL","terminal":"2","gate":"B48","baggage":"8","delay":null,"scheduled":"2020-06-30T07:40:00+00:00","estimated":"2020-06-30T07:40:00+00:00","actual":"2020-06-30T07:33:00+00:00","estimated_runway":"2020-06-30T07:27:00+00:00","actual_runway":"2020-06-30T07:27:00+00:00"}
(...)
Nevertheless, this is local London time as shown in the image:
These fields should return:
"2020-06-30T07:40:00+01:00"
or:
"2020-06-30T06:40:00+00:00"
Thank you
Kind Regards,
Emanuel Varela
I'm calling the flights endpoint with valid requests which worked previously but today the server response only with empty arrays.
I test with legit airports and even airplanes that are currently in the air and no data is returned from the server,also no error code just an empty array.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.