Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Any Public API for IRCTC to check PNR Status and Seat Availability?

I’m working on an android application to check PNR status and seat availability. So is there any public api for getting this information?

I tried many API, but most of them are not working.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Have you tried https://rapidapi.com/IRCTCAPI/api/irctc1 ?

They have some sample examples also,

const axios = require("axios");

const options = {
  method: 'GET',
  url: 'https://irctc1.p.rapidapi.com/api/v1/getPNRStatus',
  params: {pnrNumber: 'xxxxxxxxxx'},
  headers: {
    'X-RapidAPI-Host': 'irctc1.p.rapidapi.com',
    'X-RapidAPI-Key': 'YOUR KEY'
 }
};

axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});

Note please use your key in X-RapidAPI-Key

Apart from PNR and Seat availability they some more useful API’s.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading