# List trains between stations (v1)

List the trains from one station to another on a date, including nearby stations in the same cities, with times, run days, classes and each class's last known availability and fare. No direct train returns empty `trains`.

- Platform: Indian Rail
- Request: `GET https://api.toolzerhub.com/v1/indianrail/trains/between`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/indian-rail/journey/get-indian-rail-trains-between

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `from_station` | query | yes | string | The boarding station code, such as NDLS, or a name with the code in brackets. Find codes by name with Search stations. |
| `to_station` | query | yes | string | The destination station code, such as MMCT, or a name with the code in brackets. Find codes by name with Search stations. |
| `date` | query | no | string | Travel date from the boarding station, today or later. Defaults to today (India time). Dates past the booking window are rejected with the day bookings open. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/indianrail/trains/between?from_station=<from_station>&to_station=<to_station>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
