Skip to main content

Train Enquiry

Live Indian Railways data โ€” trains between stations, train information, routes & running status with automatic multi-provider failover.

All Endpointsโ€‹

GET/train?from=MMCT&to=NDLS
All trains between two stations (station codes).
GET/train?from=DDR&to=MMCT&date=20260802
Optional date filter โ€” YYYYMMDD format.
GET/train/info?number=12951
Train details โ€” name, endpoints, timing, type, classes.
GET/train/route?number=12301
Station-wise route โ€” timings & coordinates.
GET/train/pnr?number=6705123201
PNR status โ€” train, date, class & passenger-wise status.
GET/train/live?number=12951&date=20260802
Live running status + fare details (3A/2A/1A class fares).

Query Parametersโ€‹

ParameterTypeRequiredDescription
fromstringโœ…Source station code (e.g. MMCT)
tostringโœ…Destination station code (e.g. NDLS)
datestringโŒYYYYMMDD (defaults to today)
numberstringโœ…Train number (for /train/info, /train/route, /train/live)

Example โ€” Trains between Mumbai Central and New Delhiโ€‹

curl "https://api.apimitra.in/train?from=MMCT&to=NDLS"
{
"status": "ok",
"count": 12,
"trains": [
{
"train_number": "12951",
"train_name": "NDLS TEJAS RAJ",
"from": { "name": "Mumbai Central", "code": "MMCT" },
"to": { "name": "New Delhi", "code": "NDLS" },
"departure": "17.00",
"arrival": "08.32",
"duration": "15.32",
"days_runs": "1111111",
"classes": ["1A", "2A", "3A"],
"train_type": "RAJDHANI"
}
]
}

Example โ€” Train Infoโ€‹

curl "https://api.apimitra.in/train/info?number=12951"
{
"status": "ok",
"train_number": "12951",
"train_name": "NDLS TEJAS RAJ",
"type": "Rajdhani",
"from": "MMCT",
"to": "NDLS",
"departure": "17.00",
"arrival": "08.32",
"duration": "15.32",
"distance_km": 2633,
"days_runs": "1111111"
}

Example โ€” Live Status + Fareโ€‹

curl "https://api.apimitra.in/train/live?number=12951&date=20260802"
{
"status": "ok",
"train_number": "12951",
"train_name": "NDLS TEJAS RAJ",
"from": { "name": "Mumbai Central", "code": "MMCT" },
"to": { "name": "New Delhi", "code": "NDLS" },
"departure": "17.00",
"arrival": "08.32",
"duration": "15.32",
"distance_km": 2633,
"train_type": "RAJDHANI",
"fare": {
"1A": 5335,
"2A": 2960,
"3A": 1384
}
}
note

Station codes 3โ€“4 letters hote hain (MMCT, NDLS, DDR). PNR status ka alag page hai โ€” PNR Status.