Cheapest Plane Tickets Scraper
Pricing
Pay per usage
Cheapest Plane Tickets Scraper
Discover cheap flights by comparing multi-city combinations. This price discovery tool finds potential savings through alternative routing (e.g., TPE→HKG→PRG vs direct). Note: Alternative routes show pricing opportunities but may have timing conflicts—verify manually before booking.
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Po-Sheng Chiang
Actor stats
0
Bookmarked
3
Total users
0
Monthly active users
7 days ago
Last modified
Categories
Share
Find the cheapest flights on Trip.com by comparing direct routes and creative multi-city combinations.
🎯 What It Does
Discovers cheap flights using two strategies:
- Direct Routes: TPE → PRG (standard round-trip)
- Alternative Routes: TPE → HKG → PRG (multi-city combinations)
⚠️ Note: This is a price discovery tool. Alternative routes may have timing conflicts—verify manually on Trip.com before booking.
🚀 Quick Start
# Install dependenciesnpm install# Run locallyapify run# Deploy to Apifyapify loginapify push
📥 Input
Required:
mainDepartureCity- Departure airport code (e.g.,TPE)targetCity- Destination airport code (e.g.,PRG)cabinClass-Y(Economy),C(Business),F(First)numberOfPeople- Passengers (1-9)
Optional:
timePeriods- Travel dates (defaults to 30 days from now)alternativeDepartureCities- Intermediate cities (e.g.,["HKG", "ICN"])airlines- Filter by airlinesmaxRequestsPerCrawl- Request limit (default: 1000)
📊 Output
Dataset sorted by price (cheapest first) with:
- Route type (direct/alternative)
- Total price (TWD)
- Departure/destination/intermediate cities
- Travel dates and duration
- Complete flight details
🔍 How It Works
Direct Route (2 steps)
- Search outbound flights (TPE → PRG) - select top 3
- For each outbound, search inbound flights (PRG → TPE)
- Save all combinations
Alternative Route (4 steps)
- Leg 1 Out: TPE → HKG (top 3)
- Leg 1 In: HKG → PRG (best only)
- Leg 2 Out: PRG → HKG (top 3)
- Leg 2 In: HKG → TPE (all combinations)
- Save complete 4-leg journeys
⚠️ Leg 1 searches same-day connections for price reference only—transfer times not validated.
🛠️ Technical Details
- Framework: Crawlee + Playwright
- Data Source: Trip.com Taiwan API (SSE + JSON)
- Storage: Results stored in key-value store, then sorted and saved to dataset
- Concurrency: 3 parallel requests
- Performance: ~40 requests for 2 time periods + 2 intermediate cities