IRCTC Train Data Scraper avatar
IRCTC Train Data Scraper

Pricing

$25.00/month + usage

Go to Apify Store
IRCTC Train Data Scraper

IRCTC Train Data Scraper

Developed by

ScrapingShark

ScrapingShark

Maintained by Community

The IRCTC Train Data Scraper is an actor designed to automate the extraction of real-time train-related data from the Indian Railway Catering and Tourism Corporation (IRCTC) website. It fetches information such as trains between stations, seat availability, fare details, train routes and more.

0.0 (0)

Pricing

$25.00/month + usage

0

5

5

Issues response

1.1 days

Last modified

19 days ago

๐Ÿš„ IRCTC Train Data Scraper (Live Trains, Seat Availability, Fare Details)

Automate real-time Indian Railways data extraction from the IRCTC (Indian Railway Catering and Tourism Corporation) website with this Apify actor.

This actor scrapes train schedules, routes, ticket fare details, seat availability by class and quota, and more. It is ideal for travel aggregators, ticketing platforms, railway data analysis, or personal travel planning.


โœ… What This Actor Does

The IRCTC Scraper fetches a variety of railway-related data from the IRCTC portal based on your input parameters. It supports:

  • ๐Ÿš‰ Search trains between two stations
  • ๐ŸŽซ Check real-time seat availability
  • ๐Ÿ’ฐ Retrieve detailed fare breakdown
  • ๐Ÿ—บ๏ธ View train route and station data
  • ๐Ÿ“… Select travel date and ticket quota
  • ๐Ÿš† Query ticket classes like Sleeper, AC, Tatkal, etc.

๐Ÿ“ฅ Input Schema

The actor accepts a structured JSON input. Here are the supported fields:

{
"startingStation": "NDLS",
"destinationStation": "MMCT",
"startDate": "2025-07-30",
"quota": "GN",
"trainNumber": "12138" # only required for getFareDetails,
"ticketClass": "SL" # only required for getFareDetails
}

๐Ÿ”ง Input Properties

FieldTypeDescription
startingStationstringIRCTC station code where the journey starts (e.g., NDLS)
destinationStationstringIRCTC station code where the journey ends (e.g., MMCT)
startDatestringJourney date in YYYY-MM-DD format
quotastringTicket quota (e.g., GN - General, TQ - Tatkal, SS - Senior Citizen)
trainNumberstring(Optional - Only required for getFareDetails) Train number for fare or availability inquiry
ticketClassstring(Optional - Only required for getFareDetails) Class of travel (SL, 3A, 1A, CC, etc.)

๐Ÿ“ค Sample Output

๐Ÿš„ Trains Between Stations

{
"trainNumber": "12138",
"trainName": "PUNJAB MAIL",
"fromStnCode": "NDLS",
"toStnCode": "CSMT",
"arrivalTime": "07:35",
"departureTime": "05:10",
"distance": "1544",
"duration": "26:25",
"runningMon": "Y",
"runningTue": "Y",
"runningWed": "Y",
"runningThu": "Y",
"runningFri": "Y",
"runningSat": "Y",
"runningSun": "Y",
"avlClasses": [
"1A",
"2A",
"3A",
"SL"
],
"trainType": [
"O"
],
"atasOpted": "false",
"flexiFlag": "false",
"trainOwner": "0",
"trainsiteId": "D",
"fromStnName": "NEW DELHI",
"fromStnUtterances": [],
"fromStnNameHi": "เคจเคˆ เคฆเคฟเคฒเฅเคฒเฅ€",
"fromStnDistrict": "Central",
"fromStnState": "Delhi",
"fromStnTraincount": "244",
"fromStnLatitude": 28.642314,
"fromStnLongitude": 77.22000399999999,
"fromStnAddress": "Pedestrian Opas, Ratan Lal Market, Railway Colony, Paharganj, New Delhi, Delhi 110006",
"fromStnNameGu": "เชจเชˆ เชฆเชฟเชฒเซเชฒเซ€",
"toStnName": "C SHIVAJI MAH T",
"toStnUtterances": [],
"toStnNameHi": "เคธ เคถเคฟเคตเคœเฅ€ เคฎเคน เคค",
"toStnDistrict": "",
"toStnState": "Maharashtra",
"toStnTraincount": "103",
"toStnLatitude": 18.941002233498335,
"toStnLongitude": 72.83463833978938,
"toStnAddress": "Chhatrapati Shivaji Terminus Area, Fort, Mumbai, Maharashtra 400001",
"toStnNameGu": "เชธ เชถเชฟเชตเชœเซ€ เชฎเชน เชค"
}

๐ŸŽซ Get Fare Details

{
"availablityDate": "30-7-2025",
"availablityStatus": "AVAILABLE-0009",
"reasonType": "S",
"availablityType": "1",
"currentBkgFlag": "N",
"wlType": "8224",
"delayFlag": "N",
"delay": "0",
"fromStnName": "MGR CHENNAI CTL",
"fromStnUtterances": [],
"fromStnNameHi": "เคฎเค—เคฐ เคšเฅ‡เคจเฅเคจเฅˆ เค•เคคเฅเคฒ",
"fromStnNameGu": "เชเชฎเชœเซ€เช†เชฐ เชšเซ‡เชจเซเชจเชˆ เช•เช‚เชŸเชฒ",
"fromStnDistrict": "Chennai",
"fromStnState": "Tamil Nadu",
"fromStnTraincount": "179",
"fromStnLatitude": 13.0847613,
"fromStnLongitude": 80.27485630000001,
"fromStnAddress": "General Hospital Rd, Kannappar Thidal, Periyamet, Chennai, Tamil Nadu 600003",
"toStnName": "BENGALURU CANT",
"toStnUtterances": [],
"toStnNameHi": "เคฌเฅ‡เค‚เค—เคฒเฅ‚เคฐเฅ เคšเฅˆเค‚เคŸ",
"toStnDistrict": "Bangalore",
"toStnState": "Karnataka",
"toStnTraincount": "72",
"toStnLatitude": 12.9936735,
"toStnLongitude": 77.59932690000001,
"toStnAddress": "Bengaluru, Karnataka",
"toStnNameGu": "เชฌเซ‡เช‚เช—เชฒเซ‚เชฐเซ เชšเซˆเช‚เชŸ",
"trainName": "KAVERI EXPRESS",
"distance": "358",
"reqEnqParam": "16021#MAS#BNC#MAS#SL",
"quota": "SS",
"enqClass": "SL",
"trainNo": "16021",
"baseFare": "215",
"reservationCharge": "20",
"superfastCharge": "0",
"fuelAmount": "0.0",
"totalConcession": "0",
"tatkalFare": "0",
"serviceTax": "0.0",
"otherCharge": "0",
"cateringCharge": "0",
"dynamicFare": "0",
"totalFare": "235",
"travelInsuranceCharge": "0.0",
"travelInsuranceServiceTax": "0.0",
"insuredPsgnCount": "0",
"nextEnqDate": "2025-08-05T00:00:00.000",
"preEnqDate": "2025-07-28T00:00:00.000",
"timeStamp": "2025-07-28T20:14:09.434",
"otpAuthenticationFlag": "0",
"cateringFlag": "A",
"totalCollectibleAmount": "235.0",
"fromStnCode": "MAS",
"toStnCode": "BNC"
}

๐Ÿ”Ž Use Cases

  • Travel booking platforms showing live train and fare data

  • Custom travel planners

  • Pricing comparison and fare analytics tools

  • Railway data visualizations and dashboards

๐Ÿ“ฌ Contact Us

Need additional features or help to solve your specific scraping problem?
๐Ÿ“ง scrapingshark@gmail.com