Konkan Railway API
Free Konkan Railway API with no key: live train running positions, all 71 stations with distances, and route details for India's western coastal railway. Tested example included.
Endpoint tested and returned HTTP 200 on 2026-08-21
What is the Konkan Railway API?
The Konkan Railway API is a free, key-free wrapper around the operator's live train position system. It returns the current running status of trains on the Konkan line, plus a complete list of the route's 71 stations with distances, states and descriptions.
Indian Railways as a whole has no open API — every third-party service is key-gated and most are paid — so the Konkan Railway Corporation's public running-position display is a genuinely unusual opening. It covers the 741-kilometre coastal line from Roha in Maharashtra down through Goa to Thokur in Karnataka, a route famous for monsoon landslide risk and for having its own live tracking long before the rest of the network.
The station list is more informative than most reference data. Each entry carries a cumulative `distance` in kilometres from Roha, so ordering by it reconstructs the route without any separate sequence field, and the free-text `description` records practical details the operator wanted passengers to know — which stations are halts served only by passenger trains, where the roll-on roll-off freight service starts, what is worth seeing nearby. It is written for travellers rather than for machines, so treat it as prose.
Quick facts
- Base URL
https://konkan-railway-api.vercel.app/api/v4- Authentication
- No key or account. Open-source community wrapper around Konkan Railway Corporation's public position display; not an official API.
- Rate limit
- No published quota. It proxies the operator's own site, so keep polling gentle — once a minute is more than enough.
- Pricing
- Free and open source.
- CORS
- Enabled — callable directly from browser JavaScript
- Official docs
- Read the docs
How to use the Konkan Railway API
Every request below was executed against the live API on 2026-08-21, and the response shown is the real body it returned — not an illustration.
1. List every station on the Konkan Railway route
GET https://konkan-railway-api.vercel.app/api/v4/fetchStations
curl 'https://konkan-railway-api.vercel.app/api/v4/fetchStations'const res = await fetch("https://konkan-railway-api.vercel.app/api/v4/fetchStations");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://konkan-railway-api.vercel.app/api/v4/fetchStations", timeout=20)
res.raise_for_status()
print(res.json()){
"count": 71,
"stations": [
{
"description": "This is the last station of Central Railway. Konkan Railway starts from here.",
"distance": "0",
"name": "Roha",
"state": "Maharashtra",
"type": "big"
},
{
"description": "This is the first station of Konkan Railway from the North. The daily RORO services commence from here. Please go to the RORO section for more details.",
"distance": "12",
"name": "Kolad",
"state": "Maharashtra",
"type": "small"
},
{
"description": "This is a halt station and only the passanger trains stop here.",
"distance": "20",
"name": "Indapur",
"state": "Maharashtra",
"type": "small"
},
{
"description": "Places to see near Mangaon are Raigarh fort and Harihareshwar Shiv temple. Please see our tourist section for more details.",
"distance": "30",
"name": "Mangaon",
"state": "Maharashtra",
"type": "small"
},
{
"description": "This is a halt station and only the passanger trains stop here.",
"distance": "35",
"name": "Goregaon Road",
"state": "Maharashtra",
"type": "small"
},
{
"description": "You can approach the Raigarh Fort and hill stations of Mahabaleshwar and Panchgani from Veer.The township of Mahad is close by.",
"distance": "47",
"name": "Veer",
"state": "Maharashtra",
"type": "small"
},
{
"description": "--",
"distance": "55",
"name": "Sape Wamane",
"state": "Maharashtra",
"type": "smaParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
fetchStations | path | Optional | `/fetchStations` returns all 71 stations in route order with distances. fetchStations |
fetchTrains | path | Optional | `/fetchTrains` returns the trains currently reporting a position on the line. fetchTrains |
(train detail) | path | Optional | Train-specific paths return running status for one service. |
Response fields
countinteger- How many stations the response contains — 71 for the full route.
stationsarray- The station list in route order from Roha southwards.
stations[].namestring- Station name.
stations[].distancestring- Cumulative kilometres from Roha, as a string. Sorting on it reconstructs the route order.
stations[].statestring- Indian state the station sits in: Maharashtra, Goa or Karnataka.
stations[].typestring- `big` or `small`, roughly distinguishing major stations from halts.
stations[].descriptionstring- Free-text passenger notes — which trains stop, nearby attractions, operational quirks.
What you can build with the Konkan Railway API
- Show live train positions on the Konkan coastal route
- Build a station list ordered by distance along the line
- Estimate remaining journey distance from a train's current position
- Display passenger-facing station notes in a travel app
- Track monsoon-season disruption on a landslide-prone route
Common errors and how to fix them
Distance arithmetic gives wrong results
`distance` is a string, not a number.
Fix: Cast before comparing or subtracting. Sorting strings puts "100" before "20", which quietly reverses part of the route.
No trains in the response
No service is currently reporting a position on the line.
Fix: Coverage depends on the operator's own tracking. Overnight and between services an empty list is the correct answer.
Upstream errors or timeouts
The API proxies Konkan Railway's public site, which is not built for third-party load.
Fix: Cache the station list permanently — it changes almost never — and poll positions gently with a retry and backoff.
Other Indian trains are missing
Coverage is the Konkan line only.
Fix: This is a single-corridor service. The wider Indian Railways network has no equivalent open API, and the rest are key-gated.
Konkan Railway API — frequently asked questions
Is the Konkan Railway API free?
Yes, free with no key or account. It is an open-source community wrapper around the operator's public live-position display, not an official Indian Railways product.
What area does it cover?
The Konkan Railway only: 741 kilometres of coastal line from Roha in Maharashtra through Goa to Thokur in Karnataka, with 71 stations. Trains elsewhere on the Indian network do not appear.
How do I put the stations in route order?
Sort by `distance`, which is cumulative kilometres from Roha. Cast it to a number first — it is delivered as a string, so a lexical sort scrambles the sequence.
How reliable is the live position data?
It reflects whatever the operator's own tracking reports, so it is as good as the source. Because the API proxies a public website rather than a supported feed, expect occasional outages and cache what you can.
Tools that pair with this API
Distance Calculator
Calculate the straight-line distance and bearing between two points on a map by latitude/longitude using the Haversine formula — km, miles and nautical miles.
JSON to CSV Converter
Convert a JSON array of objects to CSV online. Automatic column headers from the union of all keys, delimiter choice and proper quoting — all in-browser.
Unit Converter
Convert between units of length, weight, temperature, area, volume, speed, time and data storage instantly, with a swap button and common conversion tables.
Konkan Railway is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 2026-08-21; always check the official documentation before relying on this API in production, as terms and limits can change.