# Airbnb Availability Calendar Scraper (`cirkit/airbnb-availability-scraper`) Actor

Scrape day-by-day availability for any Airbnb listing. Returns up to 12 months of calendar data per request: available/booked status, minimum and maximum stay nights, check-in and check-out eligibility, and the nightly price string when visible. Fast HTTP-only scraper, no browser needed.

- **URL**: https://apify.com/cirkit/airbnb-availability-scraper.md
- **Developed by:** [Crikit](https://apify.com/cirkit) (community)
- **Categories:** E-commerce
- **Stats:** 9 total users, 6 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Airbnb Availability Calendar Scraper

Scrape day-by-day availability for any Airbnb listing. Returns up to 12 months of calendar data per request: available/booked status, min and max stay nights, check-in and check-out eligibility, and the nightly price string when visible. HTTP-only — no headless browser, ~300 ms per listing.

### What you give it

| Field | Type | Required | Notes |
|---|---|---|---|
| `startUrls` | array of URLs | one of these | Full Airbnb listing URLs `https://www.airbnb.com/rooms/<id>`. |
| `listingIds` | array of strings | one of these | Bare numeric listing IDs if you already have them. |
| `months` | integer (1-12) | no | How many months to fetch. Defaults to 12 (single request per listing). |
| `startMonth` | integer (1-12) | no | First month. Defaults to current UTC month. |
| `startYear` | integer | no | First year. Defaults to current UTC year. |
| `currency` | string | no | ISO 4217 (e.g. USD, EUR). Defaults to USD. Affects `priceFormatted`. |
| `locale` | string | no | e.g. en-US, en-GB. Defaults to en-US. |
| `maxItems` | integer | no | Hard cap on total items. 0 means unlimited. |
| `proxyConfiguration` | object | no | Apify Proxy enabled by default (default group is sufficient). |

### What you get back

One row per listing. Each row contains a `days` array with one record per calendar day.

#### Top-level fields (per listing)

- `listingId` — Airbnb numeric ID
- `url` — canonical listing URL
- `currency`, `requestedMonths`, `startMonth`, `startYear`
- `firstDate`, `lastDate` — YYYY-MM-DD bounds of the calendar slice
- `totalDays`, `availableDays`, `blockedDays`
- `scrapedAt` — ISO timestamp
- `days[]` — see below

#### Per-day fields (in `days[]`)

- `calendarDate` — YYYY-MM-DD
- `available` — boolean
- `availableForCheckin` — boolean (some dates are only allowed as checkout)
- `availableForCheckout` — boolean
- `minNights`, `maxNights` — host stay-length constraints for that date
- `bookable` — nullable boolean (null on blocked days; true on available days that pass policy)
- `priceFormatted` — pretty price string like "$120" when available, null on blocked days

### Pricing (pay-per-event)

| Tier | Per calendar result | Actor start (per GB) |
|---|---|---|
| FREE | $0.0025 | $0.0075 |
| BRONZE | $0.0022 | $0.0070 |
| SILVER | $0.0020 | $0.0060 |
| GOLD | $0.0018 | $0.0050 |
| PLATINUM | $0.0016 | $0.0045 |
| DIAMOND | $0.0014 | $0.0040 |

A "calendar result" is one full listing with up to 365 days of data. There is no per-day or per-event surcharge — pricing data is bundled in.

**Billing note.** Every record pushed to the default dataset counts as one result. The scraper pushes a `warning` row when a listing returns no data (invalid ID, removed listing, hotel-style multi-unit) or when input cannot be parsed; those rows are billed at the same per-result rate. This keeps the run from silently returning zero items.

**Worked examples (FREE tier, 512 MB memory => 0.5 GB start charge):**

- 100 listings: 100 × $0.0025 + $0.0075 × 0.5 = **$0.254**
- 1,000 listings: 1000 × $0.0025 + $0.0075 × 0.5 = **$2.504**
- 10,000 listings: 10000 × $0.0025 + $0.0075 × 0.5 = **$25.004**

### Measured local coverage (build 0.1)

| Field | Days tested | Extracted | Coverage |
|---|---|---|---|
| calendarDate | 1825 | 1825 | 100.0% |
| available | 1825 | 1825 | 100.0% |
| availableForCheckin | 1825 | 1825 | 100.0% |
| availableForCheckout | 1825 | 1825 | 100.0% |
| minNights | 1825 | 1825 | 100.0% |
| maxNights | 1825 | 1825 | 100.0% |

Reliability: 5/5 listings returned full 365-day calendars. Zero value mismatches against ground truth.

Cloud variance (3 runs across 2+ hours) will be added after first deploy.

### Limits to be aware of

- The persisted GraphQL hash can rotate (Airbnb operational change). The actor self-heals: on `PersistedQueryNotFound`, it scrapes a fresh hash from the live listing page and retries.
- `priceFormatted` is always `null` for blocked days (true negative — that's Airbnb's API, not a scraper miss).
- `bookable` is `null` for blocked days (same reason).
- The endpoint returns max 12 months per request. Set `months` and `startMonth`/`startYear` to scan further out.
- "Property-level" calendars (multi-unit hotels) are not returned; the default config skips them. Open an issue if you need this.

### FAQ

**Why is this cheaper than the alternative actor on Apify?**
We charge once per listing instead of separately for "actor-start", "result", and "available-date price" events. The math comes out ~25-40 % cheaper on typical workloads.

**Does it need login?** No.

**Does it work on Airbnb Plus / Luxe?** Yes — same endpoint shape.

**Can I batch a portfolio?** Yes. Pass any number of URLs in `startUrls`. Concurrency is 10, so 1,000 listings ≈ a few minutes.

### Changelog

- `0.1` — Initial release.

# Actor input Schema

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

Full Airbnb listing URLs in the form https://www.airbnb.com/rooms/<id>. You may pass either this field, listingIds, or both.
## `listingIds` (type: `array`):

Airbnb numeric listing IDs as strings. Use this when you already have the IDs and want to skip URL parsing.
## `months` (type: `integer`):

How many months of availability to return per listing, starting at startMonth/startYear. Range 1 to 12; defaults to 12.
## `startMonth` (type: `integer`):

Month of the first calendar month to return (1 to 12). Defaults to the current UTC month.
## `startYear` (type: `integer`):

Year of the first calendar month to return (e.g. 2026). Defaults to the current UTC year.
## `currency` (type: `string`):

Three-letter ISO currency code for the priceFormatted field. Defaults to USD.
## `locale` (type: `string`):

Locale tag passed to the Airbnb GraphQL endpoint (e.g. en-US, en-GB). Defaults to en-US.
## `maxItems` (type: `integer`):

Hard cap on the total number of calendar items returned. Leave 0 for no limit.
## `proxyConfiguration` (type: `object`):

Apify Proxy is enabled by default. The Airbnb calendar endpoint is not anti-bot heavy, so the default group is sufficient.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.airbnb.com/rooms/12937"
    }
  ],
  "listingIds": [],
  "months": 12,
  "currency": "USD",
  "locale": "en-US",
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
````

# Actor output Schema

## `items` (type: `string`):

All listing calendars from the latest run.

## `itemsCsv` (type: `string`):

Overview table in CSV format.

## `itemsJson` (type: `string`):

Full JSON output including the `days` array per listing.

## `consoleRun` (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 = {
    "startUrls": [
        {
            "url": "https://www.airbnb.com/rooms/12937"
        }
    ],
    "listingIds": [],
    "months": 12,
    "currency": "USD",
    "locale": "en-US",
    "maxItems": 0,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("cirkit/airbnb-availability-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 = {
    "startUrls": [{ "url": "https://www.airbnb.com/rooms/12937" }],
    "listingIds": [],
    "months": 12,
    "currency": "USD",
    "locale": "en-US",
    "maxItems": 0,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.airbnb.com/rooms/12937"
    }
  ],
  "listingIds": [],
  "months": 12,
  "currency": "USD",
  "locale": "en-US",
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call cirkit/airbnb-availability-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=cirkit/airbnb-availability-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Airbnb Availability Calendar Scraper",
        "description": "Scrape day-by-day availability for any Airbnb listing. Returns up to 12 months of calendar data per request: available/booked status, minimum and maximum stay nights, check-in and check-out eligibility, and the nightly price string when visible. Fast HTTP-only scraper, no browser needed.",
        "version": "0.2",
        "x-build-id": "UgeK18JegAmBdxbpM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/cirkit~airbnb-availability-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-cirkit-airbnb-availability-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/cirkit~airbnb-availability-scraper/runs": {
            "post": {
                "operationId": "runs-sync-cirkit-airbnb-availability-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/cirkit~airbnb-availability-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-cirkit-airbnb-availability-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "Airbnb listing URLs",
                        "type": "array",
                        "description": "Full Airbnb listing URLs in the form https://www.airbnb.com/rooms/<id>. You may pass either this field, listingIds, or both.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "listingIds": {
                        "title": "Listing IDs",
                        "type": "array",
                        "description": "Airbnb numeric listing IDs as strings. Use this when you already have the IDs and want to skip URL parsing.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "months": {
                        "title": "Months of calendar to fetch",
                        "minimum": 1,
                        "maximum": 12,
                        "type": "integer",
                        "description": "How many months of availability to return per listing, starting at startMonth/startYear. Range 1 to 12; defaults to 12.",
                        "default": 12
                    },
                    "startMonth": {
                        "title": "Start month",
                        "minimum": 1,
                        "maximum": 12,
                        "type": "integer",
                        "description": "Month of the first calendar month to return (1 to 12). Defaults to the current UTC month."
                    },
                    "startYear": {
                        "title": "Start year",
                        "minimum": 2024,
                        "maximum": 2100,
                        "type": "integer",
                        "description": "Year of the first calendar month to return (e.g. 2026). Defaults to the current UTC year."
                    },
                    "currency": {
                        "title": "Currency",
                        "type": "string",
                        "description": "Three-letter ISO currency code for the priceFormatted field. Defaults to USD.",
                        "default": "USD"
                    },
                    "locale": {
                        "title": "Locale",
                        "type": "string",
                        "description": "Locale tag passed to the Airbnb GraphQL endpoint (e.g. en-US, en-GB). Defaults to en-US.",
                        "default": "en-US"
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Hard cap on the total number of calendar items returned. Leave 0 for no limit.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy is enabled by default. The Airbnb calendar endpoint is not anti-bot heavy, so the default group is sufficient.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
