Hotel and Flight Price Monitoring With Agoda, Trip.com and Google Flights
Track hotel rates and airfares on a schedule: Agoda and Trip.com hotel prices for your dates, Google Flights fares by route, stored as a dated price history.
The actor referenced in this article. Pay only for results delivered.
Travel prices move every day. A hotel’s rate for the same Saturday can change several times in a week, and the fare for a route can swing as the date gets closer. If you run a hotel and watch your competitors, sell trips, or build a travel product, you need those prices as a dated series you can chart, not as a screenshot from this morning. The booking sites do not export them, and checking a dozen hotels or routes by hand every day is a chore that rarely survives the second week.
Try it live: Agoda Scraper. Pay per result delivered.
Three actors turn that into a scheduled job: the Agoda Scraper and the Trip.com Hotels Scraper for hotel rates by date, and the Google Flights Scraper for fares by route. Each returns one row per hotel or itinerary with the dates it was priced for, so every run can be appended to a history. This guide shows which one to use for which job, real inputs, a Python script that keeps a price history, and the exact cost.
Which actor fits which job
| Agoda Scraper | Trip.com Hotels Scraper | Google Flights Scraper | |
|---|---|---|---|
| One row is | A hotel priced for your stay, or a guest review | A hotel priced for your stay | An itinerary for a route and date |
| Search by | City name, Agoda hotel link or id | City name, Trip.com city id, list or hotel link | IATA airport or city code, or a Google Flights link |
| Dates | checkIn plus nights (1 to 30) | checkIn and checkOut (up to 28 nights) | departureDate, optional returnDate, absolute or relative |
| Price fields | Per night before and after taxes, stay total, crossed out price | Per night, total with taxes and fees, struck through price | Total for all passengers, Google’s price level and typical range |
| Extras | Room types, guest reviews from Agoda and Booking.com | Hotel pages with facilities and the 10 latest reviews | Flight numbers, layovers, aircraft, CO2, booking link |
| Free plan | $3.60 per 1,000 hotels, $5.40 per 1,000 reviews | $2.70 per 1,000 hotels | $0.90 per 1,000 itineraries |
| Gold and above | $1.35 per 1,000 hotels, $2.70 per 1,000 reviews | $1.89 per 1,000 hotels | $0.63 per 1,000 itineraries |
| Start fee | $0.002 per run | $0.003 per run | $0.001 per run |
For other hotel sources, the Booking.com Hotels Scraper covers Booking.com prices and the Google Hotels Prices Scraper compares the same hotel across booking sites. For short term rentals, see Airbnb data for dynamic pricing.
Fixed dates or relative dates
Before you schedule anything, decide what the history should answer.
- Fixed dates follow one stay or one flight as its price moves. Set
checkInto2026-12-20on Agoda, ordepartureDateto2027-01-15on Google Flights, and run daily. Each day adds one point to the curve for that stay. This is the revenue manager’s view and the traveller’s “when should I book” view. - Relative dates follow the price a fixed distance ahead. Leave Agoda’s
checkInempty and it searches 30 days from today; leave Trip.com’s dates empty and it searches 30 days out for 2 nights; give Google Flights"+30 days". This is the market view: what a hotel or route costs a month out, week by week.
Every Agoda and Trip.com row repeats check_in and nights or check_out, and every Google Flights row carries departure_date and search, so you always know which stay a price belongs to.
The inputs
Agoda: a competitor set with every room type. Hotels given by link or id always come back with their room types and rates.
{
"mode": "hotels",
"hotelUrls": [
"https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html",
"10715"
],
"checkIn": "2026-12-20",
"nights": 1,
"adults": 2,
"rooms": 1,
"currency": "USD"
}
To watch a whole market instead, search a city with filters that cost nothing, because dropped hotels are not charged:
{
"locations": ["Kuala Lumpur"],
"sortBy": "review_score",
"minReviewScore": 8,
"maxHotels": 40,
"includeRoomTypes": true
}
Trip.com: 4 and 5 star hotels in a price band.
{
"locations": ["Paris"],
"checkIn": "2027-01-15",
"checkOut": "2027-01-17",
"starRatings": ["5", "4"],
"minPrice": 150,
"maxPrice": 400,
"currency": "EUR",
"sortBy": "price_low",
"maxItems": 100
}
sortBy: "price_low" makes the actor walk the whole city by price rather than stop at Trip.com’s first screen.
Google Flights: one route over several dates.
{
"routes": [
{ "origin": "BOM", "destination": "DEL", "departureDate": "+7 days" },
{ "origin": "BOM", "destination": "DEL", "departureDate": "+8 days" },
{ "origin": "BOM", "destination": "DEL", "departureDate": "+9 days" }
],
"sortBy": "price",
"maxResults": 20,
"currency": "USD",
"market": "US"
}
Each date is its own search, labelled in search. Up to 500 searches fit in one run, which pays one start fee.
Keep a price history in Python
This script runs an Agoda compset and a Google Flights route, then appends today’s prices to two CSV files. Run it once a day, for example from cron, and the files become your price history.
pip install apify-client
import csv
from datetime import date
from pathlib import Path
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
today = date.today().isoformat()
def append(path, rows):
if not rows:
return
new_file = not Path(path).exists()
with open(path, "a", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
if new_file:
writer.writeheader()
writer.writerows(rows)
# Hotels: one fixed stay, priced every day
run = client.actor("themineworks/agoda-scraper").call(run_input={
"hotelUrls": ["https://www.agoda.com/the-peninsula-bangkok/hotel/bangkok-th.html"],
"checkIn": "2026-12-20",
"nights": 1,
"currency": "USD",
})
hotels = []
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
if "_type" in item:
continue # summary, info and error rows are free
hotels.append({
"seen_on": today,
"hotel_id": item["hotel_id"],
"name": item["name"],
"check_in": item["check_in"],
"nights": item["nights"],
"currency": item["currency"],
"per_night_with_taxes": item.get("price_per_night_with_taxes"),
"total_with_taxes": item.get("price_total_with_taxes"),
"free_cancellation": item.get("free_cancellation"),
"rooms_left": item.get("rooms_left"),
})
append("agoda_history.csv", hotels)
# Flights: the cheapest fares 30 days ahead
run = client.actor("themineworks/google-flights-scraper").call(run_input={
"origin": "JFK",
"destination": "LAX",
"departureDate": "+30 days",
"sortBy": "price",
"maxResults": 10,
})
fares = []
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
if "_type" in item:
continue
fares.append({
"seen_on": today,
"search": item["search"],
"flight_numbers": " ".join(item["flight_numbers"]),
"departure_time": item["departure_time"],
"airline": item["airline"],
"stops": item["stops"],
"price": item.get("price"),
"currency": item["currency"],
"price_level": item.get("price_level", ""),
})
append("flights_history.csv", fares)
print(f"{len(hotels)} hotel prices and {len(fares)} fares saved for {today}")
To spot a change, compare rows with the same keys across days: hotel_id, check_in and price_per_night_with_taxes on Agoda, and price for the same flight_numbers and departure_time on Google Flights. On Trip.com, use hotel_id, check_in, check_out and total_price. Google also helps here: price_level reads low, typical or high against what the route usually costs, and the free summary row carries price_history, the lowest fare Google saw on each of about the last 60 days.
What it costs
All three charge per row that reaches your dataset, plus a small start fee per run. On all three, the start fee is charged only once rows are found or about to be delivered, so a run that returns nothing is free.
- Agoda Scraper: hotels cost $0.0036 each on the Free plan, $0.00285 on Bronze, $0.0021 on Silver and $0.00135 on Gold and above. Reviews cost $0.0054, $0.0045, $0.0036 and $0.0027 on the same plans. The start fee is $0.002. Room types cost nothing extra.
- Trip.com Hotels Scraper: $0.0027 per hotel on the Free plan, $0.00243 on Bronze, $0.00216 on Silver and $0.00189 on Gold and above, with a $0.003 start fee. Hotel pages cost nothing extra.
- Google Flights Scraper: $0.0009 per itinerary on the Free plan, $0.00081 on Bronze, $0.00072 on Silver and $0.00063 on Gold and above, with a $0.001 start fee.
Worked examples: the 20 hotel Agoda compset on Gold is 20 times $0.00135, or $0.027, plus $0.002, about $0.029 a day. Three Google Flights dates at 20 itineraries each is 60 rows: $0.054 on the Free plan plus $0.001. A Trip.com export of 300 Bangkok hotels is $0.81 on the Free plan plus $0.003. Summary, info and error rows and rows past your limits are never charged on any of the three. Agoda and Trip.com also deliver and charge a hotel found twice in one run only once, and every actor stops below your “Max cost per run”.
Limits worth knowing
- Logged out prices. Agoda prices depend on country, device, login and time. The actor searches as a logged out US desktop visitor; member, app only and coupon prices are not included.
- Agoda room types are in US dollars. City search prices follow your
currency, but room types come from hotel page data that answers in US dollars, so each carries its owncurrencyfield. Hotels given by link or id are priced in US dollars too. - Trip.com hotel links have no live price. A pasted hotel link returns page details only; live prices come from a city search, so add the city. A hotel with nothing bookable for your dates has no price.
- Trip.com reviews stop at 10. Hotel pages give the 10 latest reviews. For deeper review history, Agoda’s reviews mode reaches roughly the last three years, or use the TripAdvisor Reviews Scraper.
- Google Flights round trips list outbound flights. Each round trip row carries the total for both directions; the return flight is chosen on Google Flights through
booking_url. - Codes, not city names. Google Flights takes IATA airport or city codes such as
JFKorNYC. “London” is not accepted and gets a free error row, as do dates beyond about 330 days. - Refused searches. Google now and then refuses a request. The actor retries on other IPs before writing a free error row, and three refused searches in a row end the run.
Related
Explore the scraper referenced in this article: inputs, outputs, and pricing, then run it on Apify.
Frequently asked questions
Should I use fixed dates or relative dates? +
Fixed dates track one stay or one flight as its price moves, which is what a revenue manager or a traveller waiting to book wants. Relative dates, such as an empty Agoda checkIn or "+30 days" on Google Flights, track the price a fixed distance ahead, which suits market reports.
Are Agoda and Trip.com prices with taxes? +
Agoda gives both: price_per_night and price_per_night_with_taxes, with taxes_and_fees_per_night and the stay total. On Trip.com, total_price is the whole stay from Trip.com's price breakdown and price_note says whether taxes and fees are in it. Compare Trip.com stays on total_price.
Can I see member or app only prices? +
No. The Agoda actor searches as a logged out desktop visitor from the United States, so member, app only and coupon prices are not included. None of the three actors log in.
What does a daily compset of 20 Agoda hotels cost? +
On Gold and above, 20 hotel rows cost $0.027 and the start fee is $0.002, so about $0.029 a day. On the Free plan it is $0.072 plus $0.002. Room types are included at no extra cost.
Track Prices and Store Stock at Target, Best Buy, Costco and Lowe's
Pull price, sale price and store stock for the same products from Target, Best Buy, Costco and Lowe's on a schedule, into one daily CSV with one row per product.
Track Trendyol Prices, Buy Box Sellers and Reviews
Export Trendyol products by keyword, category, brand, store or product link with the lira price, discount, buy box seller and score, other sellers, stock and optional reviews, then spot undercutting sellers with a short Python script.
Autotrader UK and Canada Data: Used Car Prices, Mileage and Dealer Contacts
Pull Autotrader UK and AutoTrader.ca listings into one sheet with price, mileage, specs and dealer phone, for pricing work, stock checks and dealer lead lists.
Kickstarter Data for Product Research: Funding, Backers, Deadlines and Creators
Turn Kickstarter into a table you can sort: goal, pledged, backers, state, launch date, deadline and creator for every project in a niche, live or ended.