Vacation Rental Sold Nights Scraper (Spain, Price Estimate) avatar

Vacation Rental Sold Nights Scraper (Spain, Price Estimate)

Pricing

from $1.00 / 1,000 comparison row delivereds

Go to Apify Store
Vacation Rental Sold Nights Scraper (Spain, Price Estimate)

Vacation Rental Sold Nights Scraper (Spain, Price Estimate)

Estimates which vacation rental nights were sold and at what price in a Spanish municipality by comparing two calendar snapshot datasets of your own Apify account. Reads no website. One row per changed night and one per listing and month.

Pricing

from $1.00 / 1,000 comparison row delivereds

Rating

0.0

(0)

Developer

Steadfetch

Steadfetch

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Features

Limited permissions

Share

Estimates which vacation rental nights were sold, and at what price, in one Spanish municipality. It reads no website: it compares two calendar snapshot datasets of your own Apify account, taken on different dates from the same platform and municipality, and returns one row per changed night plus a monthly summary per listing. Development steps and the publishing checklist live in PUBLISHING.md.

What it does

No platform publishes its bookings. This Actor deduces them from the calendars: a night that was free in the older snapshot and is no longer free in the newer one is counted as sold, at the last price it was advertised at.

  • Opens the two datasets you name (previousDatasetId, currentDatasetId). Each one is a snapshot: one item per listing with its calendar of the next days, as delivered by a Steadfetch platform Actor. The item format is the calendar snapshot contract in docs/snapshot-contract.md.
  • Validates both snapshots against that contract and stops with a clear error, delivering nothing, when they do not match: different platforms (source) or municipalities (municipalityCode), a snapshot that mixes several of them, or a "previous" snapshot that is not older than the "current" one.
  • Matches listings by platform and listing ID. A listing found in only one snapshot is ignored and counted in the run log.
  • Compares only the nights present in both calendars and not before the day of the current snapshot.
  • Emits a night-change row for every night that was sold (free before, not free now; estimated sold price = previous price), released (not free before, free now) or price-changed (free in both, different price; skipped when the listing changed currency).
  • Marks as doubtful every run of consecutive sold nights at least longBlockNights long (default 14): a long block that appears all at once is often the owner closing the calendar, not a booking. Doubtful nights are kept out of the sold nights and revenue estimates.
  • Emits a listing-month row per listing and month with estimated sold nights, estimated revenue, estimated average sold price, doubtful nights and nights still free.
  • Keeps nothing between runs: the snapshots and the history stay in your Apify account.

Limits

Read these before using the numbers:

  • It is an estimate. A night that stops being free can be a booking or an owner block; this first version does not tell them apart and marks as doubtful the long blocks that appear all at once. Separating them with a statistical model, as AirDNA does, is out of scope.
  • The sale price is the last one advertised before the change. The more spaced out the snapshots, the worse: with daily snapshots the error is small; with monthly snapshots, large.
  • There is history only from the first snapshot you take. The data becomes useful after several weeks of snapshots.
  • It is meant for holiday homes, which are one unit per listing. In a hotel, a date that stops being available means a room type sold out, not a booking; for hotels the Actor gives the evolution of the advertised price, not the sale price.

How to use

  1. Run a Steadfetch platform Actor for one municipality and keep the run's dataset ID: that is a snapshot. Run it again some days later: that is the second snapshot.

  2. Run this Actor with the older dataset ID as previousDatasetId and the newer one as currentDatasetId:

    $apify call steadfetch/rental-calendar-monitor --input='{"previousDatasetId":"<older dataset ID>","currentDatasetId":"<newer dataset ID>"}'
  3. Read the rows from the run's default dataset; the changes and months views show each row type with its own columns.

Minimum input

The smallest input that runs compares the two sample snapshots bundled with the Actor in its demo/ folder (three test listings in Calp, Spain, on 1 and 8 December 2026) and returns 31 rows. It is the declared exampleRunInput; an empty input {} does the same:

{
"demo": true
}

Input fields

FieldTypeRequiredDefaultDescription
demobooleanNo-Compare the bundled sample snapshots. Used only when you give no dataset ID: with both IDs the run compares your datasets and the log says the demo was ignored. false with no dataset ID is an error.
previousDatasetIdstringTo compare your datasets (with currentDatasetId)-ID of the dataset with the OLDER snapshot.
currentDatasetIdstringTo compare your datasets (with previousDatasetId)-ID of the dataset with the NEWER snapshot of the same platform and municipality.
longBlockNightsintegerNo14Runs of consecutive sold nights at least this long are marked doubtful. Minimum 2.

Giving only one of the two dataset IDs is an error that names the missing one. A dataset ID that does not exist, or a dataset that is empty, stops the run with an error that names it.

Output

Example output

Two rows of the demo run (one night change and one listing month):

[
{
"url": "https://www.example.com/rooms/A",
"title": "Test listing A",
"scrapedAt": "2026-12-08T06:00:00.000Z",
"municipalityName": "Calp",
"recordType": "night-change",
"source": "test",
"municipalityCode": "03047",
"listingId": "A",
"date": "2026-12-10",
"change": "sold",
"previousPrice": 120,
"currentPrice": null,
"soldPriceEstimate": 120,
"currency": "EUR",
"doubtful": false,
"previousSnapshotAt": "2026-12-01T06:00:00.000Z",
"currentSnapshotAt": "2026-12-08T06:00:00.000Z"
},
{
"url": "https://www.example.com/rooms/A",
"title": "Test listing A",
"scrapedAt": "2026-12-08T06:00:00.000Z",
"municipalityName": "Calp",
"recordType": "listing-month",
"source": "test",
"municipalityCode": "03047",
"listingId": "A",
"month": "2026-12",
"soldNightsEstimate": 2,
"soldRevenueEstimate": 250,
"averageSoldPriceEstimate": 125,
"doubtfulNights": 0,
"availableNights": 22,
"currency": "EUR"
}
]

Output fields

Every row:

FieldTypeDescription
urlstringListing URL from the current snapshot.
titlestring or nullListing title from the current snapshot.
scrapedAtdate-timeWhen the listing's current snapshot was taken (UTC).
sourcestringPlatform of both snapshots.
municipalityCodestringFive-digit INE municipality code.
municipalityNamestringMunicipality name.
recordTypestringnight-change or listing-month.
listingIdstringListing ID on the platform.
currencystring or nullCurrency of the prices (the previous snapshot's for sold nights and monthly rows).

night-change rows add date, change (sold, released, price-changed), previousPrice, currentPrice, soldPriceEstimate, doubtful, previousSnapshotAt and currentSnapshotAt.

listing-month rows add month, soldNightsEstimate, soldRevenueEstimate (null when a counted sold night had no price), averageSoldPriceEstimate (null when the revenue is unknown or nothing was sold), doubtfulNights and availableNights (nights of the month free in the current snapshot).

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 1.00 USD per 1,000 results, one result per delivered row (changed night or listing month). Nothing is charged per listing compared: 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.

The number of rows grows with the number of listings and with the time between snapshots (more nights change). A comparison with no changed nights still delivers one listing-month row per listing and compared month.

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

FAQ

Does it scrape any website? No. It only reads two datasets of the account that runs it. The platform terms apply to whoever took those snapshots, not to this comparison.

Where do the snapshots come from? From the Steadfetch platform Actors, or from any dataset whose items follow the calendar snapshot contract in docs/snapshot-contract.md.

Does it store my data? No. It keeps nothing between runs; the snapshots and the results stay in your Apify account.

Is there personal data in the output? No. Rows carry the listing ID, URL, title, prices and dates from your snapshots; no host names or addresses.

What if I swap the two datasets? The run fails with an error saying the previous snapshot must be older than the current one, and delivers nothing.

How much memory does a run need? Both snapshots are held in memory while they are compared. For municipalities with thousands of listings, raise the run memory (the Actor allows up to 4 GB).

When am I charged? Once per run start (apify-actor-start) and once per row saved (apify-default-dataset-item). Failed runs deliver no rows and only incur the start event.

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 (the comparison rules on the bundled snapshots, offline) and the shared publish gate on every push, and the daily catalog QA runs the {"demo": true} input once it is published. Schema changes are announced through repository releases.