# Indian Railways train live running status API

Get Indian Railways live status by train number and run-start date via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as number, output, raw, and retrieve structured data including source five-digit train number, run-start date, source run-date flag, and source status update timestamp for running display, and stop timeline.

Documentation: https://openany.si/market/apis/indian-railways/indian-railways-train-live-running-status-api/?offering=23e3c631-2ee1-472c-8617-45acdcc85fce
API ID: 23e3c631-2ee1-472c-8617-45acdcc85fce
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status
Page update time: 2026-12-03T02:46:56.481Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:54.425Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Indian Railways train live running status API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string",
          "description": "5-digit train number."
        },
        "date": {
          "type": "string",
          "description": "Start date of the run at its first station (YYYY-MM-DD, IST). Default today."
        },
        "start_day": {
          "type": "integer",
          "description": "Alternative to date: 0 = started today, 1 = yesterday, up to 6."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "number"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "destination": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "fetched_at": {
      "type": "string"
    },
    "journey_min": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "pantry": {
      "type": "boolean"
    },
    "run_days": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "runs_on_date": {
      "type": "boolean"
    },
    "scheduled_departure": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "start_date": {
      "type": "string"
    },
    "station_count": {
      "type": "integer"
    },
    "stations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "arrival_delay_min": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "day": {
            "type": "integer"
          },
          "departure_delay_min": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "integer"
              }
            ]
          },
          "distance_km": {
            "type": "integer"
          },
          "diverted": {
            "type": "boolean"
          },
          "expected_arrival": {
            "type": "string"
          },
          "expected_departure": {
            "type": "string"
          },
          "halt_min": {
            "type": "integer"
          },
          "lat": {
            "type": "number"
          },
          "lng": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "non_stop_stations": {
            "type": "integer"
          },
          "passed": {
            "type": "boolean"
          },
          "platform": {
            "type": "string"
          },
          "scheduled_arrival": {
            "type": "string"
          },
          "scheduled_departure": {
            "type": "string"
          },
          "seq": {
            "type": "integer"
          }
        }
      }
    },
    "status": {
      "type": "object",
      "properties": {
        "ahead_distance_km": {
          "type": "integer"
        },
        "alert": {
          "type": "null"
        },
        "as_of": {
          "type": "string"
        },
        "at_destination": {
          "type": "boolean"
        },
        "at_source": {
          "type": "boolean"
        },
        "current_station": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "lat": {
              "type": "number"
            },
            "lng": {
              "type": "number"
            },
            "name": {
              "type": "string"
            },
            "scheduled_arrival": {
              "type": "string"
            },
            "scheduled_departure": {
              "type": "string"
            }
          }
        },
        "delay_min": {
          "type": "integer"
        },
        "direction": {
          "type": "string"
        },
        "distance_covered_km": {
          "type": "integer"
        },
        "diverted_stations": {
          "type": "null"
        },
        "expected_arrival": {
          "type": "string"
        },
        "expected_departure": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "next_stop": {
          "type": "object",
          "properties": {
            "delay_min": {
              "type": "integer"
            },
            "in": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          }
        },
        "platform": {
          "type": "null"
        },
        "started": {
          "type": "boolean"
        },
        "state": {
          "type": "string"
        },
        "title": {
          "type": "null"
        },
        "total_distance_km": {
          "type": "integer"
        },
        "updated_at": {
          "type": "string"
        },
        "updates": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "hint": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "label": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status?number=12951&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "credits_used": 1,
  "destination": {
    "code": "NDLS",
    "name": "NEW DELHI"
  },
  "fetched_at": "2026-11-19T12:25:11.727Z",
  "journey_min": 932,
  "name": "Mumbai Central - New Delhi Rajdhani Express",
  "number": "12951",
  "pantry": true,
  "run_days": [
    "Mon",
    "Tue",
    "Wed",
    "Thu",
    "Fri",
    "Sat",
    "Sun"
  ],
  "runs_on_date": true,
  "scheduled_departure": "2026-11-19T17:00:00+05:30",
  "source": {
    "code": "MMCT",
    "name": "MUMBAI CENTRAL"
  },
  "start_date": "2026-11-19",
  "station_count": 8,
  "stations": [
    {
      "arrival_delay_min": 0,
      "code": "MMCT",
      "day": 1,
      "departure_delay_min": null,
      "distance_km": 0,
      "diverted": false,
      "expected_arrival": "17:00",
      "expected_departure": "17:00",
      "halt_min": 0,
      "lat": 18.970727,
      "lng": 72.819443,
      "name": "MUMBAI CENTRAL",
      "non_stop_stations": 18,
      "passed": true,
      "platform": "1",
      "scheduled_arrival": "17:00",
      "scheduled_departure": "17:00",
      "seq": 1
    },
    {
      "arrival_delay_min": 10,
      "code": "BVI",
      "day": 1,
      "departure_delay_min": null,
      "distance_km": 30,
      "diverted": false,
      "expected_arrival": "17:30",
      "expected_departure": "17:32",
      "halt_min": 2,
      "lat": 19.229149,
      "lng": 72.856822,
      "name": "BORIVALI",
      "non_stop_stations": 7,
      "passed": true,
      "platform": "6",
      "scheduled_arrival": "17:20",
      "scheduled_departure": "17:22",
      "seq": 20
    },
    {
      "arrival_delay_min": 0,
      "code": "ST",
      "day": 1,
      "departure_delay_min": 0,
      "distance_km": 263,
      "diverted": false,
      "expected_arrival": "19:43",
      "expected_departure": "19:48",
      "halt_min": 5,
      "lat": 21.206418,
      "lng": 72.840643,
      "name": "SURAT",
      "non_stop_stations": 24,
      "passed": false,
      "platform": "1",
      "scheduled_arrival": "19:43",
      "scheduled_departure": "19:48",
      "seq": 63
    },
    {
      "arrival_delay_min": 0,
      "code": "BRC",
      "day": 1,
      "departure_delay_min": 0,
      "distance_km": 392,
      "diverted": false,
      "expected_arrival": "21:06",
      "expected_departure": "21:16",
      "halt_min": 10,
      "lat": 22.310696,
      "lng": 73.181005,
      "name": "VADODARA JN",
      "non_stop_stations": 40,
      "passed": false,
      "platform": "2",
      "scheduled_arrival": "21:06",
      "scheduled_departure": "21:16",
      "seq": 88
    },
    {
      "arrival_delay_min": 0,
      "code": "RTM",
      "day": 2,
      "departure_delay_min": 0,
      "distance_km": 653,
      "diverted": false,
      "expected_arrival": "00:25",
      "expected_departure": "00:28",
      "halt_min": 3,
      "lat": 23.34068,
      "lng": 75.051126,
      "name": "RATLAM JN",
      "non_stop_stations": 5,
      "passed": false,
      "platform": "5",
      "scheduled_arrival": "00:25",
      "scheduled_departure": "00:28",
      "seq": 129
    },
    {
      "arrival_delay_min": 0,
      "code": "NAD",
      "day": 2,
      "departure_delay_min": 0,
      "distance_km": 695,
      "diverted": false,
      "expected_arrival": "01:08",
      "expected_departure": "01:10",
      "halt_min": 2,
      "lat": 23.45616,
      "lng": 75.412731,
      "name": "NAGDA JN",
      "non_stop_stations": 28,
      "passed": false,
      "platform": "1",
      "scheduled_arrival": "01:08",
      "scheduled_departure": "01:10",
      "seq": 135
    },
    {
      "arrival_delay_min": 0,
      "code": "KOTA",
      "day": 2,
      "departure_delay_min": 0,
      "distance_km": 920,
      "diverted": false,
      "expected_arrival": "03:15",
      "expected_departure": "03:20",
      "halt_min": 5,
      "lat": 25.223733,
      "lng": 75.88068,
      "name": "KOTA JN",
      "non_stop_stations": 72,
      "passed": false,
      "platform": "1",
      "scheduled_arrival": "03:15",
      "scheduled_departure": "03:20",
      "seq": 164
    },
    {
      "arrival_delay_min": 0,
      "code": "NDLS",
      "day": 2,
      "departure_delay_min": 0,
      "distance_km": 1384,
      "diverted": false,
      "expected_arrival": "08:32",
      "expected_departure": "08:32",
      "halt_min": 0,
      "lat": 28.642464,
      "lng": 77.220154,
      "name": "NEW DELHI",
      "non_stop_stations": 0,
      "passed": false,
      "platform": "3",
      "scheduled_arrival": "08:32",
      "scheduled_departure": "08:32",
      "seq": 237
    }
  ],
  "status": {
    "ahead_distance_km": 0,
    "alert": null,
    "as_of": "As of 6 mins ago",
    "at_destination": false,
    "at_source": false,
    "current_station": {
      "code": "VR",
      "lat": 19.454817,
      "lng": 72.812147,
      "name": "VIRAR",
      "scheduled_arrival": "17:37",
      "scheduled_departure": "17:37"
    },
    "delay_min": 12,
    "direction": "Travelling North",
    "distance_covered_km": 56,
    "diverted_stations": null,
    "expected_arrival": "17:49",
    "expected_departure": "17:49",
    "message": "Crossed VIRAR at 17:49",
    "next_stop": {
      "delay_min": 0,
      "in": "in 1 hr 54 mins",
      "name": "SURAT"
    },
    "platform": null,
    "started": true,
    "state": "passed",
    "title": null,
    "total_distance_km": 1384,
    "updated_at": "2026-11-19T17:49:00+05:30",
    "updates": [
      {
        "hint": "Delay 12m",
        "label": "As of 6 mins ago",
        "message": "Crossed virar at 17:49"
      },
      {
        "hint": "56 kms Covered so far",
        "label": "As of 6 mins ago",
        "message": "207 kilometer to surat"
      },
      {
        "hint": "ORDER NOW",
        "label": "Order Dinner",
        "message": "It's time for Dinner"
      },
      {
        "hint": "No-halt station",
        "label": "As of 6 mins ago",
        "message": "8 kilometer to vaitarna"
      },
      {
        "hint": null,
        "label": "As of 6 mins ago",
        "message": "Just left virar"
      }
    ]
  },
  "type": "RAJDHANI"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/indian-railways/indian-railways-train-live-running-status-api/?offering=23e3c631-2ee1-472c-8617-45acdcc85fce

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
