http://indianrailapi.com/api/v2/TrainBetweenStation/apikey/<apikey>/From/<From>/To/<To>/Via/<Via>
Parameter :
- apikey : Your API key.
- From : Source Station Code.
- To : Destination Station Code.
- Via : Via Station Code.
Output :
{"ResponseCode":"200","Status":"SUCCESS","TotalTrains":"34","Trains":[{"TrainNo":"13507","TrainName":"ASN GKP EXPRESS","Source":"HJP","ArrivalTime":"02:55","Destination":"SV","DepartureTime":"00:25","TravelTime":"02:30H","TrainType":"EXP"},{"TrainNo":"12521","TrainName":"RAPTI SAGAR EXP","Source":"HJP","ArrivalTime":"03:50","Destination":"SV","DepartureTime":"01:40","TravelTime":"02:10H","TrainType":"SF"},{"TrainNo":"15047","TrainName":"PURBANCHAL EXP","Source":"HJP","ArrivalTime":"05:10","Destination":"SV","DepartureTime":"02:30","TravelTime":"02:40H","TrainType":"EXP"},{"TrainNo":"14005","TrainName":"LICHCHAVI EXP","Source":"HJP","ArrivalTime":"09:45","Destination":"SV","DepartureTime":"05:55","TravelTime":"03:50H","TrainType":"EXP"},{"TrainNo":"03241","TrainName":"PNBE GKP EXAM SPECIAL","Source":"PNBE","ArrivalTime":"10:20","Destination":"SV","DepartureTime":"06:00","TravelTime":"04:20H","TrainType":"EXP"},{"TrainNo":"15707","TrainName":"KIR ASR EXPRESS","Source":"HJP","ArrivalTime":"09:30","Destination":"SV","DepartureTime":"06:45","TravelTime":"02:45H","TrainType":"EXP"},{"TrainNo":"15651","TrainName":"LOHIT EXPRESS","Source":"HJP","ArrivalTime":"10:35","Destination":"SV","DepartureTime":"07:15","TravelTime":"03:20H","TrainType":"EXP"},{"TrainNo":"12491","TrainName":"MOUR DHWAJ EXP","Source":"HJP","ArrivalTime":"10:35","Destination":"SV","DepartureTime":"08:00","TravelTime":"02:35H","TrainType":"SF"},{"TrainNo":"15097","TrainName":"AMARNATH EXP","Source":"HJP","ArrivalTime":"10:35","Destination":"SV","DepartureTime":"08:00","TravelTime":"02:35H","TrainType":"EXP"}],"Message":""}