Find trains between two stations
find_trains_between_stationsFind direct trains between two stations on any date, showing departure, arrival, duration, and available classes. Enter station names or codes; they are resolved automatically.
Instructions
List direct trains connecting two stations on a given date, with departure, arrival, duration and available classes. Station names are accepted and resolved automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination station: either the station code (e.g. "NDLS") or the name (e.g. "New Delhi"). | |
| date | No | Journey date as YYYY-MM-DD, or "today" / "tomorrow". Defaults to today in IST. | |
| from | Yes | Origin station: either the station code (e.g. "NDLS") or the name (e.g. "New Delhi"). | |
| sortBy | No | Sort order (default departure). | |
| travelClass | No | Only trains offering this class. | |
| onlyRunningOnDate | No | Drop trains that do not run on the given date (default true). |