Tools (14)
Get train schedule
Retrieves the detailed schedule/route for a specific train on a given journey date.
Find trains between stations
Finds all trains that run between two specified stations.
Get all trains key-value pairs
Retrieves a list of all train numbers and names.
Search trains
Search for trains by number or name.
Get train journey instances
Retrieves past and future journey instances for a specific train.
Search stations
Search for stations by code or name.
Get Comprehensive Train Data (Static + Live)
**This is the primary and most important endpoint for fetching detailed train information.**
It provides a comprehensive object containing static details (like schedule, route, running days) and can optionally include real-time live tracking data.
### Understanding `dataType`
This parameter controls the content of the response:
- `full` (default): Returns the complete `TrainData` object, including static info, route, and live data if available.
- `static`: Returns only the static `TrainData` (train info and route), without making a call for live data. Useful for displaying schedules without needing real-time status.
- `live`: Returns only the `LiveTrainStatus` object. This is a lightweight option to quickly get the current status of a train without fetching the full static schedule again.
### Understanding `journeyDate`
The `journeyDate` (in `YYYY-MM-DD` format) is crucial for identifying a specific instance of a train's run.
- If you provide a date, the API will fetch the status for that specific journey.
- If you **do not** provide a date, RailRadar's backend will automatically determine the most relevant journey date. This could be today's date if the train is running, a past date if the train has recently arrived, or the next upcoming run date.
Get OpenAPI specification
Retrieves the OpenAPI specification in YAML format.
Get paginated train list
Retrieves a paginated list of trains with filtering and search capabilities.
Supports filtering by train type, railway zone, and text search across
train numbers, names, and station codes.
Get all stations key-value pairs
Retrieves a list of all station codes and names.
Get live station board
Retrieves real-time departure and arrival information for a specific station.
Get station information
Retrieves static information about a specific station.
Get train average delay
Retrieves average delay information for a specific train at various stations.
Get live train map data
Retrieves real-time position data for all currently running trains.