公共API调用来获取PNR状态状态、API、PNR

2023-09-05 09:39:20 作者:在作業的葬禮上唱好日子

我要整合获取PNR状态功能在我的应用程序,但不要有任何的API调用来得到它。是否有任何公开的API调用可用来获取当前印度铁路PNR状态。如果有,请提供呼叫和呼叫模式。

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.

推荐答案

正是在那里,你可以使用这个网址 http://pnrapi.appspot.com/+ tenDigitPNRNumber

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

您可以检查 这里 了解

you can check here for more

或者你可以去 erail

or you can go for erail

查找列车 - >请求URL:http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0

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

---培养模式

---火车项目

//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 ]+')

查看供应情况 - >请求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