Aviationstack is a service that provides real-time flight status and aviation data. Aviationstack provides rich API suits to access aviation data globally. You can test the API for free and choose the paid plan for production use.
Check out the product => Link to the home page.
How to use Aviationstack API
First, create your free account in Aviationstack. Click here to go to the signup page.
Once your account is created, you can start using Positionstack APIs.
Here is an example of the API to get real-time flight status.
And, here is the response.
"pagination": {
"limit": 100,
"offset": 0,
"count": 100,
"total": 369365
},
"data": [
{
"flight_date": "2020-01-08",
"flight_status": "scheduled",
"departure": {
"airport": "Changsha",
"timezone": "Asia/Shanghai",
"iata": "CSX",
"icao": "ZGHA",
"terminal": "2",
"gate": null,
"delay": null,
"scheduled": "2020-01-08T00:35:00+00:00",
"estimated": "2020-01-08T00:35:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"arrival": {
"airport": "Singapore Changi",
"timezone": "Asia/Singapore",
"iata": "SIN",
"icao": "WSSS",
"terminal": "1",
"gate": null,
"baggage": null,
"delay": null,
"scheduled": "2020-01-08T05:00:00+00:00",
"estimated": "2020-01-08T05:00:00+00:00",
"actual": null,
"estimated_runway": null,
"actual_runway": null
},
"airline": {
"name": "Scoot",
"iata": "TR",
"icao": "TGW"
},
"flight": {
"number": "125",
"iata": "TR125",
"icao": "TGW125",
"codeshared": null
},
"aircraft": null,
"live": null
}
]
.............
.............
more data.....
}
Aviationstack also provides historical data. You can pass the data from which you need the aviation record in the API. Here is an example.
These APIs are easy to integrate and you can use any backend or front-end library to integrate it into your application.
Here is the sample Node.js code to integrate Aviationstack API.
var options = {
'method': 'GET',
'url': 'http://api.aviationstack.com/v1/flights?access_key=paste_your_access_key_here',
'headers': {
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
You can use Aviationstack as a reliable tool to build your application and focus on business logic instead of collecting and maintaining data. It’s great for startups and Aviationstack provides affordable pricing plans to go to production.