Booking.com Calendar Scraper (Spain, Availability and Prices) avatar

Booking.com Calendar Scraper (Spain, Availability and Prices)

Pricing

from $5.00 / 1,000 result delivereds

Go to Apify Store
Booking.com Calendar Scraper (Spain, Availability and Prices)

Booking.com Calendar Scraper (Spain, Availability and Prices)

Calendar snapshot of the Booking.com listings of a Spanish municipality: availability and approximate nightly price for up to 12 months, one row per listing. Public pages only, no login. Whoever runs it is responsible for complying with the Booking.com terms of use.

Pricing

from $5.00 / 1,000 result delivereds

Rating

0.0

(0)

Developer

Steadfetch

Steadfetch

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Features

Limited permissions

Share

Calendar snapshot of the Booking.com listings of one Spanish municipality: for each listing, whether every night of the next months can be booked and the approximate price per night that Booking shows for it. One row per listing, in the calendar snapshot format that rental-calendar-monitor compares. Development steps and the publishing checklist live in PUBLISHING.md.

Whoever runs this Actor is responsible for complying with the Booking.com terms of use. It reads public pages only, without login or account cookies.

What it does

  • Takes the five-digit INE code of a Spanish municipality ("03047" is Calp) and looks it up in the bundled municipality table (INE names, IGN boxes).
  • Finds the municipality's destination on Booking.com with Booking's own search-box suggestions for the municipality name (for a bilingual municipality, each official name in turn): among the suggestions that are a Spanish city inside the municipality box, it takes the one nearest the municipality's reference point, and only if it is within a quarter of the box diagonal (at least 5 km); never a region, district, airport or hotel. If no suggestion fits, the run ends with an error that lists the suggestions seen and delivers nothing.
  • Walks Booking's result list for that destination in its own order, 25 listings per request.
  • Keeps only the listings that belong to the municipality: their coordinates must fall inside the municipality box, and they must carry the Booking city id that dominates inside that box. A neighbouring town that Booking mixes into the results is never delivered. If the destination's listings lie elsewhere, the run ends with an error and delivers nothing; if Booking has no listing there at all, it delivers zero rows with a warning.
  • For each listing, reads the availability calendar Booking shows in its date picker, 61 days per request, up to 12 months (6 requests per listing), and delivers one row with one entry per night from the run day (UTC): available, price (approximate price per night in EUR, rounded to the euro by Booking) and minNights.
  • Nights without a price (Booking shows 0 for nights that are not available) get price: null, never 0. A missing part of the calendar is left out, never invented.
  • Waits at least 2.1 seconds between any two of its own requests. No input changes that pace.
  • Saves the record CONTINUATION in the run's key-value store: { "nextOffset": <n or null>, "totalSeen": <n> }. Run again with offset: nextOffset to continue; null means Booking's list has no more listings.

Headless browser

The Actor uses one headless Chromium tab (Playwright). It loads Booking's front page, asks the search-box suggestions once per run (one request per official name tried), loads the results page of the destination, and reads the list and the calendars from that page: three kinds of GraphQL queries to the same Booking endpoint. It never opens the page of each listing. A browser takes more compute than a plain HTTP Actor; that cost is part of the price below. How each field is read is in docs/data-map.md.

How to use

$apify call steadfetch/booking-calendar-scraper --input='{"municipalityCode":"03047","maxListings":25}'

Then read the rows from the run's default dataset and the CONTINUATION record from its key-value store.

Minimum input

Three listings of Calp, 12 months each. It is the declared exampleRunInput:

{
"municipalityCode": "03047",
"maxListings": 3
}

Input fields

FieldTypeRequiredDefaultDescription
municipalityCodestringYes-Five-digit INE code, as a string ("03047", "29067"). A number, a short or unknown code fails the run before any request, naming the value.
monthsintegerNo12Months of calendar per listing, 1 to 12. 12 gives 365 days.
maxListingsintegerNo25Listings delivered in this run, 1 to 500. 500 is a fixed cap per run.
offsetintegerNo0Places of Booking's result list to skip. Use nextOffset of the previous run's CONTINUATION.
adultsintegerNo2Adults the nightly price is quoted for, one room.
propertyTypestringNoallall, apartments (Booking type 201) or hotels (Booking type 204).

offset, nextOffset and totalSeen count places in Booking's result list for the search, including listings skipped because they are outside the municipality. totalSeen is the number of places passed so far, the skipped offset included.

Output

Example output

One row (calendar shortened to three nights):

{
"url": "https://www.booking.com/hotel/es/apartamento-frente-al-mar-en-calpe-para-4-personas.html",
"title": "Apartamento frente al mar en Calpe para 4 personas",
"scrapedAt": "2026-11-16T10:00:00.000Z",
"source": "booking",
"municipalityCode": "03047",
"municipalityName": "Calp",
"listingId": "7013095",
"propertyType": "apartment",
"capacity": null,
"rating": 8.8,
"reviewCount": 62,
"lat": 38.642,
"lon": 0.055,
"currency": "EUR",
"calendar": [
{ "date": "2026-11-16", "available": false, "price": null, "minNights": 1 },
{ "date": "2026-11-17", "available": true, "price": 89, "minNights": 3 },
{ "date": "2026-11-18", "available": true, "price": 101, "minNights": 1 }
]
}

Output fields

FieldTypeDescription
urlstringPublic Booking.com page of the listing.
titlestring or nullListing name as Booking shows it.
scrapedAtdate-timeWhen this listing's calendar was read (UTC, ends in Z).
sourcestringAlways booking.
municipalityCodestringFive-digit INE code.
municipalityNamestringOfficial INE name.
listingIdstringBooking property ID, stable between runs.
propertyTypestring or nullapartment, hotel, aparthotel, holiday_home, villa, guest_house, bed_and_breakfast, hostel, homestay, country_house, campsite, tented_camp, chalet, or ht_<id> for another Booking type id.
capacitynullAlways null: Booking does not give the number of guests without opening each listing page.
ratingnumber or nullBooking review score (0 to 10); null without reviews.
reviewCountinteger or nullNumber of Booking reviews.
lat, lonnumber or nullRounded to 3 decimals (about 100 m), never the exact address.
currencystringAlways EUR.
calendararrayOne entry per night from the run day, ascending, no repeated dates, at most 365: date, available, price (EUR or null), minNights (or null).

The row is exactly the CalendarSnapshotItem contract of rental-calendar-monitor: two runs of this Actor some days apart are two snapshots it can compare. No host names and no addresses are ever delivered.

Limits

  • The price is Booking's "approximate price" per night for the date picker, for the adults asked and one room. In hotels it is a price per room type, not the price of a specific booking.
  • If the website stops answering with data, the run stops: the rows already delivered stay in the dataset, and CONTINUATION notes where to continue (the first listing not delivered). The same happens when the first three listings tried, or more, all come without any calendar day.
  • A listing with 12 months takes about 13 seconds, so 500 listings take close to 2 hours: give the run a timeout that long. When the run timeout is less than 90 seconds away, the Actor starts no new listing, saves CONTINUATION and ends normally.
  • If the Booking answer changes shape (a missing field path), the run stops with an error that names the query and the path, and delivers no row with empty fields.

Pricing

Pay-per-event with the two synthetic platform events: apify-actor-start at 0.00005 USD per run (Apify-recommended default, includes the first 5 seconds of compute) and apify-default-dataset-item at 5.00 USD per 1,000 results (0.005 USD per result), one result per listing delivered with its calendar. Nothing is charged per request or per check: this Actor does not use the monitor-check event, and there is no Actor.charge() call, so users are never billed twice. Steadfetch keeps result prices between 1 and 10 USD per 1,000 results.

Cost behind the price: the pace (2.1 seconds between requests, 6 calendar requests per listing for 12 months) makes a listing take about 13 seconds of run time. The pre-launch test on Apify, with the same requests at 2,048 MB, measured about 0.0014 USD of platform compute per listing for 12 months. The browser is most of the memory.

Works on the Apify free plan - about 999 results for the $5 monthly credit (5.00 USD minus the 0.00005 USD run-start event, at 0.005 USD per result).

FAQ

Who answers for the Booking.com terms? Whoever runs the Actor. Booking.com's terms of use restrict automated access to its platform; read them before you run it. Steadfetch withdraws the Actor within 48 hours of a complaint from the platform.

Why do some listings of the municipality not appear? The Actor keeps a listing only when its coordinates fall inside the municipality box and it carries the Booking city id that dominates inside the box. Listings that Booking files under another town are left out on purpose, so no row belongs to another municipality.

How do I get every listing of a large municipality? Run it several times, each with the previous run's CONTINUATION.nextOffset as offset, until nextOffset is null.

Why is capacity always null? Booking gives it only on the page of each listing or in a search with dates; this Actor reads neither.

Is there personal data in the output? No host names, no authors, no addresses. Coordinates are rounded to about 100 m.

When am I charged? Once per run start (apify-actor-start) and once per listing saved (apify-default-dataset-item). A run that stops early keeps, and charges, only the listings it delivered.

Support

Report bugs or request features through the Apify Store page (Issues tab) of this Actor, or through the Steadfetch actors repository issues. Include the run ID and the input used.

Maintenance

This Actor is tested daily: the monorepo CI runs npm test (parsing of saved Booking answers, the municipality filter, the calendar merge, resuming and the request pace, all offline) and the shared publish gate on every push, and the daily catalog QA runs the {"municipalityCode":"03047","maxListings":3} input once it is published. Schema changes are announced through repository releases.

Local development runs need the Chromium build of Playwright 1.65.1; another Chromium can be given in the BROWSER_EXECUTABLE_PATH environment variable. The Docker image already has the right one.

Data sources of the municipality table: INE (CC BY 4.0, "Fuente: INE, www.ine.es") and Instituto Geografico Nacional (IGN), BDLJE, CC BY 4.0, via Opendatasoft.