Short-Term Rental Calendar Availability Analyzer avatar

Short-Term Rental Calendar Availability Analyzer

Pricing

$10.00 / 1,000 listing calendar analyses

Go to Apify Store
Short-Term Rental Calendar Availability Analyzer

Short-Term Rental Calendar Availability Analyzer

Analyze customer-authorized ICS, CSV and JSON calendars. Keep blocked, available and unknown nights separate from verified booking occupancy and nightly asking rates.

Pricing

$10.00 / 1,000 listing calendar analyses

Rating

0.0

(0)

Developer

AFK Digital

AFK Digital

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissions

Share

Analyze your authorized ICS, CSV or JSON calendar exports without scraping rental platforms. Report open, blocked and unknown stay nights, and calculate a separate confirmed-booking occupancy ratio only when verified reservation coverage and an explicit inventory denominator are supplied.

Built by AFK Digital. Product code: NEWAPI118.

What this Actor does

  • Reads customer-provided iCalendar/ICS, CSV and JSON files, supplied inline or as explicitly authorized HTTPS download URLs.
  • Keeps available, blocked and unknown nights separate. A blocked calendar night is never assumed to be a reservation.
  • Treats empty ICS nights as unknown by default. Open nights can be inferred only inside an explicit, caller-declared availability contract and coverage window.
  • Deduplicates overlapping calendar and reservation nights.
  • Separates base nightly asking prices from fees, taxes, minimum-stay conditions and realized revenue.
  • Provides optional regional summaries of the supplied sample, with coverage limitations.

No PMS, Airbnb, Vrbo or other platform API integration is included. No login, cookies, platform scraping, proxy rotation or access-control bypass is performed.

Quick start

Run the prefilled synthetic example in Apify Console. Its exact input is examples/demo-input.json. An empty raw input also selects this documented synthetic demo; any nonempty input is validated as customer input and must contain dates and metadata.

The example covers November 1 through November 10, 2026 (10 stay nights; dateTo=2026-11-11 is exclusive):

MetricResultExplanation
Available nights5Declared empty-day contract covers 8 nights, of which 3 are blocked
Blocked nights3One event from Nov 2 to checkout Nov 5
Unknown nights2Outside the declared calendar coverage
Observed nights8Available + blocked; excludes unknown
Blocked share37.5%3 / 8 known nights; this is not occupancy
Confirmed reserved nights2Verified reservation Nov 2 to checkout Nov 4
Confirmed booking occupancy20%2 / 10 explicitly declared period inventory nights
Nightly asking priceUSD 100Base nightly quote; cleaning fee excluded; not revenue

A cancelled calendar event and a cancelled reservation in this example contribute no occupied or blocked nights.

Input reference

FieldRequiredMeaning
calendarFilesOptionalArray of file descriptors, one listing per file
authorizedCalendarUrlsOptionalArray of authorized HTTPS file descriptors
listingMetadataFileYesCSV/JSON file descriptor with one unique row per listing
optionalReservationsFileOptionalCSV/JSON reservation snapshot
optionalRatesFileOptionalCSV/JSON base nightly asking rates
dateFromYesFirst included local stay date, YYYY-MM-DD
dateToYesExclusive end date / checkout date, YYYY-MM-DD
timezoneOptionalIANA timezone; default UTC; per-listing override allowed
asOfDateOptionalSupplied snapshot reference date or offset ISO timestamp; defaults to observation time
maxListingsOptional1-100, default 20; exceeding the limit fails rather than silently truncating

An inline descriptor is { "format": "json", "content": "[{...}]" }; content is a UTF-8 text string, not a local server path. For CSV, provide the CSV text and format: "csv". ICS requires format: "ics".

A download descriptor replaces content with url and adds authorizationConfirmed: true. calendarFiles and authorizedCalendarUrls descriptors also require listingId. The authorization flag is the caller's rights attestation, not a technical verification of a provider contract. Use only exports and endpoints you are entitled to process. No external provider's commercial data rights are implied.

Example ICS descriptor:

{
"listingId": "apt-001",
"format": "ics",
"content": "BEGIN:VCALENDAR\r\nVERSION:2.0\r\nEND:VCALENDAR\r\n",
"emptyMeansAvailable": false
}

To interpret empty days as available, set emptyMeansAvailable: true, provide availabilityContract (8-500 characters describing the actual source contract), and declare coverageStart and exclusive coverageEnd. This never establishes availability outside that window. Supply no guest names, contact details or access tokens in listing IDs or region labels.

Listing metadata

Each row requires listingId: 1-80 letters/digits/dots/underscores/hyphens, starting with a letter or digit. Optional region is a geographic label and timezone is an IANA zone.

To calculate occupancy, all of these must be present for the listing:

  • reservationsVerified: true (CSV also accepts the literal true). This attests to a verified reservation snapshot, independently of calendar blocking.
  • reservationCoverageStart and exclusive reservationCoverageEnd covering the complete analysis period.
  • occupancyDenominator: "period_nights" to explicitly declare every analysis night as inventory; or "supplied_inventory_nights" with an inventoryDates JSON date array. CSV may encode that array as a JSON string.
  • optionalReservationsFile, including an empty array if a complete verified snapshot has no reservations.

Inventory is never inferred from blocked calendars. A confirmed reservation outside declared inventory fails validation. Empty inventory produces a null occupancy rate, not a division by zero.

Calendar CSV/JSON rows

Use date,status for one-night entries, or start,end,status for ranges. End dates are exclusive. Allowed states: available, blocked, unknown. cancelled/canceled rows are ignored. Optional row listingId must match the file descriptor. Missing dates remain unknown unless an explicit empty-day contract applies. Overlapping available/blocked declarations are reported; blocked takes conservative precedence. Within the same contracted feed, ordinary events override empty-day defaults and do not count as conflicts.

Reservation rows

listingId, checkIn, checkOut, status are required. Optional reservationId and updatedAt select the latest snapshot revision. IDs and guest details are never exported. Use stable reservation IDs if sending revisions; otherwise rows are independently considered and nights are still deduplicated.

Counted statuses: confirmed, checked_in, checked_out. Ignored: cancelled, canceled, pending, declined, no_show. Unsupported statuses fail validation. For identical IDs, latest updatedAt wins; contradictory equal-time revisions fail. An update after asOfDate is rejected because the Actor cannot reconstruct the prior status.

Date-only values are listing-local dates. ISO datetimes with offsets are converted to the listing timezone before deriving stay dates. Floating local datetimes use the listing timezone, but ambiguous/nonexistent DST wall times are rejected. Checkout day contributes no night. DST does not change the number of calendar stay nights. A reservation must span at least one local night.

Occupancy rate = distinct verified confirmed reservation nights / explicitly declared inventory nights. This is a confirmed booking-night ratio, which may include future bookings. It does not prove physical guest presence, realized stays or realized revenue. For a realized-stay analysis, provide a verified completed-stay dataset and a past analysis period with an appropriate inventory denominator. The Actor never relabels ordinary calendar blocks as actual occupancy.

ICS semantics and scope

  • All-day DTSTART is included; DTEND is exclusive. A date-only event without an end/duration lasts one day.
  • Timed events use local arrival-date to departure-date lodging semantics. Same-local-day timed events contain zero stay nights. Use explicit daily CSV/JSON states for partial-day operating restrictions.
  • Cancelled and transparent events do not block nights. METHOD:CANCEL is a cancellation message, not a complete availability snapshot.
  • Revisions are selected by UID + recurrence ID, highest SEQUENCE then LAST-MODIFIED/DTSTAMP. Tied contradictory revisions fail.
  • Daily, weekly, monthly and yearly recurrences, exclusion dates and recurrence exceptions are expanded with recurring-ical-events. Subdaily recurrences/BYHOUR/BYMINUTE/BYSECOND are rejected.
  • TZIDs must be recognized IANA zones. Custom timezone names are unsupported. Floating times use listing timezone. A malformed calendar fails the run instead of silently publishing misleading open nights.
  • ICS STATUS=CONFIRMED describes the calendar event, not a verified lodging reservation; it remains a block only.

Nightly rates

Rows contain listingId, date or start,end, nightlyRate, and uppercase three-letter currency. kind defaults to nightly; other kinds, including cleaning fee/tax/minimum-stay rows, are excluded. Supply correctly classified base nightly amounts; the Actor cannot infer a bundled quote's components. Currency labels are preserved; currencies are not converted or averaged together. The same quote repeated for one night is counted once. Conflicting quotes for one currency/night are excluded and counted in conflictingQuoteNights.

Each currency summary includes quoted nights, minimum, maximum, mean and median. Missing rates are omitted, not imputed as zero. Asking prices are never reported as income, revenue, ADR or RevPAR.

Output

One Dataset row per successfully analyzed listing. Percentages are numeric fractions (0.2 means 20%).

FieldDefinition
listingId, regionCustomer-safe listing identity and sample geography
periodStart, periodEnd, timezone, periodDaysLocal inclusive start and exclusive end, zone and nights
observedDaysAvailable + blocked nights; excludes unknown
availableDays, blockedDays, unknownDaysDisjoint night counts summing to periodDays
blockedShare, blockedShareBasisblockedDays / observedDays; null when no known days
calendarConflictDaysNights with competing explicit availability/block declarations
confirmedReservedNightsDistinct verified reservation nights; null without verified complete snapshot
occupancyRate, occupancyBasis, occupancyDenominatorNightsExplicit booking-night ratio and denominator; null if unavailable/zero denominator
overlappingReservationNightsDuplicate night occurrences removed from reservation counting
nightlyRateSummary, currencyPer-currency asking-rate summaries; top-level currency null for absent/mixed currencies
observedAt, asOfDateProcessing observation time and caller's supplied snapshot reference
limitationsEvidence/coverage, contract, occupancy and pricing caveats

SUMMARY in the default Key-Value Store contains sample regional summaries, known/unknown coverage, processed listing counts and billing-unit definition. Regional blocked share is weighted by known listing-nights; no occupancy extrapolation or market ranking is produced. Region summaries are omitted when the payment budget truncates listing output.

observedAt is processing time, not a provider freshness guarantee. asOfDate labels the supplied snapshot; historical calendar states cannot be reconstructed from a current feed. Supply genuinely historical files for historical analysis.

Security, privacy and operating limits

  • HTTPS port 443 only. Userinfo, fragments, control characters, local/private/reserved/mapped addresses and mixed public/private DNS answers are rejected.
  • DNS results are validated and the connection is pinned to a validated public IP while retaining TLS certificate/hostname validation. Redirects and compressed responses are rejected. No cookies, caller headers or credentials are forwarded.
  • Maximum 1 MiB per file and 10 MiB total input/downloaded file content; 200 calendar files; 100 listings; 1-366 nights; 50,000 combined calendar-table/reservation/rate rows; 10,000 raw and 20,000 expanded ICS events per file.
  • Downloads have a shared 45-second budget and 5-second socket timeouts. Analysis runs in an isolated subprocess with 150-second wall limit, 60 CPU seconds and 384 MiB address-space limit. Default Apify run: 512 MiB, timeout 240 seconds.
  • Outputs and error messages omit source URLs/query tokens, UIDs, event descriptions, guest names, emails and reservation IDs. Unknown source fields are ignored. Use anonymous listing IDs and geographic labels; deliberately putting personal data in these output fields cannot be automatically detected reliably.
  • Your original Actor input and files may remain in your private Apify run storage according to platform retention/access settings. Do not publish/share those inputs. Export only anonymous data, restrict run access and delete inputs or rotate sensitive feed URLs as needed.
  • Failures are reported with sanitized messages. Invalid inputs produce no listing charge. Apify platform infrastructure may still have a small execution cost during failed/private runs.

Pricing unit

Pay-Per-Event event: listing-analysis, one emitted listing analysis of at most 366 local nights. Price: USD 0.01 per listing analysis (USD 10 per 1,000). Calendar, verified reservation and rate calculations are included in that unit. There is no per-day or regional-summary event and no paid PMS/data provider dependency.

Use Apify's maximum total charge setting to bound paid runs. The minimum run budget is USD 0.01, covering one listing analysis. There is no additional startup event or separate platform-usage surcharge. The Actor uses the SDK's combined Dataset push-and-charge operation and stops on its charge-limit signal.

Integrations

  • Import examples/n8n-workflow.json; configure an HTTP Header Auth credential with header Authorization: Bearer YOUR_APIFY_TOKEN. Replace synthetic input with authorized records. The example calls the synchronous dataset endpoint and returns listing rows.
  • Follow examples/MAKE.md and examples/make-http-request.json for a Make HTTP-module configuration. The JSON is a request configuration example, not a Make scenario blueprint.
  • Read SUMMARY separately from the run's default Key-Value Store for regional sample coverage.

The synchronous endpoint waits for completion; use asynchronous run creation plus polling/webhooks for production pipelines with shorter client timeouts. Do not place API tokens in URLs or exported workflow files.

Development and verification

Python 3.13; dependencies locked in requirements.lock. Run .venv/bin/python -m unittest discover -s tests -v on a development installation. Dockerfile, Actor input/output schemas and Dataset view are included. Evidence under the product's evidence/ directory records actual build/run IDs, runtime, cost and validation, independently from publication status.