Indian Datasets
Indian Railway Stations API
Comprehensive API documentation for fetching and managing Indian railway station data using the JSONly API.
🇮🇳 🚆 Indian Railway Stations API
Welcome to the Indian Railway Stations API. This API allows you to fetch and manage detailed data about railway stations across India — including station codes, names, and associated cities.
🔗 Base URL
https://jsonly.vercel.app/api/india/railway-stations⚙️ Query Parameters (GET)
Prop
Type
Search Stations
Endpoint:
GET /api/india/railway-stations?station=NDLSOutput Example
{
"success": true,
"total": 1,
"data": [
{
"stnCode": "NDLS",
"stnName": "New Delhi",
"stnCity": "New Delhi"
}
]
}Pagination
Endpoint:
GET /api/india/railway-stations?limit=5&offset=10The default limit is 10. You can paginate through thousands of stations using offset.
🛠️ Mutations (Full CRUD)
Mutations are currently in-memory and will revert to the original state upon server restart.
1. Add a Station (POST)
Register a new railway station.
POST /api/india/railway-stations
Content-Type: application/json
{
"stnCode": "TEST",
"stnName": "Test Station",
"stnCity": "Test City"
}2. Update a Station (PUT/PATCH)
Update station details by its code.
PATCH /api/india/railway-stations
Content-Type: application/json
{
"stnCode": "TEST",
"stnName": "Updated Test Station",
"stnCity": "Updated Test City"
}3. Delete a Station (DELETE)
Remove a station from the database.
DELETE /api/india/railway-stations?stnCode=TESTBuilding a travel app? Combine this with our India Cities API for a complete experience.