Airports

Getting to and from Great Britain's airports by public transport. Every airport in England, Scotland and Wales with scheduled flights (50 of them), with its terminals and the rail stations, buses, coaches, trams and metro that serve it. Flights themselves aren't covered: no open UK flight data exists.

List airports

GET /v1/airports.json
GET /v1/airports.json?query=london
GET /v1/airports.json?lat=53.38&lon=-1.47&limit=3

Each has its IATA and ICAO codes, name, town, region, size (large, medium, small) and terminals: the entrances passengers use, from NaPTAN. An airport's own position is its first terminal, not the middle of the airfield, which can be a kilometre or two away. With lat/lon they come nearest first with a distance in metres; otherwise largest first.

One airport and how to get there

curl "https://api.transcapi.com/v1/airports/MAN.json" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "iata": "MAN", "icao": "EGCC", "name": "Manchester Airport",
  "terminals": [ { "atcocode": "9200MAN0", "name": "Manchester Airport",
                   "latitude": 53.3611, "longitude": -2.2727 }, ... ],
  "rail_stations": [
    { "crs_code": "MIA", "name": "Manchester Airport", "distance": 259 }, ...
  ],
  "stops": [
    { "atcocode": "9400ZZMAAIR1", "name": "Manchester Airport (Manchester Metrolink)",
      "mode": "tram", "distance": 309,
      "lines": [ { "line": "Navy Line", "operator": "Metrolink" } ] },
    { "atcocode": "1800MABS0A1", "name": "Manchester Airport The Station",
      "mode": "bus", "distance": 326,
      "lines": [ { "line": "G4", "operator": "National Express" },
                 { "line": "120", "operator": "National Express" }, ... ] }, ...
  ],
  "disruptions": [ ... ]
}
  • rail_stations: within 3 km of a terminal, nearest first. Pass a crs_code to /v1/rail/station_timetables for live departures, platforms and delays.
  • stops: bus, coach, tram, metro and ferry stops within 500 m of a terminal, with the lines that serve each from the timetable. mode is bus, coach, tram, metro (Underground, Tyne and Wear Metro) or ferry. Pass an atcocode to /v1/bus/stop_timetables for departures.
  • disruptions: bus, tram, National Rail and TfL disruptions in force within 3 km, in the disruptions shape.

Distances are straight lines to the nearest terminal entrance. To plan the whole journey, pass a terminal's position to /v1/journey.json. The airport list comes from OurAirports (public domain) and is refreshed daily.