
IRCTC Train Data Scraper
Pricing
$25.00/month + usage

IRCTC Train Data Scraper
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
2
2
Last modified
3 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
Field | Type | Description |
---|---|---|
startingStation | string | IRCTC station code where the journey starts (e.g., NDLS ) |
destinationStation | string | IRCTC station code where the journey ends (e.g., MMCT ) |
startDate | string | Journey date in YYYY-MM-DD format |
quota | string | Ticket quota (e.g., GN - General, TQ - Tatkal, SS - Senior Citizen) |
trainNumber | string | (Optional - Only required for getFareDetails) Train number for fare or availability inquiry |
ticketClass | string | (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