# Airbnb 房源可订日历 API (airbnb.calendar)

- Canonical page: [https://everyinfra.com/airbnb-api/calendar](https://everyinfra.com/airbnb-api/calendar?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "airbnb", "action": "calendar", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=airbnb&action=calendar

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 目标随 action 区分：property_detail / reviews / calendar 使用 /rooms/<房源ID> 链接或房源 ID；host 使用 /users/show/<房东ID> 链接或房东 ID。房源与房东标识不能互换。 |
| check_in | not declared | no | not declared | calendar 起始日期的兼容参数，YYYY-MM-DD；同时传 start_date 时由 start_date 优先，since 还会覆盖两者。查询日历不代表预订。 |
| check_out | not declared | no | not declared | calendar 结束日期的兼容参数，YYYY-MM-DD；同时传 end_date 时由 end_date 优先，until 还会覆盖两者。查询不会锁定房源。 |
| end_date | not declared | no | not declared | calendar 日历结束日期，YYYY-MM-DD。不传时依次使用 check_out、当天起第 30 天；默认不是 start_date 加 30 天。另传 until 时以 until 为准。 |
| since | not declared | no | not declared | YYYY-MM-DD 日期：reviews 表示评论起始日期；calendar 表示日历区间起点，并覆盖 start_date / check_in。不同 action 的日期含义不同。 |
| start_date | not declared | no | not declared | calendar 日历起始日期，YYYY-MM-DD。不传时依次使用 check_in、当天日期；若另传 since，则以 since 为准。 |
| until | not declared | no | not declared | calendar 日历区间终点，YYYY-MM-DD；传入时覆盖 end_date / check_out，不是评论发布时间上界。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| date | 该日历项对应的日期。 |
| available | 该日期是否可订。 |
| available_for_checkin | 该日期是否可作为入住日。 |
| available_for_checkout | 该日期是否可作为退房日。与 available 分开是因为最少连住限制会让「有房但不能当天入住」。 |
| bookable | 当前是否可预订。 |
| min_nights | 最少连住晚数。 |
| max_nights | 最多连住晚数。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "airbnb",
  "action": "calendar",
  "params": {
    "url": "https://www.airbnb.com/rooms/12937"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "airbnb",
        "action": "calendar",
        "params": {
            "url": "https://www.airbnb.com/rooms/12937",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 31. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "airbnb",
  "action": "calendar",
  "results": [
    {
      "id": "12937",
      "date": "2026-09-26",
      "available": false,
      "available_for_checkin": false,
      "available_for_checkout": false,
      "bookable": false,
      "min_nights": 3,
      "max_nights": 1125,
      "platform": "airbnb"
    },
    {
      "id": "12937",
      "date": "2026-09-27",
      "available": false,
      "available_for_checkin": false,
      "available_for_checkout": false,
      "bookable": false,
      "min_nights": 3,
      "max_nights": 1125,
      "platform": "airbnb"
    }
  ],
  "count": 31,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=airbnb
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
