Travel data scraping
Travel data scraping collects prices, availability and reviews from airlines, online travel agencies, hotel chains, car hire brokers and tour marketplaces. Zenrows runs the search a traveller would, from the country you choose, through protected travel sites, and returns rendered pages, Markdown or JSON to store and compare per provider.
Updated
{
"source": "car-hire-broker.example.com",
"searched_at": "2026-10-17T06:15:00Z",
"point_of_sale": "gb",
"pickup": { "location": "Malaga Airport (AGP)", "datetime": "2026-11-14T10:00" },
"dropoff": { "location": "Malaga Airport (AGP)", "datetime": "2026-11-21T10:00" },
"vehicle": {
"class": "Compact",
"example_model": "VW Golf or similar",
"transmission": "manual",
"seats": 5
},
"supplier": "Example Car Rental",
"supplier_rating": 8.1,
"total_price": 214.6,
"currency": "GBP",
"price_per_day": 30.66,
"mileage_limit_km": null,
"fuel_policy": "full_to_full",
"free_cancellation": true,
"deposit": 950.0
}
What travel data teams collect
A travel price exists only for a search: route or city, dates, party size, market.
Set that grid first.
| Job | Data you collect | Typical sources |
|---|---|---|
| Airfare monitoring | Fares by route and date, fare class, stops, baggage, award seats | Airline sites, |
| Hotel rate shopping | Nightly rate by room and date, taxes, rooms left, channel parity | |
| Short-term rental analytics | Nightly rate, cleaning fee, calendar, reviews | |
| Car hire pricing | Daily rate by class, supplier, deposit, fuel and cancellation terms | Rentalcars.com, broker and supplier sites |
| Tours and activities catalog | Title, price per person, slots, duration, inclusions | Klook, GetYourGuide, Viator, tour operators |
| Reviews and reputation | Score, text, trip date, management reply | |
| Destination content | Guides, opening hours, events | Lonely Planet, Time Out, Condé Nast Traveler, tourism boards |
Why travel sites are hard to scrape
Prices appear only after a search, and airlines and large OTAs guard it with bot management.
First requests work, then days of access denied
Zenrows' stealth gets through Akamai, DataDome and similar, with retries
No price until origin, destination and dates are submitted
Fetch runs page actions (fill, click) first; Browser runs longer flows
Price and currency change with visitor country
Geotargeting searches from the market you price
A page shell; fares arrive by background JSON call
Fetch can capture the XHR calls and return their JSON
Routes x dates x party sizes: hundreds of thousands of searches
Batch runs the grid as one job, results by webhook
Stricter protection around holidays, when prices move most
Adaptive Stealth Mode escalates only when a page needs it; your grid stays the same
How to scrape travel data with Zenrows
- Define the search grid: providers, routes or cities, date pairs, markets; each cell is one URL or scripted search.
- Find the product pages: on tour and hotel catalogs, Crawl collects detail URLs matching
/activity/or/hotel/. - Fetch each search in Adaptive Stealth Mode, geotargeted to the market; name fields with CSS selectors or let Extract return JSON.
- Run it on a schedule: Batch daily or hourly, each price stored with the time seen.
# pip install requests
import json
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": SEARCH_URL, # a car hire or tour search URL with dates in the query
"mode": "auto",
"proxy_country": "gb",
"css_extractor": json.dumps({
"supplier": ".result-card .supplier-name",
"vehicle": ".result-card .vehicle-class",
"price": ".result-card .total-price",
}),
}
response = requests.get("https://api.zenrows.com/v1/", params=params)
print(response.json())# Collect every activity page on a tour operator's site as Markdown
curl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "TOUR_OPERATOR_URL",
"max_items": 1000,
"include_patterns": ["/activity/"],
"exclude_patterns": ["/blog/", "/careers/"],
"output_format": "markdown"
}'
# Then read the pages with GET https://api.zenrows.com/v1/crawls/{crawl_id}npx -y @zenrows/cli init
zenrows fetch TOUR_SEARCH_URL --proxy-country gb --output markdown
# jobs.jsonl holds one {"url": "..."} per search, one line per route and date
zenrows batch create jobs.jsonl --wait
zenrows batch results JOB_ID --out results.jsonl# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to search GetYourGuide for food tours in Lisbon on 14 November for two adults, from a UK visitor's point of view, and return each tour's title, price per person in GBP, duration, start times and rating as JSON.Which Zenrows product fits
- Price one search or one product page FetchRenders from your market; HTML, Markdown or named fields
- Get rates and inclusions without writing selectors ExtractJSON that adapts when an OTA changes layout
- Map a tour operator or hotel chain catalog CrawlFollows one domain's links, keeps only the detail URLs you want
- Run the route and date grid daily BatchOne job per grid, results by webhook or download
- Search airlines behind clicks or logins BrowserA real browser driven by Playwright or Puppeteer
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Price accuracy | Matches what a traveller sees for that search and market | Weekly manual re-run of a sample |
| Grid coverage | Every cell returns a price or an explicit "sold out" | Empty cells per provider per run |
| Freshness | Near-term dates refreshed more often than far-out ones | Price age against travel date |
| Point-of-sale correctness | Each record carries its currency and country | Flag currency mismatching the market |
| Run time | The grid finishes well before its prices go stale | Batch start and finish time against grid size |
Travel data scraping FAQ
-
Automated collection of prices, availability, schedules and reviews from airlines, OTAs, hotel chains, car hire brokers and tour marketplaces, running a traveller's searches to compare providers, track prices or feed a pricing model.
-
Anything shown after a search: fares, schedules, room rates, taxes and fees, seats or rooms left, car hire quotes, tour slots, cancellation terms, reviews. Each depends on dates and market; store those with the price.
-
Collecting public prices is common practice in travel. Check each site's terms, skip login pages you have no right to, and do not republish reviews or photos. Ask your legal team about your case.
-
Partner APIs from airlines, GDSs and OTAs give inventory on their terms, often with contracts and coverage limits. Zenrows returns what each site shows the public, including providers with no API and the exact price per market. Many teams book via API and scrape to check the public price matches.
-
They price by point of sale: country, currency, sometimes device. Geotarget each search to its market and record country and currency with every price.
-
Check the URL after a manual search: many OTAs, brokers and tour sites put origin, destination and dates in the query string, so each cell is a plain URL. Otherwise Fetch runs page actions (fill, click, wait), or Browser handles longer flows like seat maps.
-
By travel date: the next two weeks change several times a day, six months out slowly. Batch hourly or daily for near-term dates, weekly for the rest.