Latest :

IRCTC API & Source Codes – Indian Railways API

IRCTC or the Indian Railways Catering and Tourism Corporation is the major online ticketing web portal which is primarily handled by the Indian Railways itself. It is the only official online portal to book train tickets online.

The web portal is heavily encrypted. So, you need to create a profile in order to access the website completely and book tickets for your journey in the future. The basic details that you need to create a profile are as follows:

  • Name
  • Username
  • Password
  • Email ID
  • Mobile Number etc.

All of these should be valid and unique in order to create your profile successfully. No two values must be used elsewhere at any point in time. Repeated values will ensure that your profile is not created, unfortunately.

Once you are done with the profile creation, you can log in and specify your filters to pinpoint your journey details. This information will show you the number of trains which are helpful for your claim only. Those are:

  • From
  • To
  • Date of Journey
  • Class of Journey

As you can see, From and To options talk about the Source and Destination stations of your journey respectively. Date of Journey and Class of Journey are pretty much self-explanatory.

Later, after choosing the correct train, you have to fill in other important credentials such as:

  • Full Name
  • Age
  • Gender
  • Berth Preference
  • Food Choice (For Premium Trains)
  • Senior Citizen or Not etc.

These details will authenticate the ticket on your name. However, filling these up everytime is a tedious task. Hence, IRCTC Magic Autofill will help you with hastening the process.

It is a safe browser plugin which will fill in your information with just a click. Afterwards, you need to finish the ticket booking by paying the price through various online transaction options available.

Third-Party Railways API Source Code

As the name of the heading suggests, here is the third-party source code in numerous programming languages. These codes will ascertain you of many services of the Indian Railways such as checking the PNR status and all. The multiple examples are as follows:


C# is a crossbreed of C and C++. It is a Microsoft programming language elaborated to encounter with Sun’s Java language.

C# is an object-oriented programming language applied with XML-based Web services on the .NET platform and intended for enhancing fecundity in the expansion of Web applications.


PHP is a script language and interpreter. It is a freely available interpreter and it is used principally on Linux Web servers. PHP, formerly descended from Personal Home Page Tools, now stands for PHP: Hypertext Preprocessor.


Android is a mobile operating system which was developed by Google. It is one of the most popular operating systems after Windows and iOS. A lot of mobile phones, tablets, TVs etc work on Android itself.


iOS is the operating system which was developed by Apple. It is one of the most popular operating systems available in the market, strongly competing with Windows from Microsoft.


Python is a multi-pattern, all-purpose, paraphrased, high-level programming language. It allows coders to use various programming styles to build simple or complex programs, get expeditious outcomes and draft code as simple as they can.


Java is a multipurpose, high-level programming language developed by the Sun Microsystems. A lot of multimedia mobile phones ran with the help of Java only, back in the early 2000s.


jQuery is a compact and quick JavaScript archive that can be applied to clarify event handling, HTML document traversing, Ajax interactions and animation for expeditious website development.



Most of the API’s are not official: Official API’s will for only Big Brands.