Is there any Indian Railway API available?

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 27, 2024
Anyone knows about any api provided by Indian Railway through which i can get train paths and their current locations?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Aug 12, 2012

    I guess IRCTC API is available, but it's not open to everyone. There are a number of ticketing websites that allow you to book IRCTC tickets; but it looks like in order to use them; your company needs to have an annual turnover of about Rs. 5 crores. 😲 [Not sure though].
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Aug 12, 2012

    The_Big_K
    I guess IRCTC API is available, but it's not open to everyone. There are a number of ticketing websites that allow you to book IRCTC tickets; but it looks like in order to use them; your company needs to have an annual turnover of about Rs. 5 crores. 😲 [Not sure though].
    yes i too read this 😁 , but i don't want api for ticket booking , instead i need api for tracking location of trains

    if there is no api available then i will just have one option of scraping that also i am not sure would be a gud idea
  • Anoop Kumar

    Anoop Kumar

    @anoop-kumar-GDGRCn Aug 13, 2012

    Check <a href="https://erail.in/" target="_blank" rel="nofollow noopener noreferrer">Indian Railways Enquiry PNR Status Live Status IRCTC Reservation Seats</a>
    They are using it.
    you can use HttpAnalyser to fetch all query url and Google APIto draw a pathmap.
    See also: <a href="https://www.trainenquiry.com/" target="_blank" rel="nofollow noopener noreferrer">www.trainenquiry.com</a>
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Aug 13, 2012

    ianoop
    Check <a href="https://erail.in/" target="_blank" rel="nofollow noopener noreferrer">Indian Railways Enquiry PNR Status Live Status IRCTC Reservation Seats</a>
    They are using it.
    you can use HttpAnalyser to fetch all query url and Google APIto draw a pathmap.
    See also: <a href="https://www.trainenquiry.com/" target="_blank" rel="nofollow noopener noreferrer">www.trainenquiry.com</a>
    Thanks anoop

    I was just looking for something that would take me less effort otherwise this is already a option for me

    My Plan is to display movement of trains on live basis on google maps, for this continuous ajax calls won't be a good option,

    Would you suggest any alternative for this?
  • Anoop Kumar

    Anoop Kumar

    @anoop-kumar-GDGRCn Aug 13, 2012

    You want to integrate TrainInquiry information on the erail like google api <a href="https://erail.in/rail/frm_Rail_Map.aspx?TrainID=1960" target="_blank" rel="nofollow noopener noreferrer">Train Route</a> graph.
    Its a nice idea to blink current train location on plotted graph.
    I don't know if railway provides api. but I think you can do this using HttpAnalyser.
  • Toxic303

    Toxic303

    @toxic303-Qib2VF Nov 9, 2013

    pnrBuddy launched some free and fast APIs. Have a look #-Link-Snipped-#
  • Ryan Rajpoot

    Ryan Rajpoot

    @ryan-rajpoot-qHyjud Jul 19, 2016

    I am using a source of api on my site <a href="https://www.pnrstatusbuzz.in/" target="_blank" rel="nofollow noopener noreferrer">PNR Status - Check PNR Status of IRCTC and Railway Ticket</a>, is there any way through which i can get api directly from Indian Railway. Do you guys know anything about it. Please point me in right direction. I really need to know about this. Please help me out.
  • Muhsin Mohamed Pc

    Muhsin Mohamed Pc

    @muhsin-mohamed-pc-pE0QDX Jul 21, 2016

    It is better you to directly contact with the Railway by using their official website. Surely they will provide you API.
  • mohan chwala

    mohan chwala

    @mohan-chwala-OXSRim Sep 3, 2016

    i have sent an mail to erail for api registration but didn't get any response from there side for my website <a href="https://spotyourtrain.info" target="_blank" rel="nofollow noopener noreferrer">spotyourtrain.info</a>. we have launched lightest website to check live train status and pnr status. currently we are using commercial api from some websites.
  • mohan chwala

    mohan chwala

    @mohan-chwala-OXSRim Sep 3, 2016

    is there any other website to check <a href="https://spotyourtrain.info" target="_blank" rel="nofollow noopener noreferrer">spotyourtrain.info</a>, other than erail. since i have to complete my website as mu final year project, can any one help me.
  • Aayushi Sharma

    Aayushi Sharma

    @aayushi-sharma-xb4GU6 Nov 24, 2016

    I have found that there are many website which are giving live running train status and #-Link-Snipped-# to any train we have booked, but have found there is some change in time to different sites, don't know from where they all getting such live data.
  • singhkgp

    singhkgp

    @singhkgp-dN8x6a Jul 4, 2017

    You can get you api for very cheap rates around Rs 1000 for 3 months. But price matters the services. They have per day limit for no. of request you can pass to their servers.

    #-Link-Snipped-#