Indian Railways Live Train 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.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Indian Railways Live Train Status API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
Indian Railways Live Train Status API
Use number and date for the run's start at its first station in IST, or start_day. Status update time, scheduled stop times and expected values retain different meanings across the service's day numbers.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | Required: number. Optional: date, start_day. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks. |
| Selected implementation | apish · Indian Railways train live running status API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Running display: Keep the run-start date and source update context.
- Stop timeline: Preserve day numbers and scheduled versus expected times.
Returned Data
| Field | Meaning |
|---|---|
number |
Source five-digit train number |
start_date |
Run-start date |
runs_on_date |
Source run-date flag |
status.updated_at |
Source status update timestamp |
status.delay_min |
Source current delay in minutes |
stations[].day |
Stop day within the run |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode number=12951 \
--data-urlencode output=json \
--data-urlencode raw=0
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published Indian Railways Live Train Status API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Indian Railways train live running status API · GET · View API reference | $0.002 / billing credit | 0 | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
number | URL query parametersquery | string | Yes | 5-digit train number. |
date | URL query parametersquery | string | No | Start date of the run at its first station (YYYY-MM-DD, IST). Default today. |
start_day | URL query parametersquery | integer | No | Alternative to date: 0 = started today, 1 = yesterday, up to 6. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
cachedbooleancredits_usedintegerdestinationobjectcodestringnamestring
fetched_atstringjourney_minintegernamestringnumberstringpantrybooleanrun_daysstring[]runs_on_datebooleanscheduled_departurestringsourceobjectcodestringnamestring
start_datestringstation_countintegerstationsobject[]arrival_delay_minintegercodestringdayintegerdeparture_delay_minnull | integerdistance_kmintegerdivertedbooleanexpected_arrivalstringexpected_departurestringhalt_minintegerlatnumberlngnumbernamestringnon_stop_stationsintegerpassedbooleanplatformstringscheduled_arrivalstringscheduled_departurestringseqinteger
statusobjectahead_distance_kmintegeralertnullas_ofstringat_destinationbooleanat_sourcebooleancurrent_stationobjectcodestringlatnumberlngnumbernamestringscheduled_arrivalstringscheduled_departurestring
delay_minintegerdirectionstringdistance_covered_kmintegerdiverted_stationsnullexpected_arrivalstringexpected_departurestringmessagestringnext_stopobjectdelay_minintegerinstringnamestring
platformnullstartedbooleanstatestringtitlenulltotal_distance_kmintegerupdated_atstringupdatesobject[]hintstring | nulllabelstringmessagestring
typestring
Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 8
Review these request fields before running. Keep the published provider and request method unchanged.
number- 5-digit train number.
date- Start date of the run at its first station (YYYY-MM-DD, IST). Default today.
start_day- Alternative to date: 0 = started today, 1 = yesterday, up to 6.
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ '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'Check the response
Sample response · Documented HTTP 200
Sample response{ "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" }