Get train schedule (v1)
Get 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.
1 credit / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
train*string
A 5-digit train number such as 12951, the number followed by the name, or a train page link from RailYatri, ConfirmTkt, erail or ixigo. Find a number by name with Search trains.
Length
length <= 300curl -X GET "https://example.com/v1/indianrail/train/schedule?train=12951" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "train_number": "12951", "name": "Ndls Tejas Raj", "type": "RAJDHANI", "source": { "code": "NDLS", "name": "New Delhi" }, "destination": { "code": "NDLS", "name": "New Delhi" }, "run_days": [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ], "classes": [ "1A", "2A", "3A" ], "duration_minutes": 932, "distance_km": 1384, "rating": 4, "coach_position": [ { "class": "string", "coach": "string" } ], "stop_count": 8, "stations": [ { "code": "BVI", "name": "Borivali", "is_stop": true, "stop_number": 2, "arrival": "17:20", "departure": "17:22", "halt_minutes": 2, "day": 1, "distance_km": 30, "platform": "6", "latitude": 0, "longitude": 0 } ] }, "details": { "reason": "string", "message": "string" }}