API

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

train route

Http API

http://indianrailapi.com/api/v1/trainroute/apikey/<apikey>/trainno/<train_no>/

Parameter

  • apikey : Your API key.
  • traino : Train no


Output

{"ResponseCode":200,"Train":{"Name":"BIHAR S KRANTI","TrainNo":"12565","Classes":[{"Code":"2S","Available":"N"},{"Code":"FC","Available":"N"},{"Code":"CC","Available":"N"},{"Code":"2A","Available":"Y"},{"Code":"1A","Available":"Y"},{"Code":"3E","Available":"N"},{"Code":"SL","Available":"Y"},{"Code":"3A","Available":"Y"}],"Days":[{"RunsOn":"Y","DayCode":"SUN"},{"RunsOn":"Y","DayCode":"MON"},{"RunsOn":"Y","DayCode":"TUE"},{"RunsOn":"Y","DayCode":"WED"},{"RunsOn":"Y","DayCode":"THU"},{"RunsOn":"Y","DayCode":"FRI"},{"RunsOn":"Y","DayCode":"SAT"}]},"TrainRoute":[{"State":"Bihar 846009","Distance":0,"Day":1,"Longitude":85.90782,"ScheduleArrival":"Source","Route":1,"ScheduleDeparture":"08:35","Halt":0,"Latitude":26.15407,"SerialNo":1,"FullName":"DARBHANGA JN","Code":"DBG"},{"State":"","Distance":38,"Day":1,"Longitude":0.0,"ScheduleArrival":"09:25","Route":1,"ScheduleDeparture":"09:45","Halt":20,"Latitude":0.0,"SerialNo":2,"FullName":"SAMASTIPUR JN","Code":"SPJ"},{"State":"Bihar 842001","Distance":90,"Day":1,"Longitude":85.3778839,"ScheduleArrival":"10:30","Route":1,"ScheduleDeparture":"10:35","Halt":5,"Latitude":26.1222744,"SerialNo":3,"FullName":"MUZAFFARPUR JN","Code":"MFP"},{"State":"Bihar 854105","Distance":143,"Day":1,"Longitude":87.53464,"ScheduleArrival":"11:14","Route":1,"ScheduleDeparture":"11:15","Halt":1,"Latitude":25.5770454,"SerialNo":4,"FullName":"HAJIPUR JN","Code":"HJP"},{"State":"Bihar 841101","Distance":149,"Day":1,"Longitude":85.1686,"ScheduleArrival":"11:30","Route":1,"ScheduleDeparture":"11:32","Halt":2,"Latitude":25.6971188,"SerialNo":5,"FullName":"SONPUR JN","Code":"SEE"},{"State":"Madhya Pradesh 483440","Distance":203,"Day":1,"Longitude":80.22835,"ScheduleArrival":"12:45","Route":1,"ScheduleDeparture":"12:55","Halt":10,"Latitude":23.6015873,"SerialNo":6,"FullName":"CHHAPRA","Code":"CPR"},{"State":"Bihar 841226","Distance":263,"Day":1,"Longitude":84.3594,"ScheduleArrival":"13:40","Route":1,"ScheduleDeparture":"13:45","Halt":5,"Latitude":26.21107,"SerialNo":7,"FullName":"SIWAN JN","Code":"SV"},{"State":"Uttar Pradesh","Distance":383,"Day":1,"Longitude":83.3755341,"ScheduleArrival":"15:50","Route":1,"ScheduleDeparture":"16:10","Halt":20,"Latitude":26.76014,"SerialNo":8,"FullName":"GORAKHPUR","Code":"GKP"},{"State":"Uttar Pradesh 226001","Distance":661,"Day":1,"Longitude":80.9244,"ScheduleArrival":"20:55","Route":1,"ScheduleDeparture":"21:20","Halt":25,"Latitude":26.83111,"SerialNo":9,"FullName":"LUCKNOW","Code":"LKO"},{"State":"Uttar Pradesh 244235","Distance":735,"Day":1,"Longitude":78.24846,"ScheduleArrival":"22:48","Route":1,"ScheduleDeparture":"22:58","Halt":10,"Latitude":28.8366,"SerialNo":10,"FullName":"KANPUR CENTRAL","Code":"CNB"},{"State":"Delhi 110006","Distance":1174,"Day":2,"Longitude":77.22081,"ScheduleArrival":"05:35","Route":1,"ScheduleDeparture":"Destination","Halt":0,"Latitude":28.64155,"SerialNo":11,"FullName":"NEW DELHI","Code":"NDLS"}]}