Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Public API call to get PNR Status [closed]

Tags:

android

iphone

I want to integrate Get PNR status feature in my application but dont have any api call to get it. Is there any public api call available to get current Indian Railways PNR status. If yes please provide that call and calling pattern.

like image 502
Krishnakant Dalal Avatar asked Dec 18 '12 11:12

Krishnakant Dalal


1 Answers

It is there you can use this url http://pnrapi.appspot.com/+ tenDigitPNRNumber

you can check here for more

or you can go for erail

Find trains--> request URL: http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0

---trains pattern

---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=GN&temp=1318195420696

like image 181
Mohammed Azharuddin Shaikh Avatar answered Sep 20 '22 17:09

Mohammed Azharuddin Shaikh