Fare Lookup

fareLookup(trainNo, fromStnCode, toStnCode, date, travelClass, quota)

Description

Get the full fare breakdown for a journey — base fare, reservation, superfast, catering, GST, dynamic fare, and total collectible amount.

Parameters

NameInTypeRequiredDescription
trainNoPATHstringYES5-digit train number
fromStnCodePATHstringYESOrigin station code
toStnCodePATHstringYESDestination station code
datePATHstringYESJourney date in DD-MM-YYYY
travelClassPATHstringYES1A · 2A · 3A · 3E · CC · EC · EA · FC · SL · 2S · VS · CH · HS · VC · VA
quotaPATHstringYESGN · TQ · PT · LD · DF · FT · LB · YU · DP · HP · PH · SS

Code Example

javascript
const result = await fareLookup(
  "12904", "NZM", "BDTS",
  "01-09-2026", "3A", "GN"
);

if (result.success) {
  const d = result.data;
  console.log(`${d.trainName} (${d.trainNo})`);
  console.log(`${d.from}${d.to} | ${d.distance} km`);
  console.log(`Base: ₹${d.baseFare}  GST: ₹${d.gst}  Total: ₹${d.totalFare}`);
}

Response Example

JSON response
200JSON