Indian Railway Stations Database
Complete database of 10,102 Indian Railway stations with station codes, names, and details. Perfect for developers, researchers, and railway enthusiasts.
10,102 Stations
JSON Format
Live API
API Access
GET [your-domain]/api/v1/stations/all-kvs
Access this data programmatically via our REST API. The endpoint returns all stations in JSON format with station codes as values and “code - name“ as labels.
An API key is required to access this endpoint. Include your API key in the
X-API-Key
header of your request.API Key Required
CORS Enabled
Rate Limited
Showing first 50 of 0 stations
Loading stations database...
Usage Examples
How to use this data in your applications
JavaScript/Node.js
// Fetch all stations
const response = await fetch('/api/v1/stations/all-kvs', {
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
const stations = response.json();
// Find a specific station
const newDelhi = stations.find(s =>
s[0] === 'NDLS'
);
Python
import requests
# Fetch all stations
headers = {
'X-API-Key': 'YOUR_API_KEY'
}
response = requests.get('/api/v1/stations/all-kvs', headers=headers)
stations = response.json()
# Filter stations by city
mumbai_stations = [s for s in stations
if 'mumbai' in s[1].lower()]