Aviation Edge Flights Tracker API is a JSON REST API that provides real-time location data of live, airborne flights worldwide. It generally covers ADS-B flights with a number of radar flights. The data is gathered from multiple sources, aggregated in our servers and provided to API users in a constantly updated manner in real-time.
You may find input parameters, output examples with explanations for each item, filter list, and more in the documentation.
- Virtual maps for flight tracking
- Airport greeting and transportation services
- Route analysis
- Fuel consumption analysis
- Flight simulation
Data of all live flights in the world in one call:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&limit=30000
Specific flight based on flight number:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&flightIata=W8519
All flights of a specific airline:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&airlineIata=W8
Flights from a departure location:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&depIata=MAD
Flights to an arrival location:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&arrIata=GIG
Flights within a circle area based on lat and lng values and radius as the distance:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&lat=51.5074&lng=0.1278&distance=100&arrIata=LHR
Combinations: two airports and a specific airline flying between them:
GET https://aviation-edge.com/v2/public/flights?key=[API_KEY]&depIata=ATL&arrIata=ORD&airlineIata=UA
- To fetch data from the API (axios library used):
const axios = require('axios');
const API_KEY = 'YOUR_API_KEY'; // Replace with your API key
const ENDPOINT = `https://aviation-edge.com/v2/public/flights?key=${API_KEY}&depIata=CDG`;
async function fetchData() {
try {
const response = await axios.get(ENDPOINT);
return response.data;
} catch (error) {
console.error('Error fetching data from API:', error);
}
}
// Usage:
fetchData().then(data => {
console.log(data);
});
- To parse the data
In the example, we’ll fetch all live flights that have the “en-route” status.
async function getEnrouteFlights() {
const data = await fetchData();
const enrouteFlights = data
.filter(flight => flight.status === 'en-route')
.map(flight => flight.flight.iataNumber);
return enrouteFlights;
}
// Usage:
getEnrouteFlights().then(flights => {
console.log('En-route flights:', flights);
});
- Top print specific details
Fetching specific details about each flight like its airline, flight number or destination airport.
function printFlightDetails(data) {
data.forEach(flight => {
const airlineName = flight.airline.name || flight.airline.iataCode;
const flightNumber = flight.flight.iataNumber;
const destination = flight.arrival.iataCode;
console.log(`${airlineName} Flight ${flightNumber} is heading to ${destination}.`);
});
}
// Usage:
fetchData().then(data => {
printFlightDetails(data);
});
[
{"aircraft":
{
"iataCode":"B77W",
"icao24":"C0173A",
"icaoCode":"B77W",
"regNumber":"C-FIUR"
},
"airline":
{"iataCode":"AC",
"icaoCode":"ACA"
},
"arrival":
{"iataCode":"YYZ",
"icaoCode":"CYYZ"
},
"departure":
{"iataCode":"GRU",
"icaoCode":"SBGR"
},
"flight":
{"iataNumber":"AC91",
"icaoNumber":"ACA091",
"number":"91"
},
"geography":
{"altitude":10363.2,
"direction":342.0,
"latitude":23.36,
"longitude":-70.37
},
"speed":
{"horizontal":820.436,
"isGround":0.0,
"vspeed":0.0},
"status":"en-route",
"system":
{"squawk":null,
"updated":1643111484}
}
]
Contact us via email for any questions or support requests.
Get your API key in a minute and start testing the data right away. The API is provided through API subscriptions. All plans grant access to the Flights Tracker API and other APIs with a difference of the monthly API call limit. Choose the best plan for you and upgrade, downgrade or cancel your plan anytime without commitments.
The use of the API is subject to Aviation Edge Terms and Conditions.