Flight Tracking and Flight Status API

Harness FlightAware's flight data using FlightXML, the world’s most robust flight tracking API.

Start pushing requests for free TODAY! Get Pricing

Key Features

  • Access and leverage all of FlightAware's flight data sources through our easy to use API
  • Real-time configurable flight event alerts
  • Volume-based pricing on API queries
  • Numerous code examples in over a dozen programming languages

FlightXML Licensing

Feature
FlightXML Basic
FlightXML Business
FlightXML Commercial
Monthly Access Fee
$0
$500 minimum
(based on end user count)
Personal Use
Allowed
Allowed
Allowed
Internal Commercial Use
Not Allowed
Allowed
Allowed
Commercialization and Productization
B2C applications only
B2C applications only
Allowed
Service Level Agreement
Not Available
99.0% up-time
99.0% up-time
Support via E-mail
Not Available
Included, during FlightAware business hours
Included, during FlightAware business hours
Support via Phone
Not Available
$500/hour, during FlightAware business hours
Included, during FlightAware business hours
Feature
Monthly Access Fee
FlightXML Basic
$0
FlightXML Business
$500 minimum
(based on end user count)
FlightXML Commercial
Usage Fee
FlightXML Basic
FlightXML Business
FlightXML Commercial
Personal Use
FlightXML Basic
Allowed
FlightXML Business
Allowed
FlightXML Commercial
Allowed
Internal Commercial Use
FlightXML Basic
Not Allowed
FlightXML Business
Allowed
FlightXML Commercial
Allowed
Commercialization and Productization
FlightXML Basic
B2C applications only
FlightXML Business
B2C applications only
FlightXML Commercial
Allowed
Service Level Agreement
FlightXML Basic
Not Available
FlightXML Business
99.0% up-time
FlightXML Commercial
99.0% up-time
Support via E-mail
FlightXML Basic
Not Available
FlightXML Business
Included, during FlightAware business hours
FlightXML Commercial
Included, during FlightAware business hours
Support via Phone
FlightXML Basic
Not Available
FlightXML Business
$500/hour, during FlightAware business hours
FlightXML Commercial
Included, during FlightAware business hours
FlightXML Basic
Not Available
FlightXML Business
FlightXML Commercial

Push and Pull Flight Data

FlightXML 2.0 is a simple, query-based API that gives programs access to any of FlightAware’s flight data. Users can obtain current or historical data and the API is compatible with any application that supports SOAP/WSDL or REST/JSON.

Query the API for flights based on a combination of properties:

  • Flight or tail number
  • Origin and/or destination airport
  • Aircraft type
  • A low-to-high range of altitude
  • A low-to-high range of groundspeed

Retrieve flight data through the API including:

  • The flight or tail number
  • The aircraft type
  • Origin and destination
  • Time the last position was received
  • Longitude, latitude, groundspeed and altitude

Airports can also obtain a list of flight data via the API, including:

  • Scheduled flights
  • Flights that have departed
  • Flights that are enroute to the airport
  • Flights that have arrived at the airport

FlightXML 2.0 Code Examples

import requests

username = "YOUR_USERNAME"
apiKey = "YOUR_API_KEY"
fxmlUrl = "https://flightxml.flightaware.com/json/FlightXML2/"

payload = {'airport':'KSFO', 'howMany':'10'}
response = requests.get(fxmlUrl + "Enroute",
    params=payload, auth=(username, apiKey))

if response.status_code == 200:
    print response.json()
else:
    print "Error executing request"
								
var Client = require('node-rest-client').Client;
var username = 'YOUR_USERNAME';
var apiKey = 'YOUR_API_KEY';
var fxmlUrl = 'https://flightxml.flightaware.com/json/FlightXML2/';
var client_options = {
    user: username,
    password: apiKey
};
var client = new Client(client_options);
client.registerMethod('airlineInfo', fxmlUrl + 'AirlineInfo', 'GET');
var airlineInfoArgs = {
    parameters: {
        airlineCode: 'UAL'
    }
};
client.methods.airlineInfo(airlineInfoArgs, function (data, response) {
    console.log(data);
});
								
<?php
$username = "YOUR_USERNAME";
$apiKey = "YOUR_API_KEY";
$fxmlUrl = "https://flightxml.flightaware.com/json/FlightXML2/";

$queryParams = array(
    'ident' => 'SWA45',
    'howMany' => 10,
    'offset' => 10
);
$url = $fxmlUrl . 'FlightInfoEx?' . http_build_query($queryParams);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $apiKey);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

if ($result = curl_exec($ch)) {
    curl_close($ch);
    echo $result;
}
?>							
string fxmlUrl = "http://flightxml.flightaware.com/json/FlightXML2";
string username = "YOUR_USERNAME";
string apiKey = "YOUR_APIKEY";
var uriBuilder = new UriBuilder(fxmlUrl);
var requestUrl = fxmlUrl
    .AppendPathSegment("AirportInfo")
    .SetQueryParams(new { airportCode = "KIAH" });
var serializer = new DataContractJsonSerializer(typeof(AirportInfoResult));
var client = new HttpClient();
var credentials = Encoding.ASCII.GetBytes(username + ":" + apiKey);
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(credentials));
var streamTask = client.GetStreamAsync(apiUrl);
var airportInfo = serializer.ReadObject(await streamTask) as AirportInfoResult;
Console.WriteLine(airportInfo.AirportResult.Code);
								

FlightXML 2.0 can also be used with Python, Ruby, Java, Tcl, Perl, ASP, and other languages. View additional code examples.

Used by Organizations Across the World

Documentation

FlightAware's API for flight status, flight tracking and aviation data can be accessed via REST or SOAP and the API can be accessed using any programming language.

Support

Please visit our FAQ to find answers to general questions or check out our discussion forum for more in-depth information.

Login

Don't have an account? Register now (free) for customized features, flight alerts, and more!
This website uses cookies. By using and further navigating this website, you accept this.
Dismiss
Did you know that FlightAware flight tracking is supported by advertising?
You can help us keep FlightAware free by allowing ads from FlightAware.com. We work hard to keep our advertising relevant and unobtrusive to create a great experience. It's quick and easy to whitelist ads on FlightAware or please consider our premium accounts.
Dismiss