Hotel data scraping
Hotel data scraping collects nightly rates, room types, availability, taxes and review scores from OTAs, metasearch and hotel brand sites. Zenrows prices each hotel for your check-in dates and market, through protected booking sites, and returns rates as JSON for rate shopping, parity checks and revenue management.
Updated
{
"hotel": "Example Harbour Hotel",
"channel": "ota",
"source_url": "https://www.example-ota.com/hotel/example-harbour.html",
"checkin": "2026-11-14",
"checkout": "2026-11-15",
"guests": 2,
"point_of_sale": "us",
"currency": "USD",
"rooms": [
{ "room_type": "Standard Double", "rate_plan": "Non-refundable", "price": 189.0, "taxes_fees": 31.2, "rooms_left": 3 },
{ "room_type": "Standard Double", "rate_plan": "Free cancellation", "price": 214.0, "taxes_fees": 35.3, "rooms_left": 3 },
{ "room_type": "Junior Suite", "rate_plan": "Breakfast included", "price": 302.0, "taxes_fees": 49.8, "rooms_left": 1 }
],
"lowest_price": 189.0,
"review_score": 8.6,
"review_count": 2140,
"brand_site_price": 199.0,
"parity_gap": -10.0,
"scraped_at": "2026-10-17T05:00:00Z"
}
What hotel data scraping covers
A matrix: hotel, check-in, nights, guests, room and rate plan, per channel and market.
Revenue managers, OTAs and travel startups each take a slice.
| Job | Data you collect | Typical sources |
|---|---|---|
| Competitor rate shopping | Lowest rate per competitor for the next 90 to 365 check-in dates | |
| Rate parity monitoring | Your rate per OTA versus your brand site, by room and plan | |
| Metasearch price checks | Which channel is lowest, and its position | |
| Availability and demand signals | Sold-out dates, rooms left, minimum stays | OTA calendars and room tables |
| Hotel content and amenities | Room types, beds, amenities, photo count, policies | OTA property pages, |
| Guest review tracking | Score, count, text, date, management replies |
Why hotel price scraping breaks
No dates, no rate.
Add dates, guests and a market, and the page is built from background calls behind bot protection.
An empty room table or a spinner in the raw HTML
Adaptive Stealth Mode renders when needed and returns once rates load
CAPTCHAs and 403s after a few hundred hotel-dates
Zenrows' stealth gets through CAPTCHA, Akamai and PerimeterX
Prices, taxes and member discounts vary by country
Geotargeting prices from the guest's country, like for like
40 hotels x 365 dates = 14,600 requests per refresh, per channel
Batch runs the matrix as one job, then calls your webhook
Rooms and prices move; your selectors return nothing
Extract returns rooms and rates with no selectors to maintain
How to scrape hotel prices with Zenrows
- Build the rate matrix: channel URLs, check-in dates, nights and guests per hotel, usually as query parameters.
- Fetch each hotel and date with Adaptive Stealth Mode, geotargeted to the guest's country.
- Name the fields (room, plan, price, taxes) with CSS selectors, or extract automatically and normalise later.
- Refresh and compare in Batch on a schedule, checking each channel's lowest rate against your brand site.
# pip install requests
import json
import requests
# A hotel page with dates and guests in the query string, e.g.
# ...?checkin=2026-11-14&checkout=2026-11-15&group_adults=2
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": HOTEL_URL,
"mode": "auto", # Adaptive Stealth Mode
"proxy_country": "us",
"css_extractor": json.dumps({
"room_type": ".room-table .room-name",
"rate_plan": ".room-table .rate-conditions",
"price": ".room-table .price-display",
}),
}
response = requests.get("https://api.zenrows.com/v1/", params=params)
print(response.json())// Price one hotel for the next 90 check-in dates in a single Batch job
const dates = Array.from({ length: 90 }, (_, i) => {
const d = new Date(Date.UTC(2026, 10, 1 + i));
const out = new Date(d.getTime() + 86400000);
return [d.toISOString().slice(0, 10), out.toISOString().slice(0, 10)];
});
const response = await fetch("https://async.api.zenrows.com/v1/jobs", {
method: "POST",
headers: { "X-API-Key": "YOUR_ZENROWS_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
type: "regular",
status: "closed",
zenrows_params: { mode: "auto", proxy_country: "us", extract: "auto" },
tasks: dates.map(([checkin, checkout]) => ({
url: `HOTEL_URL?checkin=${checkin}&checkout=${checkout}&group_adults=2`,
external_id: `hotel-1-${checkin}`,
})),
}),
});
console.log(await response.json());npx -y @zenrows/cli init
# Rooms and rates for one stay, priced from the US, as JSON
zenrows extract "HOTEL_URL?checkin=2026-11-14&checkout=2026-11-15&group_adults=2" --autoparse --proxy-country us
# jobs.jsonl: one {"url": "...", "proxy_country": "us"} per hotel-date
zenrows batch create jobs.jsonl --wait# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
# Then ask:
Use Zenrows to check the price of a Standard Double for 2 adults on 14 November 2026 at these three hotels on Booking.com and on each hotel's own website, from a US visitor. Return a table of hotel, channel, price and taxes, and flag any hotel where Booking.com is cheaper than the brand site.Which Zenrows product fits
- Price one hotel for one stay FetchThe rendered room table from your market, named fields
- Read rooms and rates without maintaining selectors ExtractSurvives OTA layout changes
- Refresh the hotel and date matrix daily BatchThousands of hotel-dates as one job, results by webhook
- Let a revenue analyst ask for rates MCP ServerClaude and Cursor fetch and compare rates through Zenrows
What success looks like
| Measure | What good looks like | How to check it |
|---|---|---|
| Rate accuracy | Stored rates match what a guest sees for the same stay and market | Hand spot-check after each pipeline release |
| Matrix completeness | Every cell has a rate or a sold-out flag | Empty cells per channel, per run |
| Like-for-like parity | Gaps compare the same room, plan and tax treatment | Review gaps over threshold; check room mapping |
| Refresh lead time | The matrix lands before the daily pricing meeting | Job completion against meeting time |
| Retries per run | Few retries, no cell empty after one | Failed tasks per job; cells still empty after retry |
Hotel data scraping FAQ
-
Put check-in, check-out and guests in the URL and send it to Fetch with Adaptive Stealth Mode and geotargeting. Read room, plan and price by CSS selector or automatic extraction; many dates go to Batch.
-
Daily collection of competitors' public rates to set your own. Typically five to fifteen hotels, every check-in date for a few months, on one or two OTAs, lowest rate per date.
-
Price your hotel on each OTA and your brand site for the same stay and market, and compare. A gap means an OTA undercuts your direct rate, often via a wholesaler or member discount; geotargeting several countries reveals market-only gaps.
-
Yes. Adaptive Stealth Mode renders the prices; geotargeting uses the guest's country. It lists each hotel's channels and prices for your dates: a fast first parity check before pricing each OTA.
-
Reviews have their own URLs. Take score and count with each price run, fetch review pages weekly for text, date, traveller type and replies, and key both by hotel.
-
OTA partner APIs cover their own inventory, often need a contract, and may not show the guest's price. Zenrows works across channels: send the URL with dates, get rates or JSON.
-
Daily for the next 30 to 90 days, weekly beyond, several times a day for near-term dates around events or competitor moves. With Batch, faster means resubmitting the job more often.