Rail Info API (India)

Read-only API for Indian Railways stations, trains, schedules, and timetables. Static dataset. No real-time running status.

99 subscribers
9.6/10 popularity
331 ms avg latency
84% success rate
16 endpoints
The in-depth APIMemo review for this API hasn't been published yet — the data below comes straight from the public marketplace listing.

Rail Info API (India) endpoints

MethodEndpointDescription
Meta
GET getReady
/v1/ready
Returns 200 if database is accessible and dataset is loaded. Returns 503 if database is unavailable or dataset not loaded.
GET getHealth
/v1/health
Returns 200 if the service is running.
GET getMeta
/v1/meta
Returns comprehensive metadata about the current dataset including: - Dataset version and build timestamp - Data source and license - Entity counts (stations, trains, stops) -…
Stations
POST resolveStations
/v1/stations/resolve
Resolve messy station inputs (user-typed names, abbreviations) into canonical station UIDs. Useful for data cleaning pipelines.
GET getStationTimetable
/v1/stations/{station_id}/timetable
List all trains stopping at a station, sorted by departure time. Paginated with cursor support.
GET getStationArrivals
/v1/stations/{station_id}/arrivals
Get scheduled arrivals to a station within a time window. **Timezone Rule**: If datetime has no timezone, it is interpreted as Asia/Kolkata (IST, UTC+5:30). **Time Window**:…
GET getStation
/v1/stations/{station_id}
Get full station details by UUID or station code. Supports conditional requests with ETag.
GET searchStations
/v1/stations/search
Search stations by name, code, or alias. **Ranking (highest to lowest)**: 1. `code` - Exact station code match (confidence: 1.0) 2. `fts` - Full-text search on name/aliases…
GET getStationsNearby
/v1/stations/nearby
Find stations within a radius of a geographic point. Returns stations sorted by distance (nearest first).
GET getStationDepartures
/v1/stations/{station_id}/departures
Get scheduled departures from a station within a time window. **Timezone Rule**: If datetime has no timezone, it is interpreted as Asia/Kolkata (IST, UTC+5:30). **Time Window**:…
GET getStationAliases
/v1/stations/{station_id}/aliases
Get all aliases (names, codes, transliterations) for a station.
Trains
GET getTrainsBetween
/v1/trains/between
Find all trains running between two stations (origin before destination in route). Optionally filter by an intermediate station the train must pass through.
GET searchTrains
/v1/trains/search
Search trains by number or name. **Ranking (highest to lowest)**: 1. `train_no_exact` - Exact train number match (confidence: 1.0) 2. `train_no_prefix` - Train number prefix…
GET getTrainStops
/v1/trains/{train_id}/stops
Get ordered stop list for a train route. Includes arrival/departure times, distances, and day offsets for overnight trains.
GET getTrain
/v1/trains/{train_id}
Get train metadata by UUID or train number. Supports conditional requests with ETag.
Changes
GET getChanges
/v1/changes
Track what changed between dataset versions: - **station**: Name, code, coordinates, aliases changed - **train**: Train number, name, or discontinued - **route**: Stops…

Rail Info API (India) pricing

PlanPriceRate limitQuotas
BASIC Free 500 / hour
  • Requests: 20,000 / monthly
PRO Recommended $9 / month 4000 / hour
  • Requests: 150,000 / monthly (then $0.0010 each)
ULTRA $39 / month 10000 / hour
  • Requests: 1,000,000 / monthly (then $0.0010 each)

More Transportation APIs

View all →
  • Live air traffic and aircraft positional data via ADS-B / MLAT / UAT NOTE: Please scroll down to view the…

    TransportationFreemium1.1k subscribers
  • Fast and Reliable Real-Time Traffic Alerts Data (Accidents, Police, Hazards, and more), Jams, and Driving…

    TransportationFreemium1.3k subscribers
  • Flight Radar is a freemium API that delivers real-time aircraft location data, flight details, historical…

    ReviewedTransportationFreemium9.2k subscribers
  • Get real-time accidents, police and many more alerts. Stay informed about traffic jams, and access precise…

    TransportationFreemium151 subscribers
  • TimeTable Lookup is a flight scheduling API from FlightLookup that gives developers access to worldwide…

    ReviewedTransportationFreemium4.7k subscribers
  • 公共交通手段と徒歩を組み合わせた、日本国内のドアtoドアの最適な移動経路・料金を算出できます。物件までの行き方案内や交通費計算機能として活用いただけます。 Calculates the optimal…

    TransportationFreemium1.7k subscribers