Connections

Skip to the Interactive Docs

The Connections API returns connecting flights between two airports. It is very useful when flying in or out of smaller, regional airports such as Newark, NJ; Fort Lauderdale, FL; or Spokane, WA.

This API will return direct flights when available. The results are ordered based on the score, a heuristic value based on multiuple factors such as length of the trip, number of connections, and how close the flight arrives/departs relative to the desired time.

The query results are available in XML or JSON format.

Important Note: This is a Premium API available within our Contract Plan.

URI
https://api.flightstats.com/flex/connections/rest/v3/{format}/{...}
Extended Options
useHTTPErrors excludeAppendix languageCode:xx
Response
request, appendix, error, list of Connections
API Links:
REST: WADL | XSD | JSON

Interactive Documentation

  1. Click on the name of the web service to expand the test client interface.
  2. Fill out each required parameter (click app id & key to pre-populate with your credentials)
  3. Send Request to see the actual JSON response. You will also be provided with a curl invocation including a pre-formatted REST URL. To see the XML response, replace the json in the URL with xml.
  4. Please be aware that large responses may take a long time to pretty-print in your browser.

Connections Extended Options

These can be used in conjunction with other Extended Options to customize API behavior to fit specific needs.
Option Description
excludeAppendix Omits the reference data appendix in the output. The related option "useInlinedReferences" is not available in Connections