NTES Live Train Running Status API
trackTrain(trainNumber: string, date: string)Description
Look up live train running status with a train number and journey date. The NTES response includes reported delays, stop times, route progress, distance, and coach details. Hindi station names and coach layout changes appear when available.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
trainNumber | ARGUMENT | string | YES | 5-digit train number |
date | ARGUMENT | string | YES | Required DD-MM-YYYY date; today through five days ago (IST) |
Code Example
javascript
import { configure, trackTrain } from "railkit";
configure(process.env.RAILKIT_API_KEY);
const result = await trackTrain("12345", "03-12-2026");
if (result.success) {
console.log(result.data.statusNote);
console.log(result.data.timeline);
}Response Example