AirLabs API Documentation
Real-time flight tracking, live airport schedules, and global aviation database through a single REST API.
curl " https://airlabs.co/api/v9/flights?api_key=YOUR_API_KEY"
[{
"flight_iata" : " SQ7371" ,
"dep_iata" : " AMS" ,
"arr_iata" : " SIN" ,
"lat" : 21.366613 ,
"lng" : 66.61321 ,
"alt" : 10021 ,
"speed" : 966 ,
"dir" : 121 ,
"aircraft_icao" : " B744" ,
"airline_iata" : " SQ" ,
"status" : " en-route"
}]
Endpoint
Description
/flights
Real-time positions for all airborne flights worldwide
/schedules
Live departure and arrival schedules for any airport
/flight
Detailed information for a specific flight by number
/alert
Webhook-based alerts for flight status changes
/nearby
Find nearest airports by geographic coordinates
/suggest
Airport and city name autocomplete
Endpoint
Description
/airports
Global airports with IATA/ICAO codes, coordinates, timezones
/cities
World cities mapped to airports
/airlines
Airlines with IATA/ICAO codes, names, and countries
/fleets
Aircraft fleet data by airline
/routes
Airline route networks with origin and destination
/countries
Countries database
/taxes
Airport tax codes and breakdowns
/timezones
Timezone and UTC offset for every airport
const res = await fetch ( `https://airlabs.co/api/v9/schedules?dep_iata=JFK&api_key=${ API_KEY } ` ) ;
const { response : flights } = await res . json ( ) ;
flights . forEach ( f => console . log ( `${ f . flight_iata } → ${ f . arr_iata } at ${ f . dep_time } ` ) ) ;
import requests
params = {"dep_iata" : "JFK" , "api_key" : API_KEY }
response = requests .get ("https://airlabs.co/api/v9/schedules" , params = params )
for flight in response .json ()["response" ]:
print (f"{ flight ['flight_iata' ]} → { flight ['arr_iata' ]} at { flight ['dep_time' ]} " )
$ url = "https://airlabs.co/api/v9/schedules?dep_iata=JFK&api_key= " . $ api_key ;
$ response = json_decode (file_get_contents ($ url ), true );
foreach ($ response ["response " ] as $ flight ) {
echo $ flight ["flight_iata " ] . " → " . $ flight ["arr_iata " ] . "\n" ;
}