Skip to content
Alpha
— Headcode is currently in alpha. APIs and data may change without notice.
Headcode Docs
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Guides
Introduction
Authentication
Plans and Rate Limits
API keys
Identifiers
Data structures
Data sources
Disruptions
Station search
Station board filtering
Combined board
Next departures
Train order
Headcodes
Service lookup
Historical data
Performance
Error handling
Pagination and time windows
Reference data
Locations
MCP
Errors
Overview
General
Bad Request
Unauthorized
Internal Server Error
Service Temporarily Unavailable
Resource errors
Station Not Found
Service Not Found
Train Order Not Found
Location Not Found
Disruption Not Found
Heartbeat Not Found
Operator Not Found
API reference
Overview
MCP tools
Stations API
Overview
stations
Overview
Get a station by identifier
GET
Get station footfall data
GET
Search and list stations
GET
Look up station CRS codes
GET
station-boards
Overview
Get departures for a station
GET
Get non-stopping (passing) trains for a station
GET
Get a combined arrival and departure board for a station
GET
Get arrivals for a station
GET
Get departures for a station on a past day
GET
Get arrivals for a station on a past day
GET
Get a combined arrival and departure board for a station on a past day
GET
Get next departures to multiple destinations
GET
Services API
Overview
services
Overview
List services by date
GET
Get a service by identifier
GET
Train Order API
Overview
train-orders
Overview
Get train order for a station
GET
Locations API
Overview
locations
Overview
Get a location by TIPLOC
GET
Search and list locations
GET
Disruptions API
Overview
disruptions
Overview
List disruptions
GET
Get a disruption
GET
Operations API
Overview
operations
Overview
List active Darwin alarms
GET
Get latest Darwin heartbeat
GET
Operators API
Overview
operators
Overview
List all operators
GET
Get an operator by code
GET
Reason Codes API
Overview
reference
Overview
List all reason codes
GET
Legal
Terms of Service
Privacy Policy
GitHub
Select theme
Dark
Light
Auto
Overview
stations
Section titled “stations”
Station lookup, search, identifiers, and geographic discovery.
Operations
Section titled “ Operations ”
GET
/v1/stations/{id}
GET
/v1/stations/{id}/footfall
GET
/v1/stations
GET
/v1/crs