Skip to main content
Educational Portal: These APIs are provided strictly for student & academic projects — not for commercial apps or production resale.
Indian Rail API
REST API v2 & v3 • Academic & Non-Commercial Sandbox

APIs built for student projects

Integrate live train status, PNR enquiries, seat availability, fares, and station schedules into college projects and hackathons with clean JSON endpoints.

Strictly for educational, coursework, and non-commercial development use.

21K+

Student Accounts

36+

JSON Endpoints

v2 / v3

Versioned REST

GET /api/v2/TrainSchedule/12565
200 OK • 42ms
{
  "responseCode": "200",
  "status": "SUCCESS",
  "trainNo": "12565",
  "trainName": "BIHAR SAMPARK KRANTI",
  "route": [
    {
      "serialNo": "1",
      "stationCode": "DBG",
      "stationName": "DARBHANGA JN",
      "departureTime": "08:25"
    },
    {
      "serialNo": "12",
      "stationCode": "NDLS",
      "stationName": "NEW DELHI",
      "arrivalTime": "05:05"
    }
  ]
}
JSON • UTF-8 • CORS EnabledOpen in Playground

Works seamlessly with

React & Next.jsNode.jsPython & DjangoAndroid & FlutterC# / .NETJava / Spring

Platform Highlights

Designed for rapid learning and clean integration

Clear Documentation

Structured parameter tables with copy-paste cURL, JavaScript, and C# code examples for every endpoint.

Interactive Playground

Test live requests directly in your browser and inspect real JSON payloads before writing application code.

Versioned REST Routes

Clean v1, v2, and v3 endpoints with predictable response envelopes and API key authentication.

Instant Student Quota

Start immediately on the free tier with real-time hit tracking and usage history in your dashboard.

API Reference

Featured Railway Endpoints

Consistent JSON schemas built for college projects, coursework demos, and academic prototypes.

View All 36 Endpoints

Quickstart

Start making requests in three steps

Read Developer Docs
STEP 01

Create a Free Account

Register with your email to generate a personal API key and activate your daily student request quota.

STEP 02

Test in the Playground

Pick any railway endpoint, pass sample station or train parameters, and verify the live JSON structure.

STEP 03

Integrate Into Your App

Drop the generated fetch, Axios, Python, or HttpClient snippet straight into your college project.

Plans

Simple, Transparent Student Plans

Start free for coursework and lab assignments, or upgrade for higher daily limits during hackathons and final-year project demos.

Starter

P-0
₹0/ month

Up to 50 requests / day

  • 50 Hits / Day
  • Station & Train Master APIs
  • Ideal for Lab Assignments & Learning
  • Non-Commercial Use Only
Get Started Free

Standard

P-500
₹500/ month

Up to 500 requests / day

  • 500 Hits / Day
  • All 36+ v2 Railway Endpoints
  • WhatsApp Text Guidance
  • Academic Coursework & Projects (Non-Commercial)
Choose Plan

Academic Pro

Recommended
₹1000/ month

Up to 1,000 requests / day

  • 1,000 Hits / Day
  • All v2 + v3 Sub-Station APIs
  • WhatsApp Text & Call Guidance
  • Capstone, Research & Viva Demos (Non-Commercial)
Choose Plan

Quick Answers

Common Questions About IndianRailAPI

What is IndianRailAPI used for?

IndianRailAPI is an educational REST JSON API platform built for students, college mini-projects, final-year engineering capstones, and hackathons to query train schedules, station codes, coach layouts, fares, and disrupted train lists.

Is IndianRailAPI free and non-commercial?

Yes. The Starter (P-0) tier is free with 50 daily requests for coursework and lab work. All plans are strictly non-commercial and not licensed for commercial travel portals or resale.

What response format and API versions are supported?

All endpoints return standard UTF-8 JSON over HTTPS/HTTP GET with API key authentication across versioned v1 (account/dashboard), v2 (standard railway data), and v3 routes.

Where can I learn Indian Railways rules, PNR codes & station zones?

Visit our Indian Railways Blog for structured guides on 5-digit train numbers, PNR confirmation codes, Tatkal quotas, LHB coach classes, major railway junctions, and refund rules.

Ready to build your railway project?

Generate your free student API key in under a minute and explore all enabled endpoints in the interactive dashboard.