Trains Between Stations (Legacy)
GET
/v1/legacy/trains/betweenFind trains between stations (Legacy)
Description
Returns trains running between two stations in the legacy format.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
from | query | string | Yes | Source station code |
to | query | string | Yes | Destination station code |
Code Examples
CURL
curl -X GET "https://api.railradar.in/v1/legacy/trains/between?from=NDLS&to=BCT" \ -H "Authorization: Bearer rr_live_YOUR_API_KEY"
Example Response
JSON200 OK
{ "success": true, "data": { "fromStation": { "code": "NDLS", "name": "New Delhi" }, "toStation": { "code": "BCT", "name": "Mumbai Central" }, "totalTrains": 1, "trainTypeFilter": null, "trains": [ { "number": "12952", "name": "Mumbai Rajdhani Express", "type": "Rajdhani", "source": { "code": "NDLS", "name": "New Delhi" }, "destination": { "code": "BCT", "name": "Mumbai Central" }, "runDays": [ "mon", "tue", "wed", "thu", "fri", "sat", "sun" ], "journeySegment": { "from": { "code": "NDLS", "name": "New Delhi" }, "to": { "code": "BCT", "name": "Mumbai Central" }, "departureTime": "16:25", "arrivalTime": "08:15", "travelTime": "15:50" } } ] }, "meta": { "traceId": "550e8400-e29b-41d4-a716-446655440000", "timestamp": "2026-06-22T12:30:00+05:30", "executionTime": 38, "source": "database" } }
Try it Out
Login to test this endpoint
Sign in to pre-fill your API key and send live requests directly from the browser.
Sign in →Error Codes
| Status | Meaning |
|---|---|
400 | Bad Request — invalid or missing parameter |
401 | Unauthorized — missing or invalid Authorization Bearer token |
404 | Not Found — train/station not found (or no results) |
429 | Too Many Requests — rate limit exceeded |
503 | Service Unavailable — upstream data source temporarily down |
Error Response Examples
JSON Error Envelope404 Not Found
{ "success": false, "error": { "code": "NOT_FOUND", "message": "Resource not found (e.g. Train 12919 not found on journey date 2026-06-22)" }, "meta": { "traceId": "9772f1c9-6ec6-4d9f-b269-a5210f33ec73", "timestamp": "2026-06-22T08:14:00+05:30", "executionTime": 5, "source": "database" } }