Live API for everything you want to know about Indian Railways

Hello techies, hope you all will be exploring and making. This is something very useful for you and also who want to make an Application for Indian Railway Train’s Information. Before somedays, I got one comment on my video about How to fetch data from any website and the comment goes like this,

so if have the same question than let me answer you that why it is not possible to fetch Railway status through thingspeak.com website because in thingspeak, it will create a link according to the URL of the page as well as the data ID which is to be fetched. So if you want to get the data for different train or different station, obviously the URL of the page will change and hence we need to make different different API’s for every train and every station. But again there will be a number of links if we go like this. But relax….., we have another option for particularly this problem.And the solution is RailwayAPI.com

RailwayAPI.com

 

Railway API is the solution for your every question regarding Indian Railways. Here you can get ready APIs for,

  • PNR Status
  • Train Route
  • Seat Availability
  • Trains Between Stations
  • Train Name/Number
  • Train Fare Enquiry
  • Train Arrivals at Station
  • Cancelled Trains
  • Rescheduled Trains
  • Station Name to Code
  • Station Code to Name
  • Station Autocomplete Suggest
  • Train Autocomplete Suggest

so now with this you can get every bit of information for any of your project that may be a Train status display board or it may be a smart phone app.Now let’s see how to use this service

Getting Started with Railway API

STEP:1 Creating Your Account

Before using this service, first you need to make an account in this website. You don’t need to fill much info, just provide your name and email ID. Click Here to directly goto signUp form.That’s it…
After registration you will be getting your API key in your mail. This key will also work as your login password.

STEP:2 Upgrade your Account (Optional)

 

 

Yes!!!!, limited version of this is free.For more, you need to pay for that. But it is worth paying if you are earning from this.

 

By default you will be subscribed to Starter Pack which is absolutely free in which you will be allowed to use every service but condition is only 100 hits/day. So you can request just 100 links in a day. So if you want more, than upgrade your account.

STEP:3 How to use API for different Purpose

There are many functions available in this website as we have already discussed. So how to use that???

Go to this page . Here you will find the proper syntax for how to request the link for different different purposes. So here I don’t need to explain as the page on the site is much descriptive. So test the API by requesting the link in your browser.

I have requested one API for train route in my chrome for the train number 12433, and this is what I got in response,

 

NOTE :- Do not share your API key with any one as you have got very limited numbers of hits per day

And you can use this link for you projects in the same manner as we have used the API from thingspeak.com. Hope you got this and found it interesting.Still if you have any doubt, comment below I’ll definitely try to solve that.

#techiesms
explore | learn | share

Leave a Reply

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