Indian Railways train live running status API
Use the Indian Railways train live running status API to retrieve station records, calculated distance, geographic position, record identities and titles and reported status as structured JSON from Indian Railways. Supply train number in the query; optionally select date to set the requested scope. Use these results to review service progress and connect stop changes or delays with the selected train journey. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Indian Railways train live running 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
- Pricing
On this page
Overview
Indian Railways train live running status API
Use the Indian Railways train live running status API to retrieve station records, calculated distance, geographic position, record identities and titles and reported status as structured JSON from Indian Railways. Supply train number in the query; optionally select date to set the requested scope. Use these results to review service progress and connect stop changes or delays with the selected train journey. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Train live running status API
Where a train run is now: last station passed or reached, delay in minutes, expected times, distance covered, next stop, platform, update time, plus every halt with scheduled and expected arrival and departure, delays and whether it is passed. Before the run starts the stops carry the timetable. `date` is the day the train left its first station (today or the last 6 days, IST; live positions are kept for runs that started in the last 5 days, older runs answer 404); or give `start_day` (0 = today, 1 = yesterday...).
Inputs and results
Send the listed inputs as GET query parameters. Required inputs: number. Supported values, filters and optional identifiers are listed below.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
number | string | Required | 5-digit train number. |
date | string | Optional | Start date of the run at its first station (YYYY-MM-DD, IST). Default today. |
start_day | integer | Optional | Alternative to date: 0 = started today, 1 = yesterday, up to 6. |
raw | string | Optional | Use 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1. |
fields | string | Optional | Optional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained. |
fresh | string | Optional | Use 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1. |
output | string | Optional | Response format for this product: json. Omit this parameter to use JSON. Allowed values: json. |
records | string | Optional | Source export selector for CSV or NDJSON. It has no effect on this JSON-only product. |
Using OpenAny
Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.
OpenAny request example
curl "https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status?number=12951&output=json&raw=0" \
-H "Authorization: Bearer <OPENANY_API_KEY>"This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.
Response example
Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.
{
"number": "12951",
"name": "Mumbai Central - New Delhi Rajdhani Express",
"type": "RAJDHANI",
"start_date": "2026-11-19",
"source": {
"code": "MMCT",
"name": "MUMBAI CENTRAL"
},
"destination": {
"code": "NDLS",
"name": "NEW DELHI"
},
"run_days": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"
],
"runs_on_date": true,
"scheduled_departure": "2026-11-19T17:00:00+05:30",
"journey_min": 932,
"pantry": true,
"status": {
"title": null,
"message": "Crossed VIRAR at 17:49",
"started": true,
"at_source": false,
"at_destination": false,
"current_station": {
"code": "VR",
"name": "VIRAR",
"lat": 19.454817,
"lng": 72.812147,
"scheduled_arrival": "17:37",
"scheduled_departure": "17:37"
},
"state": "passed",
"expected_arrival": "17:49",
"expected_departure": "17:49",
"delay_min": 12,
"distance_covered_km": 56,
"total_distance_km": 1384,
"ahead_distance_km": 0,
"direction": "Travelling North",
"next_stop": {
"name": "SURAT",
"in": "in 1 hr 54 mins",
"delay_min": 0
},
"platform": null,
"updates": [
{
"label": "As of 6 mins ago",
"message": "Crossed virar at 17:49",
"hint": "Delay 12m"
},
{
"label": "As of 6 mins ago",
"message": "207 kilometer to surat",
"hint": "56 kms Covered so far"
},
{
"label": "Order Dinner",
"message": "It's time for Dinner",
"hint": "ORDER NOW"
},
{
"label": "As of 6 mins ago",
"message": "8 kilometer to vaitarna",
"hint": "No-halt station"
},
{
"label": "As of 6 mins ago",
"message": "Just left virar",
"hint": null
}
],
"as_of": "As of 6 mins ago",
"updated_at": "2026-11-19T17:49:00+05:30",
"alert": null,
"diverted_stations": null
},
"station_count": 8,
"stations": [
{
"seq": 1,
"code": "MMCT",
"name": "MUMBAI CENTRAL",
"distance_km": 0,
"day": 1,
"scheduled_arrival": "17:00",
"scheduled_departure": "17:00",
"expected_arrival": "17:00",
"expected_departure": "17:00",
"arrival_delay_min": 0,
"departure_delay_min": null,
"halt_min": 0,
"platform": "1",
"passed": true,
"diverted": false,
"lat": 18.970727,
"lng": 72.819443,
"non_stop_stations": 18
},
{
"seq": 20,
"code": "BVI",
"name": "BORIVALI",
"distance_km": 30,
"day": 1,
"scheduled_arrival": "17:20",
"scheduled_departure": "17:22",
"expected_arrival": "17:30",
"expected_departure": "17:32",
"arrival_delay_min": 10,
"departure_delay_min": null,
"halt_min": 2,
"platform": "6",
"passed": true,
"diverted": false,
"lat": 19.229149,
"lng": 72.856822,
"non_stop_stations": 7
},
{
"seq": 63,
"code": "ST",
"name": "SURAT",
"distance_km": 263,
"day": 1,
"scheduled_arrival": "19:43",
"scheduled_departure": "19:48",
"expected_arrival": "19:43",
"expected_departure": "19:48",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 5,
"platform": "1",
"passed": false,
"diverted": false,
"lat": 21.206418,
"lng": 72.840643,
"non_stop_stations": 24
},
{
"seq": 88,
"code": "BRC",
"name": "VADODARA JN",
"distance_km": 392,
"day": 1,
"scheduled_arrival": "21:06",
"scheduled_departure": "21:16",
"expected_arrival": "21:06",
"expected_departure": "21:16",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 10,
"platform": "2",
"passed": false,
"diverted": false,
"lat": 22.310696,
"lng": 73.181005,
"non_stop_stations": 40
},
{
"seq": 129,
"code": "RTM",
"name": "RATLAM JN",
"distance_km": 653,
"day": 2,
"scheduled_arrival": "00:25",
"scheduled_departure": "00:28",
"expected_arrival": "00:25",
"expected_departure": "00:28",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 3,
"platform": "5",
"passed": false,
"diverted": false,
"lat": 23.34068,
"lng": 75.051126,
"non_stop_stations": 5
},
{
"seq": 135,
"code": "NAD",
"name": "NAGDA JN",
"distance_km": 695,
"day": 2,
"scheduled_arrival": "01:08",
"scheduled_departure": "01:10",
"expected_arrival": "01:08",
"expected_departure": "01:10",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 2,
"platform": "1",
"passed": false,
"diverted": false,
"lat": 23.45616,
"lng": 75.412731,
"non_stop_stations": 28
},
{
"seq": 164,
"code": "KOTA",
"name": "KOTA JN",
"distance_km": 920,
"day": 2,
"scheduled_arrival": "03:15",
"scheduled_departure": "03:20",
"expected_arrival": "03:15",
"expected_departure": "03:20",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 5,
"platform": "1",
"passed": false,
"diverted": false,
"lat": 25.223733,
"lng": 75.88068,
"non_stop_stations": 72
},
{
"seq": 237,
"code": "NDLS",
"name": "NEW DELHI",
"distance_km": 1384,
"day": 2,
"scheduled_arrival": "08:32",
"scheduled_departure": "08:32",
"expected_arrival": "08:32",
"expected_departure": "08:32",
"arrival_delay_min": 0,
"departure_delay_min": 0,
"halt_min": 0,
"platform": "3",
"passed": false,
"diverted": false,
"lat": 28.642464,
"lng": 77.220154,
"non_stop_stations": 0
}
],
"cached": false,
"fetched_at": "2026-11-19T12:25:11.727Z",
"credits_used": 1
}Usage and price
The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.
Coverage and limits
Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.
Playground
Run sends a real API request. Charges follow the published API contract.
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
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cached?: boolean;
credits_used?: number;
destination?: {
code?: string;
name?: string;
};
fetched_at?: string;
journey_min?: number;
name?: string;
number?: string;
pantry?: boolean;
run_days?: Array<string>;
runs_on_date?: boolean;
scheduled_departure?: string;
source?: {
code?: string;
name?: string;
};
start_date?: string;
station_count?: number;
stations?: Array<{
arrival_delay_min?: number;
code?: string;
day?: number;
departure_delay_min?: null | number;
distance_km?: number;
diverted?: boolean;
expected_arrival?: string;
expected_departure?: string;
halt_min?: number;
lat?: number;
lng?: number;
name?: string;
non_stop_stations?: number;
passed?: boolean;
platform?: string;
scheduled_arrival?: string;
scheduled_departure?: string;
seq?: number;
}>;
status?: {
ahead_distance_km?: number;
alert?: null;
as_of?: string;
at_destination?: boolean;
at_source?: boolean;
current_station?: {
code?: string;
lat?: number;
lng?: number;
name?: string;
scheduled_arrival?: string;
scheduled_departure?: string;
};
delay_min?: number;
direction?: string;
distance_covered_km?: number;
diverted_stations?: null;
expected_arrival?: string;
expected_departure?: string;
message?: string;
next_stop?: {
delay_min?: number;
in?: string;
name?: string;
};
platform?: null;
started?: boolean;
state?: string;
title?: null;
total_distance_km?: number;
updated_at?: string;
updates?: Array<{
hint?: string | null;
label?: string;
message?: string;
}>;
};
type?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Indian Railways train live running status API · GET · View API reference | $0.002 / billing credit | — | —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: 2. 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
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'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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}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.
View API Markdown
# Indian Railways train live running status API
Use the Indian Railways train live running status API to retrieve station records, calculated distance, geographic position, record identities and titles and reported status as structured JSON from Indian Railways. Supply train number in the query; optionally select date to set the requested scope. Use these results to review service progress and connect stop changes or delays with the selected train journey. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · Indian Railways train live running status API: https://openany.si/markets/apis/capabilities/indian-railways-train-live-running-status-api?offering=23e3c631-2ee1-472c-8617-45acdcc85fce · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/indian-railways-train-live-running-status-api
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared 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'
```
## API contract
```json
{
"resource_type": "api",
"name": "Indian Railways train live running status API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/indian-rail/v1/live-status",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "5-digit train number.",
"location": "query",
"name": "number",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Start date of the run at its first station (YYYY-MM-DD, IST). Default today.",
"location": "query",
"name": "date",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Alternative to date: 0 = started today, 1 = yesterday, up to 6.",
"location": "query",
"name": "start_day",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"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": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Minimal request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"number": "12951",
"output": "json",
"raw": "0"
}
},
"response_body": {
"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
| 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" }