GET /flights/:id(.:format)

Overview

Returns the flight specified by the given id. The id is the id given to the flight by FlightCaster.

Examples Requests

Example Response

    <?xml version="1.0" encoding="utf-8"?>
    <flight>
      <id>12338399</id>
      <flightstats-history-id>172790173</flightstats-history-id>
      <number>4559</number>
      <airline-icao-id>PDT</airline-icao-id>
      <origin-icao-id>KTRI</origin-icao-id>
      <destination-icao-id>KCLT</destination-icao-id>
      <diverted-icao-id/>
      <published-arrival-time>2009-10-08 19:34:00 UTC</published-arrival-time>
      <published-departure-time>2009-10-08 18:34:00 UTC</published-departure-time>
      <created-at>2009-10-05 08:19:39 UTC</created-at>
      <updated-at>2009-10-08 18:55:27 UTC</updated-at>
      <predictions status="on-time">
        <prediction greater-than="0" less-or-equal-than="20" message="On-Time">0.85495341</prediction>
        <prediction greater-than="20" less-or-equal-than="60" message="Less than 60m late">0.108263855</prediction>
        <prediction greater-than="60" message="More than 60m late">0.0367827363</prediction>
      </predictions>
    </flight>