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

NameInTypeRequiredDescription
trainNumberARGUMENTstringYES5-digit train number
dateARGUMENTstringYESRequired 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

JSON response
200JSON
{
  "success": true,
  "data": {
    "trainNo": "12345",
    "trainName": "SARAIGHAT EXP",
    "trainNameHindi": "हव्ह् घ्य् सरैघत् इएक्सप्रेस्स्",
    "date": "17-Oct-2026",
    "statusNote": "Arrived at RAMPUR HAT (RPH)",
    "lastUpdate": "17-Oct-2026 19:19",
    "totalStations": 161,
    "totalStoppageStations": 18,
    "currentStationCode": "RPH",
    "totalDistanceKm": 998,
    "averageSpeedKmph": 61.29,
    "progress": {
      "journeyStatus": "running",
      "currentStationIndex": 50,
      "totalStations": 161,
      "passedStations": 49,
      "remainingStations": 111,
      "currentDistanceKm": 207,
      "distanceRemainingKm": 791,
      "percent": 20.74
    },
    "timeline": [
      {
        "type": "stoppage",
        "status": "passed",
        "stationCode": "HWH",
        "stationName": "HOWRAH JN",
        "stationNameHindi": "हावड़ा जं",
        "platform": "15",
        "distanceKm": "0",
        "arrival": {
          "scheduled": "SRC",
          "actual": "SRC",
          "delay": ""
        },
        "departure": {
          "scheduled": "16:05 17-Oct",
          "actual": "16:06 17-Oct",
          "delay": "00:01"
        }
      },
      {
        "type": "intermediate",
        "status": "passed",
        "stationCode": "SYAE",
        "stationName": "Example intermediate station",
        "distanceKm": "3",
        "arrival": {
          "scheduled": "16:10"
        },
        "departure": {
          "scheduled": "16:10"
        }
      }
    ],
    "coachPosition": [
      {
        "type": "HA1",
        "number": "HA1",
        "position": "4",
        "id": "710580",
        "operatedBy": "ER",
        "coachType": "LWFCWAC",
        "coachNo": "194544",
        "manufacturedIn": 2019,
        "coachClass": "1A+2A",
        "variant": "1A-10-2A-28-V1"
      }
    ],
    "coachPositionTimeline": [
      {
        "fromStationCode": "HWH",
        "fromStationName": "HOWRAH JN",
        "coachPosition": [
          {
            "type": "HA1",
            "number": "HA1",
            "position": "4",
            "id": "710580",
            "operatedBy": "ER",
            "coachType": "LWFCWAC",
            "coachNo": "194544",
            "manufacturedIn": 2019,
            "coachClass": "1A+2A",
            "variant": "1A-10-2A-28-V1"
          }
        ]
      }
    ]
  }
}