eRail.in API is the Official API for developers to get Indian railway information such as Station List, Trains, Route, Fare. PNR Status, Live Status, Seat/Berth Availability, Cancelled train information, Diverted trains, Rescheduled trains, and so on as JSON objects.
Note that this data is provided for non-commercial use for developers to create innovative mobile applications and websites for that would be useful for commuters.
Note: It seems like eRail.in API service has been suspended until further notice!
How to use eRail APIThe API works on HTTP protocol and as a developer, you have to register yourself with the service by sending an email to api@erail.in with following details,
Subject: Request for Indian Railways API registration Body: To eRail.in API,
I would like to register for Indian Railways API access.
Following are the details :
Contact Name :
Contact Email ID:
Mobile:
Company:
Address:
Website:
Commercial/Non-Commercial :
Purpose of use :
Once you get approved you will reactive an API key, each request to the server as a URL must contain a Valid API Key, this will help you monitor application usage and set per IP quota/limit
This is not an AI-generated article but is demonstrated by a human.
Please support independent contributors like Code2care by donating a coffee.
Buy me a coffee!

Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!