https://indianrailapi.com/api/v2/SeatAvailability/apikey/{apikey}/TrainNumber/{trainNumber}/From/{stationFrom}/To/{stationTo}/Date/{yyyyMMdd}/Quota/GN/Class/{classCode}
Parameter :
- apikey : Your API key.
- trainNumber : Train Number.
- From : Source Station.
- To : Destination Station.
- Date : Request Date in yyyyMMdd format.
- Class : Class Code Like 1A/2A/3A/SL and so on.
- Quota : Currently we are providing only for General(GN) Quata.
Output :
{"ResponseCode":"200","TrainNo":"12565","From":"NDLS","To":null,"ClassCode":"3A","Quota":"GN","Availability":[{"JourneyDate":"06-10-2018","Availability":"GNWL28/WL15","Confirm":"36 %"},{"JourneyDate":"07-10-2018","Availability":"GNWL25/WL13","Confirm":"40 %"},{"JourneyDate":"08-10-2018","Availability":"GNWL16/WL10","Confirm":"72 %"},{"JourneyDate":"09-10-2018","Availability":"GNWL15/WL13","Confirm":"85 %"},{"JourneyDate":"10-10-2018","Availability":"GNWL26/WL17","Confirm":"66 %"},{"JourneyDate":"11-10-2018","Availability":"GNWL15/WL9","Confirm":"78 %"},{"JourneyDate":"12-10-2018","Availability":"GNWL19/WL13","Confirm":"78 %"}],"Message":"SUCCESS"}