IRCTC REST API v1.0.0 SQLite 3 (Built-in) Zero Dependencies OpenAPI 3.0.3

IRCTC Redesign Prototype API Explorer

Full-stack railway prototype REST API with dynamic berth allocation, timetable search, demo 10-digit PNR generation, and native SQLite persistence.

System Status ● OPERATIONAL
Database Engine SQLite 3
Active Train Routes 13 Premier
Runtime Engine Node.js (In-Process)

RESTful API Endpoints

GET /api/health
System health, uptime & DB connection diagnostics
Description

Pings the Node.js server, queries SQLite database tables for record counts, and returns timestamped telemetry.

Response Output
// Click "Execute Request" to test live endpoint
GET /api/trains/search
Dynamic train timetable & class seat availability search
GET /api/trains/:trainNo
Train schedule, route halts, amenities & live GPS telemetry
Path Parameters
Try: 22436 (Vande Bharat), 12002 (Shatabdi), 12952 (Rajdhani), 20801 (Magadh), 82501 (Tejas)
Response Output
// Output will appear here
POST /api/bookings
Transactional ticket reservation & unique 10-digit PNR assignment
JSON Request Payload
Response Output
// Executed booking ticket with PNR will display here
GET /api/pnr/:pnrNo
Live PNR status enquiry, charting details & allocated berths
Path Parameters
Sample PNRs: 2847193852 (CNF), 6491028471 (RAC), 8371940285 (WL)
Response Output
// PNR chart record output