Finding Live running status and PNR of ant Train using Railway API:

The railway API is organized around GET request. We can use this API for getting information from the Indian Railways regarding Live running status, Station details, and others through python for data science.

For using this API, we will need an API key from the following link: https://railwayapi.com/register

We have to create an account on railwayapi.com, only then we will be able to use the APIs.

Modules needed: requests, json.

Live running status:

We have shown the implementation below.

Live running status of a Train using Railway API in Python for Data Science Live running status of a Train using Railway API in Python for Data Science

Finding Live PNR status:

Live running status of a Train using Railway API in Python for Data Science Live running status of a Train using Railway API in Python for Data Science  

So, to learn more about it in python for data science, you can check this and this as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.