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-kvsAccess 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
// Using React Query Hook (Recommended)
import { useAllStationKVs } from '@rail-radar/shared';
function MyComponent() {
const { data: stations, isLoading } = useAllStationKVs();
if (isLoading) return <div>Loading...</div>;
// Find a specific station
const newDelhi = stations?.find(s => s[0] === 'NDLS');
return (
<div>
{stations?.map(station => (
<div key={station[0]}>{station[1]}</div>
))}
</div>
);
}Python
# For standalone Python applications
import requests
headers = {'X-API-Key': 'YOUR_API_KEY'}
response = requests.get(
'https://railradar.in/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()
]