# Booking 价格与房型 API (booking.prices)

- Canonical page: [https://everyinfra.com/booking-api/prices](https://everyinfra.com/booking-api/prices?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "booking", "action": "prices", "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=booking&action=prices

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Booking 单个住宿的完整页面链接，建议使用 /hotel/ 路径。profile 查住宿资料，reviews 查该住宿点评，prices 查房型价格；不要将目的地搜索页当作单个酒店链接。 |
| adults | integer | no | not declared | prices 询价的成人入住人数，整数，默认 2；用于查询条件，不是返回人数上限或实际预订。search 固定按 2 名成人查询。 |
| check_in | not declared | no | not declared | 入住日期，YYYY-MM-DD。search / profile 仅在同时提供 check_in 和 check_out 时传入日期；prices 中作为 start_date 未提供时的起始日期，不创建订单。 |
| currency | not declared | no | not declared | 住宿价格展示币种，默认 USD。search / profile 接受本接口列出的币种代码；prices 建议使用大写三字母代码。它不改变 EveryInfra 的 API 计费币种。 |
| days | integer | no | not declared | prices 向前查询的日历天数，默认 7，限制在 1–30；超出范围按边界截取。它是查询覆盖天数，不是每个房型的预订晚数。 |
| rooms | integer | no | not declared | prices 询价的房间数，整数，默认 1；不是要返回多少种房型。search 固定按 1 间房查询。 |
| start_date | not declared | no | not declared | prices 的逐日报价起始日期，YYYY-MM-DD；同时传 check_in 时优先使用 start_date。它不是评论发布时间或酒店开业日期。 |
| limit | integer (1–) | no | not declared | 这次调用最多返回的条数，整数，至少为 1；不传按默认值，实际返回可能少于这个数。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| hotel_name | 酒店名称。 |
| room_name | 房型名称。 |
| check_in | 酒店的每日办理入住时段（如 15:00–23:00），**不是**你的入住日期。 |
| check_out | 酒店的每日退房时段。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 折前原价，与 price 对比可算真实折扣。 |
| discount_percent | 折扣百分比。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| taxes_included | 报价是否已含税费。为 false 时实付会高于 price。 |
| is_sold_out | 该房型是否已售罄。 |
| availability_status | 房态（可订/剩余紧张/售罄）。 |
| min_stay | 最少连住晚数，低于此数订不了。 |
| bed_type | 床型描述。 |
| max_guests | 该房型最多入住人数。 |
| room_size_sqm | 房间面积，平方米。 |
| meal_plan | 餐食方案（含早/半食宿/全食宿等）。 |
| is_breakfast_included | 是否含早餐。 |
| is_refundable | 是否可免费取消。 |
| rate_options_count | 该房型下可选的价格方案数量。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| rooms_left | 剩余房间数。平台常用它制造紧迫感，数值偏保守。 |
| room_view | 房间景观（海景/城景等）。 |

## 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": "booking",
  "action": "prices",
  "params": {
    "url": "https://www.booking.com/hotel/jp/park-hyatt-tokyo.html"
  }
}'
```

```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": "booking",
        "action": "prices",
        "params": {
            "url": "https://www.booking.com/hotel/jp/park-hyatt-tokyo.html",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "booking",
  "action": "prices",
  "results": [
    {
      "id": "17981011",
      "url": "https://www.booking.com/hotel/jp/park-hyatt-tokyo.html",
      "hotel_name": "Park Hyatt Tokyo",
      "room_name": "Premier King Room",
      "check_in": "2026-11-07",
      "check_out": "2026-11-08",
      "currency": "USD",
      "is_sold_out": true,
      "availability_status": "sold_out",
      "max_guests": 3,
      "room_size_sqm": 65,
      "platform": "booking"
    },
    {
      "id": "17981012",
      "url": "https://www.booking.com/hotel/jp/park-hyatt-tokyo.html",
      "hotel_name": "Park Hyatt Tokyo",
      "room_name": "King Room with City View",
      "check_in": "2026-11-07",
      "check_out": "2026-11-08",
      "currency": "USD",
      "is_sold_out": true,
      "availability_status": "sold_out",
      "max_guests": 2,
      "room_size_sqm": 45,
      "platform": "booking"
    }
  ],
  "count": 56,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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