Open API call to get PNR status

I want to integrate the PNR status function in my application, but I have no api call to receive it. Is there any public IPI access for PNR status in Indian Railways? If yes, please indicate this call and call pattern.

+6
source share
1 answer

Here you can use this URL http://pnrapi.appspot.com/+ tenDigitPNRNumber

You can check here for more

or you can go erail

Find trains β†’ Request URL: http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0

--- sample train

--- Train items

 //Use this regex to get the value reg=re.compile(r'\^\d+\~[A-Za-z0-9 ]+') ---train numbers from train items reg=re.compile(r'\d+') ---train names from train items reg=re.compile(r'[A-Za-z0-9 ]+') 

Find Availability -> Request URL: http://indiatrain.in/Rail/getAvailabilityMMT2.aspx?Train_No=11077&Station_From=GWL&Station_To=NDLS&mDay=10&mMonth=10&mYear=2011&mClass=3A&mQuota=618196&1918

+7
source

All Articles