DEV Community

Krutik Raut
Krutik Raut

Posted on • Originally published at dev.to

Train PNR Status API

PNR Status API

So I made a PNR status API using data scrapped from confirmtkt.com

General Information

  1. Built in Node.js
  2. Express Framework for routes and API handling
  3. Cheerio for Data scraping
  4. Node fetch to get response from confirmtkt
  5. Hosted on Vercel.com

Links

Live Mode : https://pnr-status.vercel.app

End Point : api/{PNR}

Reboot13

Telegram || Instagram || Twitter || Youtube || LinkedIN || Donate

Top comments (1)

Collapse
 
pranavyadav profile image
Pranav Yadav • Edited

Great ! ๐Ÿ˜€
But,

  • are they(confirmtkt) providing public/paid apis, if no, then ๐Ÿ‘‡
  • are u sure that u can use scraped data from confirmtkt to create/provide api end point. Make sure you follow their "terms of use" and other policies. Don't get me wrong, just trying to help you.

Though, UI is awesome ๐Ÿคฉ Great work๐Ÿ‘

[Edit]

  • You haven't made the PNR input "required" :) ๐Ÿ‘