Indian Rail API
Look up Indian Railways trains by number or name, read a train's timetable and running status, list the trains between two stations with each class's availability and fare, then…
6 endpoints
Endpoints
Each endpoint links to its request parameters, response schema, and code examples.
Journey
2 endpoints- Check seat availability and fare (v1)GETCheck seats for one train, class and quota from the travel date over the next few days, with the confirmation chance and the fare breakdown. A class the train lacks is rejected with a 422.
/v1/indianrail/train/availability1 cr - List trains between stations (v1)GETList the trains from one station to another on a date, including nearby stations in the same cities, with times, run days, classes and each class's last known availability and fare. No direct train returns empty trains.
/v1/indianrail/trains/between1 cr
Search
2 endpoints- Search stations (v1)GETFind station codes by city or station name, with state and coordinates. A city also returns an all-stations entry. A query nothing matches returns empty results.
/v1/indianrail/stations/search1 cr - Search trains (v1)GETFind Indian Railways trains by name or number, with each train's first and last station. A query nothing matches returns empty results.
/v1/indianrail/trains/search1 cr
Train
2 endpoints- Get live running status (v1)GETGet where a train is on a given run: current station, delay, and actual or expected times at every station. data is null when the train has no run on that start date or the number is unknown.
/v1/indianrail/train/live-status1 cr - Get train schedule (v1)GETGet a train's timetable: every stop with arrival, departure, halt, day, distance and platform, the stations it passes, run days, classes and coach order. An unknown train number returns data: null.
/v1/indianrail/train/schedule1 cr
Make your first request
Replace the placeholders with your input values. The endpoint reference explains each input and the returned fields.
curl -X GET "https://api.toolzerhub.com/v1/indianrail/stations/search?query=<query>" -H "x-api-key: $TOOLZERHUB_API_KEY"Need a key? Create an account, then review credits and responses and errors.