checkPNRStatus()Current passenger and booking status from a 10-digit PNR number.
Powering modern railway applications with live train tracking, PNR status, seat availability, and station intelligence through one clean developer API.
import { configure, checkPNRStatus, trackTrain }
from "irctc-connect"
// one-time setup
configure(process.env.IRCTC_API_KEY)
const pnr = await checkPNRStatus("1234567890")What it includes
Each method maps to a clear railway data use case. Your team can understand the integration at a glance.
checkPNRStatus()Current passenger and booking status from a 10-digit PNR number.
getTrainInfo()Route, stops, schedule, and running-day information.
trackTrain()Live movement, station timeline, and delay context.
searchTrainBetweenStations()Find trains between two stations with useful timetable data.
getAvailability()Availability and fare details by class, quota, and date.
liveAtStation()Arrivals, departures, and trains passing through a station.
How developers use it
Works in API routes, background jobs, support tools, or mobile app backends. One key, one import, six methods.
import { configure,
checkPNRStatus, trackTrain }
from "irctc-connect"
// one-time setup
configure(process.env.IRCTC_API_KEY)
export async function getJourney(pnr: string) {
const status = await
checkPNRStatus(pnr)
const live = await
trackTrain("12342", "06-12-2025")
return { status, live }
}Ready to build?
Create an account, get your key, and start calling railway endpoints from your own backend in minutes.
Get API keyView on GitHub