IRCTC Train Data Scraper
by scrapingshark
Automatically extract real-time IRCTC train data like schedules, seat availability, and fares. Save time on manual checks for travel apps, analysis, or trip planning.
Opens on Apify.com
About IRCTC Train Data Scraper
Need to pull live train data from IRCTC without the manual hassle? I built this scraper because I got tired of checking schedules and availability by hand. It's a straightforward actor that logs into the IRCTC portal and automatically extracts the real-time information you need. You can get train lists between any two stations, check current seat availability across classes, pull up detailed fare breakdowns, and map out complete train routes. I use it to gather data for travel apps and analysis projects, saving hours of manual copying and pasting. It handles the website's structure so you don't have to, delivering clean JSON or CSV output ready for your database, spreadsheet, or application. If you're working on anything from a personal trip planner to a commercial booking service, this tool takes the grunt work out of sourcing accurate, up-to-date Indian railway data.
What does this actor do?
IRCTC Train Data Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
IRCTC Train Data Scraper
An Apify actor that scrapes real-time Indian Railways data from the IRCTC website. It extracts train schedules, seat availability, fare details, and route information for travel planning, data analysis, or integration into ticketing platforms.
Key Features
- Search Trains: Find trains between two stations with schedules and running days.
- Check Seat Availability: Get real-time availability status by class (e.g., SL, 3A) and quota (e.g., GN, TQ).
- Retrieve Fare Details: Fetch a detailed fare breakdown for a specific train, date, class, and quota.
- View Train Routes: Access station data, including names, codes, locations, and addresses.
How to Use
Configure the actor with a JSON input. Most searches require the first four fields. To get fare or detailed availability, you must also provide the trainNumber and ticketClass.
Input Schema
{
"startingStation": "NDLS",
"destinationStation": "MMCT",
"startDate": "2025-07-30",
"quota": "GN",
"trainNumber": "12138",
"ticketClass": "SL"
}
| Field | Type | Description |
|---|---|---|
startingStation |
string | IRCTC station code for journey start (e.g., NDLS). |
destinationStation |
string | IRCTC station code for journey end (e.g., MMCT). |
startDate |
string | Journey date in YYYY-MM-DD format. |
quota |
string | Ticket quota (e.g., GN for General, TQ for Tatkal). |
trainNumber |
string | (Required for fare/availability) The specific train number. |
ticketClass |
string | (Required for fare/availability) Travel class code (e.g., SL, 3A, 2A). |
Input & Output
The actor returns structured JSON data. For a train search, the output includes train numbers, names, timings, distance, duration, available classes, and detailed station info for both origin and destination.
For a fare/availability request, the output includes the availability date, status, waitlist information, and detailed station data.
Example train search output snippet:
{
"trainNumber": "12138",
"trainName": "PUNJAB MAIL",
"fromStnCode": "NDLS",
"toStnCode": "CSMT",
"departureTime": "05:10",
"arrivalTime": "07:35",
"distance": "1544",
"duration": "26:25",
"avlClasses": [ "1A", "2A", "3A", "SL" ]
}
Run the actor on Apify: https://apify.com/your-actor-link?fpr=python_automation
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try IRCTC Train Data Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- scrapingshark
- Pricing
- Paid
- Total Runs
- 164
- Active Users
- 17
Related Actors
Google Maps Reviews Scraper
by compass
Google Maps Scraper
by compass
Tripadvisor Reviews Scraper
by maxcopell
Apartments.com Scraper 🏡
by epctex
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support