Cancelled Trains

cancelList()

Description

Get today's IST snapshot of fully and partially cancelled trains plus diversions. Includes routes, affected segments, reasons, and scan coverage.

Parameters

No parameters.

Code Example

javascript
import { configure, cancelList } from "railkit";

configure(process.env.RAILKIT_API_KEY);

const result = await cancelList();

if (result.success) {
  console.log("Cancellations:", result.summary.total);
  console.log("Fully cancelled:", result.summary.fullyCancelled);
  console.log("Partially cancelled:", result.summary.partiallyCancelled);
  console.log("Diverted:", result.summary.diverted);
  console.log("Scan complete:", result.scan.complete);

  result.data.fullyCancelledTrains.forEach((train) => {
    console.log(train.trainNo + " — " + train.trainName, train.reason);
  });

  result.data.partiallyCancelledTrains.forEach((train) => {
    console.log(
      train.trainNo + ": " +
      (train.cancelledSegment.from?.name ?? "Unknown") + " → " +
      (train.cancelledSegment.to?.name ?? "Unknown"),
      train.reason
    );
  });

  result.data.divertedTrains.forEach((train) => {
    console.log(train.trainNo + " diverted", train.diversion.from?.code,
      "→", train.diversion.to?.code, train.reason);
  });
}

Response Example

JSON response
200JSON
{
  "success": true,
  "summary": {
    "total": 2,
    "fullyCancelled": 1,
    "partiallyCancelled": 1,
    "diverted": 1,
    "unknownSchedules": 7,
    "skippedUnknownSchedules": 7,
    "journeyDates": [
      "11-11-2026"
    ]
  },
  "data": {
    "fullyCancelledTrains": [
      {
        "trainNo": "52451",
        "trainName": "KLK-SML SHIVALIK DELUXE",
        "journeyDate": "11-11-2026",
        "status": "fully_cancelled",
        "route": {
          "source": {
            "code": "KLK",
            "name": "KALKA"
          },
          "destination": {
            "code": "SML",
            "name": "SHIMLA"
          }
        },
        "cancelledSegment": null,
        "trainType": "PAS",
        "reportedAt": "10-11-2026 20:00:00 IST",
        "sourceUpdatedAt": "10-Nov-2026 19:59",
        "reason": "Track restoration work",
        "message": "Train is Cancelled"
      }
    ],
    "partiallyCancelledTrains": [
      {
        "trainNo": "11002",
        "trainName": "NANDIGRAM EXP",
        "journeyDate": "11-11-2026",
        "status": "partially_cancelled",
        "route": {
          "source": {
            "code": "BPQ",
            "name": "BALHARSHAH"
          },
          "destination": {
            "code": "CSMT",
            "name": "C SHIVAJI MAH T"
          }
        },
        "cancelledSegment": {
          "from": {
            "code": "DR",
            "name": "DADAR"
          },
          "to": {
            "code": "CSMT",
            "name": "CHHATRAPATI SHIVAJI MAHARAJ TERMINUS"
          }
        },
        "trainType": "MEX",
        "reportedAt": "10-11-2026 20:00:00 IST",
        "sourceUpdatedAt": "10-Nov-2026 19:59",
        "reason": "Platform work",
        "message": "Train is Partially Cancelled"
      }
    ],
    "divertedTrains": [
      {
        "trainNo": "22411",
        "trainName": "NAHARLAGUN - NEW DELHI AC SF",
        "journeyDate": "11-11-2026",
        "status": "diverted",
        "route": {
          "source": {
            "code": "NHLN",
            "name": "NAHARLAGUN"
          },
          "destination": {
            "code": "ANVT",
            "name": "ANAND VIHAR TRM"
          }
        },
        "trainType": "SUPERFAST",
        "reportedAt": "10-11-2026 20:00:00 IST",
        "sourceUpdatedAt": "10-Nov-2026 19:59",
        "reason": "Corridor block",
        "message": "Train is Diverted",
        "diversion": {
          "from": {
            "code": "NCB",
            "name": "NEW COOCH BEHAR"
          },
          "to": {
            "code": "YLSC",
            "name": "Y LEG SPL CLASS STAT"
          },
          "route": [
            {
              "code": "NCB",
              "name": "NEW COOCH BEHAR"
            },
            {
              "code": "YLSC",
              "name": "Y LEG SPL CLASS STAT"
            }
          ]
        }
      }
    ]
  },
  "scan": {
    "journeyDate": "11-11-2026",
    "scannedAt": "2026-11-10T14:30:00.000Z",
    "checked": 8593,
    "totalCandidates": 8593,
    "failed": 0,
    "unknownSchedules": 7,
    "skippedUnknownSchedules": 7,
    "trainDataUpdatedAtIST": "10/11/2026, 06:54:48",
    "complete": true
  }
}