API

Running Status PNR Route Availablity Fare Train Between Station Train No. Station Name Station Code Train On Station Cancelled FOOD

train between station

Http API

http://indianrailapi.com/api/v1/trainsbetweenstations/apikey/<apikey>/date/<yyyymmdd>/source/<source>/destination/<destination>/

Parameter

  • apikey : Your API key.
  • trainnumber : Train no
  • date : Date of journy in yyyymmdd format.
  • source : Source Station Code (In Capital letters).
  • destination : Destination Station Code (In Capital letters).


Output

{"ResponseCode":200,"Total":10,"Trains":[{"Number":1,"Name":"SADBHAWANA EXP","TrainNumber":"14015","SourceDepartureTime":"05:10","DestinationArrivalTime":"05:40","TravelTime":"24:30","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"DELHI SARAI ROHILLA","Code":"DEE"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"N"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"N"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"N"},{"DayCode":"FRI","Runs":"N"},{"DayCode":"SAT","Runs":"N"},{"DayCode":"SUN","Runs":"N"}]},{"Number":2,"Name":"LICHCHIVI EXPRESS","TrainNumber":"14005","SourceDepartureTime":"06:05","DestinationArrivalTime":"04:35","TravelTime":"22:30","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"ANAND VIHAR TRM","Code":"ANVT"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":3,"Name":"KIR-ASR EXPRESS","TrainNumber":"15707","SourceDepartureTime":"06:35","DestinationArrivalTime":"02:50","TravelTime":"20:15","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"DELHI","Code":"DLI"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":4,"Name":"BIHAR SAMPARK KRANTI EXP","TrainNumber":"12565","SourceDepartureTime":"11:25","DestinationArrivalTime":"05:35","TravelTime":"18:10","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"NEW DELHI","Code":"NDLS"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"Y"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":5,"Name":"VAISHALI EXP","TrainNumber":"12553","SourceDepartureTime":"12:10","DestinationArrivalTime":"06:45","TravelTime":"18:35","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"NEW DELHI","Code":"NDLS"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"Y"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":6,"Name":"SHAHEED EXPRESS","TrainNumber":"14673","SourceDepartureTime":"12:50","DestinationArrivalTime":"13:34","TravelTime":"24:44","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"SUBZI MANDI","Code":"SZM"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"N"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"N"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"N"}]},{"Number":7,"Name":"NJP UDZ EXPRESS","TrainNumber":"19602","SourceDepartureTime":"17:15","DestinationArrivalTime":"13:00","TravelTime":"19:45","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"DELHI CANTT","Code":"DEC"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"N"},{"DayCode":"WED","Runs":"N"},{"DayCode":"THU","Runs":"N"},{"DayCode":"FRI","Runs":"N"},{"DayCode":"SAT","Runs":"N"},{"DayCode":"SUN","Runs":"N"}]},{"Number":8,"Name":"AVADH ASSAM EXPRESS","TrainNumber":"15909","SourceDepartureTime":"17:50","DestinationArrivalTime":"15:05","TravelTime":"21:15","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"DELHI","Code":"DLI"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"N"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":9,"Name":"SWATANTRTA SENANI  EXP","TrainNumber":"12561","SourceDepartureTime":"18:45","DestinationArrivalTime":"12:30","TravelTime":"17:45","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"NEW DELHI","Code":"NDLS"},"Classes":[{"ClassCode":"SL","Available":"Y"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"Y"},{"ClassCode":"CC","Available":"N"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"Y"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"Y"},{"DayCode":"WED","Runs":"Y"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"Y"},{"DayCode":"SAT","Runs":"Y"},{"DayCode":"SUN","Runs":"Y"}]},{"Number":10,"Name":"GARIB RATH","TrainNumber":"12203","SourceDepartureTime":"20:00","DestinationArrivalTime":"13:55","TravelTime":"17:55","From":{"Name":"HAJIPUR JN","Code":"HJP"},"To":{"Name":"NEW DELHI","Code":"NDLS"},"Classes":[{"ClassCode":"SL","Available":"N"},{"ClassCode":"2S","Available":"N"},{"ClassCode":"3E","Available":"N"},{"ClassCode":"2A","Available":"N"},{"ClassCode":"CC","Available":"Y"},{"ClassCode":"3A","Available":"Y"},{"ClassCode":"1A","Available":"N"},{"ClassCode":"FC","Available":"N"}],"Days":[{"DayCode":"MON","Runs":"Y"},{"DayCode":"TUE","Runs":"N"},{"DayCode":"WED","Runs":"N"},{"DayCode":"THU","Runs":"Y"},{"DayCode":"FRI","Runs":"N"},{"DayCode":"SAT","Runs":"N"},{"DayCode":"SUN","Runs":"Y"}]}]}