api-railway-api
New API that provide all the information related to Indian Trains.
Installation
npm install api-railway-api --save
Usage
const railway = ;
- set API key (Don't Forget to Add)
railway;
You can get the API Key by registering here https://indianrailapi.com/
- Train_No information
Get the train information by entering Train number.
railway;
- Trains between stations
Get all trains(numbers) running between a source station and destination.
railway;
- Check Train Live Status
Get the current status of Train by entering Train_No and Date (yyyymmdd).
railway;
- Check Train Schedule
Get the full schedule of train from source to destination
railway;
- Check Train Fare
Get the Fare of tickets between two station of all class (GN,SL,AC)
- Train_No: Train Number.
- source : Source Station Code.
- destination: Destination Station Code.
- quota : GN/CK
railway;
- Check Seat Availability
- Train_No : Train Number.
- source : Source Station Code.
- destination: Destination Station Code.
- date : Request Date in yyyyMMdd format.
- class : Class Code Like 1A/2A/3A/SL and so on.
- Quota : Currently available only for General(GN) Quata.
railway;
- Check Coach Position
railway;