Flight Tracking and Flight Status API
First Flight XML Demo Second Flight XML Demo

Sample Usage

Start making requests for free TODAY!

Harness FlightAware's FlightXML to integrate live flight data in your app or website!


Start making requests for free TODAY!

KEY FEATURES
  • Access and leverage all of FlightAware's flight data sources
  • Real-time configurable flight event alerts
  • Volume-based pricing
  • Numerous code examples in over a dozen programming languages
Полетные данные Push and Pull

FlightXML — это простой прикладной программный интерфейс, основанный на запросах, который дает возможность программам получать доступ к любым полетным данным на сайте FlightAware. Пользователи могут получать текущие или архивные данные. Данный интерфейс совместим с любыми приложениями, поддерживающими SOAP/WSDL или REST/JSON.

Search 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 such as:
  • 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 information, including:
  • Scheduled flights
  • Flights that have departed
  • Flights that are enroute to the airport
  • Flights that have arrived at the airport
FlightXML Code Examples
import requests

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

payload = {'airport_code':'KSFO', 'type':'enroute', 
    'howMany':'10'}
response = requests.get(fxmlUrl + "AirportBoards", 
    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 client = new Client(client_options);
client.registerMethod('findFlights', fxmlUrl + 'FindFlight', 'GET');
var findFlightArgs = {
    parameters: {
        origin: 'KIAH',
        destination: 'KJFK',
        type: 'nonstop'
    }
};
client.methods.findFlights(findFlightArgs, function (data, response) {
    console.log(data);
});
							
<?php
$username = "YOUR_USERNAME";
$apiKey = "YOUR_API_KEY";
$fxmlUrl = "https://flightxml.flightaware.com/json/FlightXML3/";

$queryParams = array(
    'ident' => 'SWA35',
    'howMany' => 10,
    'offset' => 10
);
$url = $fxmlUrl . 'FlightInfoStatus?' . 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/FlightXML3";
string username = "YOUR_USERNAME";
string apiKey = "YOUR_APIKEY";
var uriBuilder = new UriBuilder(fxmlUrl);
var requestUrl = fxmlUrl
    .AppendPathSegment("AirportInfo")
    .SetQueryParams(new { airport_code = "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 может использоваться с Ruby, Java, Tcl, Perl, ASP и другими языками.

View additional code examples

Used by Organizations Across the World
NASA Northrop Grumman
boingo Hawaiian Airlines
Have questions? Please contact our sales team and they'll be happy to assist you.
Max Tribolet

Max Tribolet

+1 (713) 456-3083

email

Sherron Goodenough

Sherron Goodenough

+1 (713) 456-3070

email

Bryce Nelson

Bryce Nelson

+1 (713) 456-3077

email

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.