Indian Railways PNR API


Easiest way to integrate PNR fetching into your app.

Request:

Sample Response:


"status" : "OK",
"data" : { 
          "train_name" : "ERNAKULAM EXP",
          "train_number" : "12677",
          "from" :  {"name" : "Bangalore City" , "code":"SBC"},
          "to" :  {"name" : "Coimbatore Jn." , "code":"CBE"},
          "alight" : {"name" : "Coimbatore Jn." , "code":"CBE"},
          "board" : {"name" : "Bangalore City" , "code":"SBC"},
          "class" : "2S",
          "travel_date" : "2-6-2011"
          "passenger" : [ { "seat_number" : "D8  , 31,GN", "status" : "CNF" },
                          { "seat_number" : "D8  , 32,GN", "status" : "CNF" } ],
          "chart_prepared" : false
         }
            

Options:

Status Codes:

Code What it means
OK All iz well. You should get a response
TIMEOUT There was a server timeout. Server timeout is 1 second.
INVALID Invalid PNR Number. It doesn't exist.