# Airbnb Calendar, Occupancy & Price Scraper (`nice_dev/airbnb-calendar-occupancy-scraper`) Actor

Airbnb availability calendar (12 months), occupancy rate (overall, by month, 30/60/90 days, adjusted) and real nightly prices, one row per listing. By URL, ID, city, map area or search URL.

- **URL**: https://apify.com/nice_dev/airbnb-calendar-occupancy-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Travel, Real estate, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 listing saved with its calendars

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### 🏠 What is Airbnb Calendar, Occupancy & Price Scraper?

**Airbnb Calendar, Occupancy & Price Scraper** extracts the **12-month availability calendar** of [Airbnb](https://www.airbnb.com) listings, anywhere in the world, and turns it into **occupancy rates** — overall, adjusted for owner blocks, month by month and over the next 30 / 60 / 90 nights and the whole year — with **real prices of dated stays** (price per night, taxes and fees, total) and a **revenue estimate** (ADR, RevPAR), in **one row per listing**. It works as an **Airbnb API alternative** for availability and pricing data: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type a **place** (`Lisbon, Portugal`), draw a **map area**, paste Airbnb **search or listing URLs** or **listing IDs**, click **Start**, and download the results in JSON, CSV or Excel. No login, nothing to set up. Built for short-term rental investors, property managers, revenue managers and market analysts.

### 📋 What data can you extract from Airbnb?

One item per listing, 77 fields:

| Category | What you get |
| --- | --- |
| 🏷️ **Listing** | title, link, Airbnb ID, type of place, position, first photo, rating and number of reviews, bedrooms, beds and bathrooms, Superhost and Guest favorite badges, business or individual host, « New » listing — `New Studio in the iconic 8-bit building`, 4.94, 230 reviews |
| 📅 **Calendar (12 months)** | every night: open or not, check-in and check-out allowed, minimum and maximum stay; the next open night, how far ahead the host takes bookings — `2026-10-19` |
| 📊 **Occupancy** | overall, adjusted (owner blocks and nights not opened yet left out), month by month, next 30 / 60 / 90 nights and every night Airbnb shows from today (up to 12 months) — `15.7 %` over the year, `80 %` over the next 30 nights |
| 💰 **Real prices** (options) | quotes of sample stays or of an exact stay: dates, nights, price per night, cleaning and service fees, taxes, discount, total, instant booking — or the price of every night — `1 night x $134.35`, `$143.31` in all |
| 📈 **Revenue estimate** | average daily rate (ADR), estimated booked nights, estimated revenue, RevPAR — `$7,574` over the year |
| 🔄 **Changes since the last run** | nights newly booked or blocked, nights released, move of the price per night: the booking pace of each listing |
| 🏠 **Listing details** (option) | room type, city, capacity, description, photos, amenities (Wifi, pool, parking), house rules, host name, rating, reviews, years hosting, response rate and time |
| 🗺️ **Market summary** (option) | per search, plus one for the whole run when there are several searches: number of listings, mean, median and quartiles of occupancy, price per night, ADR, RevPAR and revenue, occupancy month by month |

Every field, with an example, is listed in the **Output** section below.

Listings found by a search get their title, type, position, rating, reviews, badges, host type and photo from the search card at no extra cost. The fields of the listing page (description, amenities, rules, host…) are filled when **Listing details** is on (off by default).

### ✅ Why use Airbnb Calendar, Occupancy & Price Scraper?

- 📊 **Occupancy, not just a calendar**: overall, adjusted, by month, over 30 / 60 / 90 nights and over the whole calendar, in the same row as the 12-month calendar — no spreadsheet work.
- 🧾 **One row per listing**: a year of calendar is one row, not 365, and 1 month costs the same as 12.
- 💰 **Real prices**: the price a guest is quoted for a dated stay, taxes and fees included — for sample stays (one per month, or by booking lead time), for your own dates, or for every night.
- 📈 **Revenue estimate included**: ADR, estimated revenue and RevPAR come with the prices, at no extra cost.
- 🗺️ **Whole cities**: places, map areas, search URLs, listing URLs and IDs; Airbnb shows 270 listings per search, and a full search is cut into smaller map areas automatically to reach the others.
- 🔔 **Monitoring built in**: schedule the Actor with **Changes since last run** to follow the booking pace of each listing, or with **Only new listings** to get only the listings never delivered before.
- 🔌 API, scheduling, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Airbnb calendars and occupancy

1. Create a free Apify account.
2. Open **Airbnb Calendar, Occupancy & Price Scraper** and type a **Place** (e.g. `Lisbon, Portugal`).
3. Or paste **Airbnb URLs** (search results or single listings), **listing IDs** or **map areas**.
4. Set **Max listings** (100 by default, 0 = no limit) — the form suggests 20 for a first run — tick the prices you want under **Prices**, then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Airbnb calendars?

This Actor uses **pay per event** pricing: a price per **listing saved with its calendar** (`listing-calendar`: the 12-month calendar, every occupancy figure, the search card data and the revenue estimate — the same price for 1 or 12 months), a price per **sample stay priced** (`price-sample`, **Sample stays to price** or **Exact stay**, off by default: one per stay Airbnb priced), a price per **night priced** (`nightly-price`, **Price every night**, off by default), a fee per listing saved with its **listing page** (`listing-details`, **Listing details**, off by default), a fee per **market summary** row (`market-stats`, **Market summary**, off by default, no extra request), a small fee per run start, and a lower fee for each listing a filter of the Actor drops — `filter-check` when the search card is enough (rating, reviews, bedrooms, host type, title words), `detail-filter-check` when its calendar had to be read (occupancy, open nights, and the unchanged listings **Only changed listings** leaves out). A listing you keep costs its normal price: filtering never costs more than taking everything. Each event is charged when its row is saved to your dataset: a removed or private listing (`error` row), a stay Airbnb does not sell for those dates (`unavailable`) or left without a price (`unpriced`), a listing skipped by **Only new listings** and the changes since the last run cost nothing. With a maximum cost per run, the run stops at the last listing it can pay for in full, prices included. The prices are shown on the **Pricing** tab of this page. Platform usage (compute, proxy) is included in the price.

### ⚙️ Input

A city, its 12-month calendar and one priced stay per month:

```json
{
    "location": "Lisbon, Portugal",
    "maxItems": 100,
    "priceSamples": 12
}
```

Your own listings, 4 sample stays priced for 2 adults, in euros:

```json
{
    "listingIds": ["846093318788581404"],
    "startUrls": [{ "url": "https://www.airbnb.com/rooms/18997896" }],
    "priceSamples": 4,
    "adults": 2,
    "currency": "EUR"
}
```

A whole area, entire homes of 2 bedrooms or more, booked at least 30 % of the time, with a market summary:

```json
{
    "boundingBoxes": ["38.69, -9.23, 38.80, -9.09"],
    "roomTypes": ["entire_home"],
    "minBedrooms": 2,
    "minOccupancyPct": 30,
    "priceSamples": 4,
    "includeMarketStats": true,
    "maxItems": 1000
}
```

A weekly schedule that follows the booking pace over the next 90 nights:

```json
{
    "location": "Porto, Portugal",
    "startDate": "+1",
    "endDate": "+90",
    "trackChanges": true,
    "stateKey": "porto-weekly"
}
```

With no source at all (no place, URL, listing ID or map area), the Actor reads `Lisbon, Portugal`, 20 listings at most.

| Field | Notes |
| --- | --- |
| `location`, `locations` | A city, area or address as typed in Airbnb's search box (`Lisbon, Portugal`, `Miami Beach, FL`, `Bali, Indonesia`); `locations` adds more places, one search each (up to 100 places; 500 searches per run in all, with the map areas and the search URLs). |
| `boundingBoxes` | Map rectangles, one per line: south latitude, west longitude, north latitude, east longitude (`38.70, -9.15, 38.72, -9.13`). The surest way to cover a whole city. |
| `startUrls` | Listing URLs (`https://www.airbnb.com/rooms/18997896`) or search URLs (`https://www.airbnb.com/s/Lisbon--Portugal/homes`, map searches included), on any Airbnb site. A search URL keeps its own filters; those of the input are added to it. Dates in a pasted search link are removed: Airbnb would only list the listings free on those dates. |
| `listingIds` | Listing IDs alone, the digits after `/rooms/` (`846093318788581404`), read in this order before any search. |
| `maxItems`, `maxItemsPerQuery` | Listings to save for the whole run, after filters (`0` = no limit); `maxItemsPerQuery` caps each search so that the first one cannot use up the whole budget. |
| `splitMap` | When a search is full (Airbnb shows 270 listings per search), cut its map area into 4 smaller areas, again and again, to reach the others (on by default). |
| `calendarMonths`, `startDate`, `endDate` | Nights counted: 1 to 12 months (12 by default, same price), or from `startDate` to `endDate` — a date (`YYYY-MM-DD`) or a number of days from today (`+7`, `+90`), handy for scheduled runs. Nights before today are never counted. The whole calendar is always read (booking horizon and 30 / 60 / 90-day figures included): the window only chooses the nights counted, and the stays priced in them. A `startDate` after the last day of the 12th month from the current month is refused. |
| `includeDays` | Add the day-by-day list of nights to each row (on by default; free). Off = monthly and overall figures only, smaller results. |
| `longBlockDays` | For the adjusted occupancy: a run of at least this many closed nights in a row counts as owner use, not bookings (`21` by default; `0` = keep every closed night). |
| `priceSamples`, `priceSampleSpread`, `priceSampleDaysAhead` | Up to 12 stays priced per listing (0 = none, the default), picked `monthly` (the first stay open in each month), `daysAhead` (the first stay open on or after each lead time of `priceSampleDaysAhead`: 14, 30, 60 and 90 days by default) or `next` (the next open stays, one after the other). |
| `nightlyPrices`, `maxNightlyPricesPerListing` | Price every night a stay can start on, written in the day-by-day list and averaged per month (off by default); `maxNightlyPricesPerListing` caps the nights priced per listing (0 = all). |
| `stayNights` | Length of each priced stay (`0` = the listing's minimum stay that night). |
| `checkIn`, `checkOut` | An exact stay priced for every listing (two dates `YYYY-MM-DD`, check-in today or later); a listing booked then gets `status: unavailable`. |
| `adults`, `children`, `infants`, `pets` | Guests used for the prices and the searches (`2` adults by default); with pets, the searches keep only the listings that allow them. |
| `currency` | Currency of every price (`USD` by default, `EUR`, `GBP`, `JPY` and 24 more). |
| `priceMin`, `priceMax` | Airbnb's price filter on the price per night it shows in the search (`0` = none). |
| `roomTypes` | Airbnb's type of place: `entire_home`, `private_room`, `shared_room`, `hotel_room`. |
| `propertyTypes` | Airbnb's property type: `house`, `apartment`, `guesthouse`, `hotel`. |
| `minBedrooms`, `minBeds`, `minBathrooms`, `superhostOnly` | Airbnb's own search filters (`0` = any). |
| `minOccupancyPct`, `maxOccupancyPct`, `minAvailableNights` | Keep only the listings in this occupancy range (`30` = at least 30 %) or with at least this many open nights (`1` = still bookable); judged once the calendar is read. |
| `minRating`, `minReviews`, `maxBedrooms` | Keep only the listings rated at least this much out of 5 (`4.8`), with this many reviews, with at most this many bedrooms (`0` = any); judged on the search card. With **Listing details**, `maxBedrooms` is also judged on the bedroom count of the listing page when the card has none, and so is `minReviews` for a map area that names no place (`boundingBoxes`, or a pasted airbnb.com/s/homes?ne_lat=… link with no place in it), whose cards show the rating without the review count (without **Listing details**, `minReviews` with such a search is refused). |
| `hostTypes` | Keep only the listings of a `business` or an `individual` host (Airbnb shows it mostly in Europe). |
| `includeKeywords`, `excludeKeywords` | Keep only / drop the listings whose title contains one of these words (`sea view`, `hostel`; case and accents ignored). `excludeKeywords` takes WHOLE words: `art` drops "Art deco", not "Smart flat"; several words in one entry (`sea view`) must appear together. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the title (no spaces there). |
| `includeListingDetails` | Read each listing's page for its room type, city, capacity, description, photos, amenities, house rules and host (off by default). |
| `includeMarketStats` | Add one summary row per search, plus one for the whole run when there are several searches (off by default, no extra request). |
| `onlyNew` | Skip the listings a previous run with the same memory key already delivered: not saved, not charged; for listings found by a search, their calendar is not read either. |
| `trackChanges`, `onlyChanges` | Compare each listing with its previous run (nights newly booked or released, price moves); `onlyChanges` saves only the listings that changed and the new ones. |
| `stateKey`, `resetState` | Name of the memory of the monitoring fields (`default`; give each schedule its own, e.g. `lisbon-weekly`); `resetState` forgets it before the run. |
| Advanced | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

A real row (Lisbon, 15/10/2026, 2 sample stays), shortened: one month, one night and one of the two priced stays shown, empty columns left out.

```json
{
    "recordType": "listing",
    "id": "18997896",
    "url": "https://www.airbnb.com/rooms/18997896",
    "title": "New Studio in the iconic 8-bit building",
    "propertyType": "Apartment",
    "latitude": 38.7352,
    "longitude": -9.1435,
    "rating": 4.94,
    "reviewCount": 230,
    "isGuestFavorite": true,
    "isLikelyNewListing": false,
    "badges": ["Guest favorite"],
    "hostType": "individual",
    "imageUrl": "https://a0.muscache.com/im/pictures/ec64a840-fcf4-4bcf-a79e-9e171f05bdea.jpg",
    "canInstantBook": false,
    "searchQuery": "Lisbon, Portugal",
    "searchUrl": "https://www.airbnb.com/s/Lisbon--Portugal/homes?query=Lisbon%2C+Portugal&adults=2&currency=USD&room_types%5B%5D=Entire+home%2Fapt&page=1",
    "currency": "USD",
    "calendarFrom": "2026-10-15",
    "calendarTo": "2027-09-30",
    "calendarMonths": 12,
    "totalDays": 351,
    "availableDays": 296,
    "blockedDays": 55,
    "occupancyPct": 15.7,
    "occupancyAdjustedPct": 15.7,
    "occupancy30d": 80,
    "occupancy60d": 43.3,
    "occupancy90d": 37.8,
    "occupancy365d": 15.7,
    "longBlockedNights": 0,
    "bookingHorizonDays": 350,
    "nextAvailableDate": "2026-10-19",
    "checkinDays": 203,
    "minNightsTypical": 1,
    "minNightsMin": 1,
    "maxNightsTypical": 1125,
    "occupancyByMonth": [
        {
            "month": "2026-11",
            "days": 30,
            "availableDays": 15,
            "blockedDays": 15,
            "occupancyPct": 50,
            "checkinDays": 11,
            "avgNightlyPrice": null
        }
    ],
    "calendar": [
        {
            "date": "2026-10-19",
            "available": true,
            "availableForCheckin": true,
            "availableForCheckout": false,
            "bookable": true,
            "minNights": 1,
            "maxNights": 1125,
            "price": null
        }
    ],
    "priceSamples": [
        {
            "checkIn": "2026-11-16",
            "checkOut": "2026-11-17",
            "daysAhead": 32,
            "nights": 1,
            "nightlyRate": 134.35,
            "totalPrice": 143.31,
            "priceLabel": "1 night x $134.35",
            "cleaningFee": null,
            "serviceFee": null,
            "taxes": 8.96,
            "discount": null,
            "priceBreakdown": [
                { "label": "1 night x $134.35", "amount": 134.35 },
                { "label": "Taxes", "amount": 8.96 }
            ],
            "canInstantBook": false,
            "status": "ok"
        }
    ],
    "avgNightlyPrice": 137.71,
    "minNightlyPrice": 134.35,
    "maxNightlyPrice": 141.07,
    "adr": 137.71,
    "adrSource": "samples",
    "estimatedBookedNights": 55,
    "estimatedRevenue": 7574.05,
    "revPar": 21.58,
    "changes": null,
    "scrapedAt": "2026-10-15T04:49:39.750Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 77 fields

| Fields | What you get |
| --- | --- |
| `recordType`, `error` | `listing` (one per listing), `market-stats` (**Market summary**) or `error` (`not_found`: a removed or private listing, never charged); `market-stats` and `error` rows come after the listings |
| `id`, `url`, `title`, `imageUrl` | `18997896`, `https://www.airbnb.com/rooms/18997896`, `New Studio in the iconic 8-bit building`, first photo |
| `propertyType`, `roomType`, `city` | `Apartment` (search card, or the listing page's type with **Listing details**); room type and city with **Listing details** |
| `latitude`, `longitude` | `38.7352`, `-9.1435` (approximate position given by Airbnb) |
| `rating`, `reviewCount`, `isLikelyNewListing` | `4.94`, `230`; `true` when the card says « New » (its closed nights say little about bookings); the search card of a map area gives the rating without the count, and a « New » card gives neither: **Listing details** fills them from the listing page |
| `bedrooms`, `beds`, `bathrooms`, `personCapacity`, `subtitle` | from the search card (not shown on European cards) or **Listing details**; capacity with **Listing details** |
| `isSuperhost`, `isGuestFavorite`, `badges`, `hostType` | `true` when the card shows the badge (`isSuperhost`: `true` / `false` from the host card with **Listing details**), `["Guest favorite"]`, `business` / `individual` (mostly European listings) |
| `hostId`, `hostName`, `hostYearsHosting`, `hostRating`, `hostReviewCount`, `hostResponseRate`, `hostResponseTime` | **Listing details**: host's Airbnb ID, first name or business name, years hosting, rating and reviews over all their listings, response rate and time |
| `images`, `description`, `amenities`, `amenitiesCount`, `hasWifi`, `hasPool`, `hasParking`, `houseRules` | **Listing details**: photos, description, amenities and their count, Wifi / pool / parking, house rules |
| `canInstantBook` | `false`: booking without the host's approval (read with a priced stay) |
| `searchQuery`, `searchUrl` | the place, map area or search URL that found the listing; null for a listing given by URL or ID |
| `currency` | `USD`: currency of every price of the row |
| `calendarFrom`, `calendarTo`, `calendarMonths`, `totalDays` | `2026-10-15`, `2027-09-30`, `12`, `351`: the nights counted |
| `availableDays`, `blockedDays`, `checkinDays`, `nextAvailableDate` | `296` open, `55` booked or blocked, `203` nights a stay may start on, first open night `2026-10-19` |
| `occupancyPct`, `occupancyAdjustedPct` | `15.7`: closed nights ÷ nights counted; adjusted: without the long blocks and the nights after the last open one |
| `occupancy30d`, `occupancy60d`, `occupancy90d`, `occupancy365d` | `80`, `43.3`, `37.8`, `15.7`: the next 30 / 60 / 90 nights from today, and every night Airbnb shows from today (up to 12 months) |
| `longBlockedNights`, `bookingHorizonDays` | closed nights in long blocks (owner use), days from today to the last open night (`350`) |
| `minNightsTypical`, `minNightsMin`, `maxNightsTypical` | most frequent and shortest minimum stay of the open nights, most frequent maximum stay |
| `occupancyByMonth` | per month: `month`, `days`, `availableDays`, `blockedDays`, `occupancyPct`, `checkinDays`, `avgNightlyPrice` (with **Price every night**) |
| `calendar` | per night (**Day-by-day calendar**): `date`, `available`, `availableForCheckin`, `availableForCheckout`, `bookable`, `minNights`, `maxNights`, `price` (with **Price every night**) |
| `priceSamples` | per stay priced: `checkIn`, `checkOut`, `daysAhead`, `nights`, `nightlyRate` (before fees), `totalPrice`, `priceLabel`, `cleaningFee`, `serviceFee`, `taxes`, `discount`, `priceBreakdown`, `canInstantBook`, `status` (`ok` / `unavailable` / `unpriced`) |
| `nightsPriced`, `avgNightlyPrice`, `minNightlyPrice`, `maxNightlyPrice` | nights priced with **Price every night** (null when that option is off); mean, lowest and highest price per night priced (`137.71`, `134.35`, `141.07`) |
| `adr`, `adrSource`, `estimatedBookedNights`, `estimatedRevenue`, `revPar` | `137.71` (`samples` or `nightly`), `55` nights, `7574.05`, `21.58`; null without prices, never 0 |
| `changes` | **Changes since last run**: `previousScrapedAt`, `nightsNewlyBlocked`, `nightsReleased`, `availableDaysChange`, `avgNightlyPriceChange` (null on the first run of a listing) |
| `listingCount`, `stats` | `market-stats` rows: listings summed up; mean, 25th percentile, median and 75th percentile of occupancy, price per night, ADR, RevPAR and revenue, and the occupancy month by month |
| `scrapedAt` | `2026-10-15T04:49:39.750Z` |

### 💡 Tips

#### How occupancy is estimated

Airbnb's calendar says which nights are still open, not why the others are closed: a night that is not open is **booked or blocked by the host**, and Airbnb does not tell them apart. So `occupancyPct` = closed nights ÷ nights counted is an estimate, like every occupancy figure built from Airbnb's calendar. `occupancyAdjustedPct` leaves out two kinds of closed nights that are rarely bookings: the runs of at least `longBlockDays` closed nights in a row (owner stay, long-term let, renovation: `longBlockedNights`), and the nights after the last open one (the host has not opened the calendar that far: `bookingHorizonDays` says how far ahead bookings are taken). `occupancy30d`, `occupancy60d`, `occupancy90d` and `occupancy365d` count from today, `occupancyByMonth` month by month. A listing marked « New » by Airbnb (`isLikelyNewListing`) has few bookings to show yet.

#### Prices: sample stays, an exact stay or every night

Airbnb's calendar carries no price: a price is what Airbnb quotes for a dated stay, fees and taxes included — what a guest sees before booking. Three ways, all off by default, charged per stay or night priced:

- **Sample stays to price** (`priceSamples`): up to 12 stays per listing, picked by `priceSampleSpread` — `monthly` gives the season curve, `daysAhead` the curve by booking lead time, `next` the next open stays. Each stay lasts `stayNights`, or the listing's minimum stay that night.
- **Exact stay** (`checkIn` + `checkOut`): the same dates priced for every listing.
- **Price every night** (`nightlyPrices`): one quote per night a stay can start on, written in `calendar` and averaged per month in `occupancyByMonth`.

A stay Airbnb does not sell for those dates or guests (booked, under the minimum stay, too many guests, pets not allowed) gets `status: unavailable`; a stay the run could not price gets `status: unpriced`. Neither is charged, and the row is saved anyway. `adr` is the mean price per night of the stays or nights priced (weighted by nights; `adrSource` says which), `estimatedRevenue` = `estimatedBookedNights` (the closed nights of the adjusted occupancy) × `adr`, and `revPar` = that ÷ nights counted. Without prices they are `null`, never 0.

#### How to cover a whole city

Airbnb shows at most 270 listings per search. With **Split full areas** (`splitMap`, on by default) a full search is cut into 4 smaller map areas, again and again, to reach the others; a listing found by two areas is saved once. When the number of listings you ask for fits in the first 270, the search is read as it is, and cut only if, after its 15 pages, your filters (or **Only new listings**) left rows still missing. **Map areas** (`boundingBoxes`) let you draw the city yourself. For a whole city, give a map area: a place search starts from the map Airbnb proposes for that place, which does not always cover the whole city, and the cutting stays inside it. A search URL with dates set on Airbnb lists only the listings free on those dates: paste it without dates to get the booked ones too.

#### How to reduce costs

The base price is per listing saved, whatever the number of months. The levers are `maxItems` and `maxItemsPerQuery`, Airbnb's own search filters (price, type of place, bedrooms, Superhost: they cost nothing), the Actor's filters (a dropped listing costs only the filter fee), `onlyNew` or `onlyChanges` for scheduled runs, and the price options: 2 sample stays are 2 events per listing, **Price every night** up to one per night a stay can start on (cap it with `maxNightlyPricesPerListing`). Unticking `includeDays` makes the results smaller, not cheaper.

#### Several searches in one run

Fill `locations` and / or `boundingBoxes`, or paste several search URLs into `startUrls`: each place, map area or search URL is a search of its own (up to 500 per run). A listing found by several searches is saved — and charged — once. Set `maxItemsPerQuery` to give every search its own cap: without it the first searches can use up the whole `maxItems` budget.

#### Monitoring: booking pace and new listings

Tick **Changes since last run** (`trackChanges`) and schedule the Actor: each listing is compared with its previous run under the same `stateKey`, and `changes` gives the nights newly booked or blocked (`nightsNewlyBlocked`), the nights released (`nightsReleased`), the change of open nights (`availableDaysChange`) and the mean move of the price per night over the stays both runs priced (`avgNightlyPriceChange`, same check-in and length; null when there is none). On the first run of a listing `changes` is null. No extra request, no extra fee. Add **Only changed listings** (`onlyChanges`) to save only the listings that moved and the new ones: the others cost only the filter fee.

Tick **Only new listings** (`onlyNew`) to get only the listings never delivered before: the others are not saved and not charged, and for listings found by a search their calendar is not even read (a listing given by ID or URL has its calendar as its only request: it is read, then ignored, and nothing is charged); the search pages are still read, Airbnb having no newest-first order. The memory lives in a named key-value store of your account (`airbnb-calendar-occupancy-scraper-seen`, up to 150,000 listings per key) and is only updated with listings that really reached the dataset, so a failed run never hides anything. Leave it unticked with `trackChanges`: the listings already delivered would not be read again, so they would get no `changes`.

Give each schedule its own `stateKey` (two schedules sharing a key would mix their memories), and tick `resetState` once to start over.

#### Market summary

Tick **Market summary** (`includeMarketStats`): after the listings come one `market-stats` row per search (place, map area or search URL), plus one for the whole run when there are several searches (one search alone has its row only), with `listingCount` and, in `stats`, the mean, 25th percentile, median and 75th percentile of the occupancy (raw and adjusted), price per night, ADR, RevPAR and estimated revenue, and the occupancy month by month. It sums up the listings saved: a search with no listing saved has no row. If the run stops at its time limit, the summary covers the listings saved before it. A run resumed after that stop (resurrect) reads on and writes the missing `error` rows and, for each search that gained listings, a new `market-stats` row with the latest `scrapedAt` and `listingCount` (the one written at the stop stays, it is not charged again).

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Airbnb listing, with its 12-month calendar and occupancy. Actor id: `nice_dev/airbnb-calendar-occupancy-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/airbnb-calendar-occupancy-scraper`.

Smallest input, for a cheap first call:

```json
{
    "location": "Lisbon, Portugal",
    "maxItems": 10
}
```

Key output fields: `url`, `title`, `occupancyPct`, `occupancyAdjustedPct`, `occupancyByMonth`, `nextAvailableDate`, and `priceSamples` and `adr` with **Sample stays to price**.

Cost: a price per listing saved with its calendar, plus the options you tick and a small fee per run start — see the prices on the Pricing tab. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Airbnb?

The Actor only reads what Airbnb shows publicly to any anonymous visitor of a listing: its calendar, its search card and the price of a stay, as a visitor sees them before booking. It logs in to nothing and books nothing. Results hold no guest data: the calendar says which nights are open, never who stays. The host's first name or business name (option **Listing details**) is personal data, protected by GDPR and similar laws: do not store or use it without a legitimate reason. You are responsible for using the data in compliance with Airbnb's Terms of Service and applicable law. This Actor is not affiliated with Airbnb.

#### Is the occupancy rate exact?

No one outside Airbnb sees the bookings: a closed night is booked or blocked by the host. `occupancyPct` counts every closed night, `occupancyAdjustedPct` leaves out the long owner blocks and the nights not opened yet (see **How occupancy is estimated** above). Read them as estimates, best compared between listings of the same area.

#### Can I get past bookings?

No. Airbnb shows 12 months from the 1st of the current month and no past: the nights before today are not counted. To build a history, schedule the Actor with **Changes since last run**: each run records the nights booked since the previous one.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the site turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds).

#### Is the data safe to open in Excel or to show on a web page?

Titles and descriptions are the hosts' own words, copied as they are. A text can begin with `-`, `+`, `=` or `@`: Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger.

#### Known limitations

- Listings given by ID or URL are checked only when the data is known (search card, or Listing details): without **Listing details** they have their calendar and prices, but no title, rating or reviews, and the filters on those are skipped for them.
- With **Only new listings**, a listing a filter dropped is remembered as dropped and not checked again by the next runs with the same filters — except **Min reviews**, checked again since a count of reviews only grows.
- The property type is worded by the source: a listing found by a search keeps the search card's type (`Apartment`), the same listing pasted by ID or URL with **Listing details** gets the listing page's own wording (`Entire rental unit`). The two vocabularies are Airbnb's and are not mapped to each other.
- A night counts as open when Airbnb's calendar says `available`. Now and then (8 nights in 1 000 measured over a year, 18 listings) an open night is not bookable (`bookable: false`: no arrival and no departure possible, the gap is shorter than the minimum stay) and Airbnb's page draws it « Unavailable »: `occupancyPct` and `availableDays` count it open (it is not booked), `checkinDays` and `nextAvailableDate` do not, and the day-by-day calendar gives its `bookable` flag. On a listing with a 2 to 4 night minimum and a busy calendar they add up: one listing had 20 of its 29 open nights unbookable (`occupancyPct` 5.8 points lower on the page's count).
- A search by place starts from the map Airbnb proposes for that place: it does not always cover the whole city (a district at the edge may be outside it), and **Split full areas** cuts only inside that map. For a whole city, paste a map area (`boundingBoxes`) that covers it.
- A pasted search URL keeps its own filters and the guests it sets; the filters of the input are added to it. Its dates (`checkin`, `checkout`) are removed: Airbnb would only list the listings free on those dates, and the occupancy rates would be biased downwards. Airbnb ignores the page of a pasted link, so a search is always read from its first page, and the same search pasted at two pages is read once (the log says so).
- Airbnb reorders its results while they are read: on a whole-city run about 1 listing in 100 can be missed (the log says how many were seen twice). Run the search again with **Only new listings** (`onlyNew`) to pick them up.
- `onlyNew` remembers listing ids, not their calendar: to follow a listing over time, use `trackChanges`.
- Two runs sharing the same `stateKey` at the same time may both return the same new listing.
- If Airbnb refuses 20 price reads in a row (too many requests from one address), the run stops reading prices: the stays not read have the status `unpriced` and are never charged, the listings still go out with their calendar, and the log and the final status say how many stays have no price and why (refused by Airbnb, out of time, skipped after the refusals). Lower **Max requests per minute** or use a proxy. The count adds up the whole run, even when it was moved to another server or resurrected. If 20 price answers in a row are not the ones the Actor knows (Airbnb changed its price answer), the prices stop the same way and the run ends as **failed**, with "Airbnb changed its price answer" first in the status: the listings saved stay in your dataset and are charged as asked, the missing prices are not.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the listings already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved after each write (at most once every 2 seconds): resurrect the stopped run and the listings it had saved meanwhile join the memory; leave it stopped for good, and the next run may return the listings of its last 2 seconds once more.
- With `trackChanges`, the next run may give the change of the last listings saved once more.

#### Something doesn't work?

The last line of the log counts the listings saved, filtered out and no longer on Airbnb (removed or private), and the requests that failed after every retry; the line before it counts the stays priced, not sold by Airbnb for those dates, and left without a price. The failed requests and the removed listings are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store; each removed or private listing also gets a free `error` row. A run that saved nothing and had failed requests fails, and its last message gives the cause.

If Airbnb changes its pages, you are told instead of paying for blank rows. A results page the Actor cannot read is an error (listed in `FAILED_REQUESTS`), never a quiet "No listings found", and a calendar it cannot read is a failed request, never a listing saved with an empty calendar. If the first 20 listings read all lack their title, position or photo (listings found by a search), the run saves nothing more, stops and fails, and its last message names the missing field: at most those first listings are charged. A listing a filter drops because such a field is missing counts among those 20. A run of fewer listings (a scheduled `onlyNew` run that finds a few new ones, a small **Max listings**) is checked at its end, from 5 listings: its listings are already saved, and the run fails with the missing field instead of ending green. Listings given by URL or ID are never counted: they have no search card.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which URLs failed and why.

# Actor input Schema

## `startUrls` (type: `array`):

Airbnb listing URLs (`https://www.airbnb.com/rooms/12345`, any Airbnb domain) and/or Airbnb search URLs (`https://www.airbnb.com/s/Lisbon--Portugal/homes`, map searches included: their filters are kept, pagination and map splitting are automatic). Dates in a pasted search link are removed: Airbnb would only list the listings free on those dates. Max 1 000 URLs.

## `listingIds` (type: `array`):

Airbnb listing IDs alone (the digits after `/rooms/`), one per line, read in this order before any search: with a result limit, the first ones are the ones saved. Max 1 000.

## `location` (type: `string`):

A city, area or address as typed in Airbnb's search box (e.g. `Lisbon, Portugal`, `Miami Beach, FL`, `Bali, Indonesia`): every listing Airbnb shows for it gets its calendar. With no source at all (no URL, listing ID, place or map area), `Lisbon, Portugal` is read, 20 listings at most.

## `locations` (type: `array`):

Several places in one run (one Airbnb search each, max 100). Added to **Place**; a listing found by several searches is saved once.

## `boundingBoxes` (type: `array`):

Map rectangles to search, one per line as `south latitude, west longitude, north latitude, east longitude` (e.g. `38.70, -9.15, 38.72, -9.13` for central Lisbon). The surest way to cover a whole city: Airbnb returns at most 270 listings per search, and a full area is split into smaller ones automatically.

## `maxItems` (type: `integer`):

Maximum number of listings to save for the whole run, after filters. 0 = no limit.

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (place, map area or search URL), so that the first one cannot use up the whole **Max listings** budget. 0 = no per-search cap.

## `splitMap` (type: `boolean`):

Airbnb shows at most 270 listings (15 pages) per search. When a search is full, cut its map area into 4 smaller areas, again and again, to reach the listings beyond 270. Off = the first 270 of each search only.

## `calendarMonths` (type: `integer`):

How many calendar months to count, from the month of **Start date** (Airbnb gives 12 at most, from the current month). Same price for 1 or 12 months: the whole calendar is always read, only these nights are counted (and priced, with prices on). Ignored when **End date** is set.

## `startDate` (type: `string`):

First night counted: a date (`YYYY-MM-DD`), or `+7` (7 days from today; handy for scheduled runs). Empty = today. Nights before today are never counted (Airbnb shows no past). Latest possible: the last day of the 12th month from the current month (a later date is refused).

## `endDate` (type: `string`):

Last night counted: a date (`YYYY-MM-DD`), or `+90` (90 days from today). Empty = the end of **Months of calendar**. Airbnb's calendar ends 12 months after the current month.

## `includeDays` (type: `boolean`):

Add the `calendar` list (one entry per night: open or not, check-in / check-out allowed, minimum and maximum stay, and the price of the night with **Price every night**). Off = monthly and overall figures only (smaller results). With **Price every night**, the day-by-day calendar is always included.

## `longBlockDays` (type: `integer`):

For the adjusted occupancy (`occupancyAdjustedPct`): a run of at least this many blocked nights in a row counts as the host closing the calendar (owner stay, long-term let, renovation), not as bookings, and is left out. 0 = keep every blocked night.

## `priceSamples` (type: `integer`):

Price this many stays per listing (real Airbnb quote: price per night, total with fees, dates of the stay). 0 = no sample prices. They also give `avgNightlyPrice`, `adr`, the revenue estimate and RevPAR. Charged per stay priced.

## `priceSampleSpread` (type: `string`):

`Month by month`: the first stay open for check-in in each calendar month, from **Start date**. `Days ahead`: the first stay open on or after each number of **Days ahead** (price curve by booking lead time). `Next open stays`: the next open stays, one after the other.

## `priceSampleDaysAhead` (type: `array`):

Lead times for **Days ahead**, in days from today (one stay priced per value, up to **Sample stays to price**).

## `nightlyPrices` (type: `boolean`):

Price EVERY night open for check-in in the calendar (one real Airbnb quote per night, for a stay of the listing's minimum length), written in the day-by-day calendar and summed up per month. Up to ~365 requests per listing: slower, charged per night priced. Off by default.

## `maxNightlyPricesPerListing` (type: `integer`):

Cap on the nights priced per listing with **Price every night** (the first ones of the calendar). 0 = all.

## `stayNights` (type: `integer`):

Length of each priced stay. 0 = the listing's minimum stay on that date (at least 1). A longer stay may get Airbnb's weekly or monthly discount; a shorter one than the minimum cannot be priced.

## `checkIn` (type: `string`):

Also price this exact stay for every listing (first night of the stay, `YYYY-MM-DD`, today or later), with **Exact stay: check-out**: one more priced stay per listing, `status: unavailable` when the listing is booked then. Empty = none.

## `checkOut` (type: `string`):

Check-out date of the exact stay (`YYYY-MM-DD`), after **Exact stay: check-in**.

## `adults` (type: `integer`):

Adult guests used for the prices (some hosts charge per guest) and, for searches, only the listings that can host them.

## `children` (type: `integer`):

Children (2-12) counted in the prices and the searches.

## `infants` (type: `integer`):

Infants (under 2) counted in the prices and the searches.

## `pets` (type: `integer`):

Pets: prices include the pet fee, and searches keep only the listings that allow pets.

## `currency` (type: `string`):

Currency of every price.

## `priceMin` (type: `integer`):

Lowest price per night shown by the search, in the currency above. 0 = no minimum.

## `priceMax` (type: `integer`):

Highest price per night shown by the search, in the currency above. 0 = no maximum.

## `roomTypes` (type: `array`):

Only these kinds of place. Empty = all.

## `propertyTypes` (type: `array`):

Only these kinds of property (Airbnb filter). Empty = all.

## `minBedrooms` (type: `integer`):

Only listings with at least this many bedrooms. 0 = any.

## `minBeds` (type: `integer`):

Only listings with at least this many beds. 0 = any.

## `minBathrooms` (type: `integer`):

Only listings with at least this many bathrooms. 0 = any.

## `superhostOnly` (type: `boolean`):

Only listings of Superhosts (Airbnb filter).

## `minOccupancyPct` (type: `integer`):

Only listings whose occupancy (`occupancyPct`) is at least this. 0 = any.

## `maxOccupancyPct` (type: `integer`):

Only listings whose occupancy is at most this (e.g. 30 = mostly empty calendars). 100 = any.

## `minAvailableNights` (type: `integer`):

Only listings with at least this many nights still open in the calendar read (1 = only listings still bookable). 0 = any.

## `minRating` (type: `number`):

Only listings rated at least this much out of 5 (search results without a rating are dropped). 0 = any.

## `minReviews` (type: `integer`):

Only listings with at least this many reviews (search results without a review count are dropped). The search cards of a map area that names no place (Map areas, or a pasted `airbnb.com/s/homes?ne_lat=…` link) give the rating but no review count: tick Listing details to judge them on the listing page (without it, Min reviews with such a search is refused). 0 = any.

## `maxBedrooms` (type: `integer`):

Only listings with at most this many bedrooms (listings without a bedroom count are kept). 0 = any.

## `hostTypes` (type: `array`):

Only listings whose host is shown as a business (professional) or an individual. Airbnb shows it mostly for listings in Europe; search results without it are dropped when this is set. Empty = all.

## `includeKeywords` (type: `array`):

Keep only the listings whose title contains one of these words (case and accents ignored). Empty = all.

## `excludeKeywords` (type: `array`):

Drop the listings whose title contains one of these WHOLE words (case and accents ignored): `art` drops "Art deco" but keeps "Smart flat". Several words in one entry (`sea view`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the title (no spaces there).

## `includeListingDetails` (type: `boolean`):

Open each listing's page (1 extra request per listing) for its type of place, city, capacity, photos, description, amenities (with Wifi, pool and parking flags), house rules and host (ID, name, rating, reviews, years hosting, response rate and time). A listing found by a search keeps what its search card shows and the page completes it; a listing given by URL or ID also gets its title, property type, rating, reviews, bedrooms, beds, bathrooms and position from its page, so the rating, reviews and bedrooms filters can judge it. Without this option all these columns are null.

## `includeMarketStats` (type: `boolean`):

Add one summary row per search (place, map area or search URL), plus one for the whole run when there are several searches: number of listings, mean, median and quartiles of occupancy, price per night (with prices on), ADR, RevPAR and estimated revenue, and occupancy month by month. It sums up the listings saved (a run stopped at its time limit sums up those saved before it); a search with no listing saved has no row. No extra request.

## `onlyNew` (type: `boolean`):

Skip the listings that a previous run (same **Memory key**) already delivered: they are not saved and not charged, and for listings found by a search their calendar is not even read. First run = everything is new.

## `trackChanges` (type: `boolean`):

Compare each listing with its last run (same **Memory key**): nights newly booked or blocked, nights released, change of open nights and of the sample prices, written in `changes` (booking pace). First run = no comparison. No extra request. Leave **Only new listings** unticked with it: it skips the listings already delivered, so there is nothing left to compare.

## `onlyChanges` (type: `boolean`):

With **Changes since last run**: save only the listings whose calendar or sample prices changed since their last run (and the ones seen for the first time). Unchanged listings are not saved and only the small filter fee applies.

## `stateKey` (type: `string`):

Name of the memory used by **Only new listings** and **Changes since last run**. Give each schedule / task its own key (e.g. `lisbon-weekly`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget what this **Memory key** remembers before the run (every listing is new again, no comparison).

## `proxyConfiguration` (type: `object`):

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

How many requests at the same time.

## `maxRequestsPerMinute` (type: `integer`):

Ceiling on the request rate of the whole run.

## `minRequestIntervalMs` (type: `integer`):

Minimum pause between two requests. 0 = none.

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. Behind a proxy, a request Airbnb turns away is also retried on a new proxy session up to 10 times without using up these retries.

## `debugLog` (type: `boolean`):

Detailed log (for support).

## Actor input object example

```json
{
  "startUrls": [],
  "listingIds": [],
  "location": "Lisbon, Portugal",
  "locations": [],
  "boundingBoxes": [],
  "maxItems": 20,
  "maxItemsPerQuery": 0,
  "splitMap": true,
  "calendarMonths": 12,
  "includeDays": true,
  "longBlockDays": 21,
  "priceSamples": 0,
  "priceSampleSpread": "monthly",
  "priceSampleDaysAhead": [
    "14",
    "30",
    "60",
    "90"
  ],
  "nightlyPrices": false,
  "maxNightlyPricesPerListing": 0,
  "stayNights": 0,
  "adults": 2,
  "children": 0,
  "infants": 0,
  "pets": 0,
  "currency": "USD",
  "priceMin": 0,
  "priceMax": 0,
  "roomTypes": [],
  "propertyTypes": [],
  "minBedrooms": 0,
  "minBeds": 0,
  "minBathrooms": 0,
  "superhostOnly": false,
  "minOccupancyPct": 0,
  "maxOccupancyPct": 100,
  "minAvailableNights": 0,
  "minRating": 0,
  "minReviews": 0,
  "maxBedrooms": 0,
  "hostTypes": [],
  "includeKeywords": [],
  "excludeKeywords": [],
  "includeListingDetails": false,
  "includeMarketStats": false,
  "onlyNew": false,
  "trackChanges": false,
  "onlyChanges": false,
  "stateKey": "default",
  "resetState": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 10,
  "maxRequestsPerMinute": 240,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "location": "Lisbon, Portugal",
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/airbnb-calendar-occupancy-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "location": "Lisbon, Portugal",
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/airbnb-calendar-occupancy-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "location": "Lisbon, Portugal",
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/airbnb-calendar-occupancy-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/airbnb-calendar-occupancy-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PnbXDNIVPy6Rk5zuz/builds/PicCkelWFZeSjy9Fq/openapi.json
