Train Search
searchTrainBetweenStations(from: string, to: string, date?: string)Description
Find available trains between stations with timetable and running-day data.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | PATH | string | YES | Origin station code |
to | PATH | string | YES | Destination station code |
date | QUERY | string | NO | Journey date in DD-MM-YYYY (optional) |
Code Example
javascript
const result = await searchTrainBetweenStations("NDLS", "BCT", "28-08-2026");
if (result.success) {
console.log(result.data.map((t) => t.train_name));
}Response Example