Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
contact:
url: https://www.transcapi.com
description: 'Public transport data for Great Britain (England, Scotland and Wales): stops and places, bus and rail departures and arrivals with live running, routes and services, live bus positions, disruptions and journey planning. Every departure says in `source` whether its time is live or timetabled. Data is official open data; attribution requirements are at https://www.transcapi.com/docs/data-sources.'
termsOfService: https://www.transcapi.com/terms
title: TransC Airports API
version: 1.0.0
servers:
- description: Production
url: https://api.transcapi.com
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Airports
paths:
/v1/airports.json:
get:
description: The 50 airports in England, Scotland and Wales with scheduled flights, each with its IATA and ICAO codes and its terminal entrances (where passengers arrive, from NaPTAN). Filter by `query` (name, town or code), or give `lat`/`lon` (and optionally `radius` in metres) to sort by distance. Otherwise largest first.
parameters:
- in: query
name: query
schema:
type: string
- in: query
name: lat
schema:
type: number
- in: query
name: lon
schema:
type: number
- in: query
name: radius
schema:
type: integer
- in: query
name: limit
schema:
default: 50
type: integer
responses:
'200':
description: Airports
summary: Airports with scheduled flights in Great Britain
tags:
- Airports
operationId: getV1AirportsJson
x-operation-id-source: derived
/v1/airports/{iata}.json:
get:
description: An airport by IATA code (LHR, MAN, EDI...) with its terminal entrances; the rail stations within 3 km of a terminal (pass a `crs_code` to /v1/rail/station_timetables/{crs_code}.json for live departures); the bus, coach and tram stops within 500 m with the lines that serve them (pass an `atcocode` to /v1/bus/stop_timetables/{atcocode}.json); and disruptions in force within 3 km. Distances are straight lines to the nearest terminal entrance.
parameters:
- in: path
name: iata
required: true
schema:
type: string
responses:
'200':
description: The airport
'404':
description: Not an airport with scheduled flights in Great Britain
summary: An airport and its public transport
tags:
- Airports
operationId: getV1Airports{iata}Json
x-operation-id-source: derived
components:
securitySchemes:
ApiKeyHeader:
in: header
name: X-Api-Key
type: apiKey
ApiKeyQuery:
in: query
name: api_key
type: apiKey