# Booking 关键词搜索 API (booking.search)

- Canonical page: [https://everyinfra.com/booking-api/search](https://everyinfra.com/booking-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "booking", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 30 per call
- 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=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Booking 住宿目的地，例如 Amsterdam；search 查酒店、公寓等住宿列表，不是航班、景点或点评正文关键词搜索。 |
| check_in | not declared | no | not declared | 入住日期，YYYY-MM-DD。search / profile 仅在同时提供 check_in 和 check_out 时传入日期；prices 中作为 start_date 未提供时的起始日期，不创建订单。 |
| check_out | not declared | no | not declared | 退房日期，YYYY-MM-DD，应与 check_in 一起提供且晚于入住日期。只填这一项不会让 search / profile 带上完整入住区间。 |
| currency | enum: aed / ars / aud / azn / bgn / bhd / brl / cad / chf / clp / cny / cop / czk / dkk / egp / eur / fjd / gbp / gel / hkd / huf / idr / ils / inr / jod / jpy / krw / kwd / kzt / mdl / mxn / myr / nad / nok / nzd / omr / pln / qar / ron / rub / sar / sek / sgd / thb / try / twd / uah / usd / xof / zar | no | not declared | 住宿价格展示币种，默认 USD。search / profile 接受本接口列出的币种代码；prices 建议使用大写三字母代码。它不改变 EveryInfra 的 API 计费币种。 |
| lang | enum: ar / bg / ca / cs / da / de / el / engb / enus / es / esar / et / fi / fr / he / hr / hu / id / is / it / ja / ko / lt / lv / ms / nl / no / pl / ptbr / ptpt / ro / ru / sk / sl / sr / sv / th / tl / tr / uk / vi / zhcn / zhtw | no | not declared | 住宿页面信息语言，默认英式英语；engb / enus 为英式 / 美式英语，zhcn / zhtw 为简体 / 繁体中文。不要直接套用 en 或 zh；此参数不负责翻译 reviews 的点评正文。 |
| min_price | not declared | no | not declared | 这个参数接收每晚价格范围字符串，不是单个最低价数字：例如 100-150 表示区间，100+ 表示至少 100。币种由 currency 决定，不能把整个入住期总价填入。 |
| property_type | not declared | no | not declared | search 的住宿类型文本，保留大小写和空格，例如 Hotels、Apartments、Hostels、Guest houses、Homestays、Bed and breakfasts、Holiday homes、Boats、Villas、Motels、Resorts、Holiday parks、Campsites、Luxury tents；none 表示不限定。不是酒店内的房型名称。 |
| sort | enum: distance / popular / top_rated | no | not declared | 住宿结果排序：distance 为相对搜索地点的距离，popular 为点评综合排序；top_rated 按住宿星级排序，不是按住客评分。search 默认 popular，对单个住宿的 profile 不应期待产生列表排序效果。 |
| star_rating | enum: 1_star / 2_stars / 3_stars / 4_stars / 5_stars / any / unrated | no | not declared | 住宿星级筛选：1_star 至 5_stars 为指定星级，unrated 为未评级，any 为不限。住宿星级与住客评论分数不是同一量纲。 |
| limit | integer (1–30) | no | 10 | 这次调用最多返回的条数，整数，1–30；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| type | 记录类型，取值随能力而定（如 video / image / text）。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| stars | 酒店星级（1–5），是官方评定的硬件等级，**与住客评分 rating 不是一回事**。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_label | 评分的文字档位（如 Wonderful / Very good），由 score 分段而来。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| breakfast | 早餐说明（含/不含/需加购）。 |
| hotel_chain | 所属连锁品牌，独立酒店为 null。 |
| check_in_date | 本次查询的入住日期。 |
| check_out_date | 本次查询的退房日期。 |
| address | 详细地址，原文透传。 |
| city | 城市名，用原平台的语言书写，未做中英归一。 |
| country | 国家或地区。可能是全称也可能是 ISO 代码，取决于平台，未归一。 |
| latitude | 纬度。 |
| longitude | 经度。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| category_ratings | 分项评分列表，每项含名称（name，如清洁度、位置）和分数（score）；没有时不出现这个字段。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| facilities | 设施与服务名称列表，按页面分组顺序展开；没有时不出现这个字段。 |

## 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": "search",
  "params": {
    "keyword": "London"
  }
}'
```

```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": "search",
        "params": {
            "keyword": "London",
        },
    },
    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 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "booking",
  "action": "search",
  "results": [
    {
      "id": 9152828,
      "name": "Cleveland Residences Farringdon",
      "type": "apartment",
      "url": "https://www.booking.com/hotel/gb/cleveland-residences-farringdon.en-gb.html",
      "text": "About this propertyCentral London Location: Cleveland Residences Farringdon is situated in London city centre, offering easy access to key attractions. St Paul's Cathedral is a 13-minute walk away, while Sky Garden lies 2.5 km from the property.\n\nComfortable Amenities: Guests enj…",
      "rating": 9.1,
      "review_count": 1242,
      "address": "116-117 Saffron Hill, Camden, Camden, London, EC1N 8QS, United Kingdom",
      "city": "London",
      "country": "gb",
      "latitude": "51.5203036425954",
      "longitude": "-0.106765334515317",
      "image_url": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/725064039.jpg?k=8aa8ee4090de4750c832a40819443d8d3731aed5b023f354e9b4093d78732fcc&o=",
      "platform": "booking",
      "category_ratings": [
        {
          "name": "Staff",
          "score": 9.2
        },
        {
          "name": "Facilities",
          "score": 9.2
        },
        {
          "name": "Cleanliness",
          "score": 9.4
        }
      ],
      "image_urls": [
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/725064039.jpg?k=8aa8ee4090de4750c832a40819443d8d3731aed5b023f354e9b4093d78732fcc&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/735052970.jpg?k=b5c291fb38e2cdeacf237c2652552638c9a777c3ec9054c3fa0c5029dbe09099&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/735053105.jpg?k=3f6df590a0aec806a17c2238c6bce37c9e9c700fa4b1f630da028a573b84fff8&o=&hp=1"
      ],
      "facilities": [
        "Private bathroom",
        "Air conditioning",
        "Free WiFi"
      ],
      "rating_scale": 10
    },
    {
      "id": 35820,
      "name": "Sofitel London St James",
      "type": "hotel",
      "url": "https://www.booking.com/hotel/gb/st-james-london.en-gb.html",
      "text": "Get the celebrity treatment with world-class service at Sofitel London St JamesIn London's West End, this 5-star luxury hotel is set in a beautifully preserved Neoclassical building. It boasts a luxurious on-site spa, spacious rooms, and Michelin Star restaurant, Wild Honey St Ja…",
      "stars": 5,
      "rating": 9.1,
      "review_count": 804,
      "breakfast": "Continental, Full English/Irish, Vegetarian, Vegan, Gluten-free, American, Buffet",
      "address": "6 Waterloo Place, Westminster Borough, London, SW1Y 4AN, United Kingdom",
      "city": "London",
      "country": "gb",
      "latitude": "51.50752378484304",
      "longitude": "-0.1324474811553955",
      "image_url": "https://cf.bstatic.com/xdata/images/hotel/max1024x768/804916751.jpg?k=c5f49dc9649a166531d810b862cb312d841e2dc1266f1a6672d6f7461b7c0f9f&o=",
      "platform": "booking",
      "category_ratings": [
        {
          "name": "Staff",
          "score": 9.5
        },
        {
          "name": "Facilities",
          "score": 9.2
        },
        {
          "name": "Cleanliness",
          "score": 9.5
        }
      ],
      "image_urls": [
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/804916751.jpg?k=c5f49dc9649a166531d810b862cb312d841e2dc1266f1a6672d6f7461b7c0f9f&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/887340748.jpg?k=e58ae27f3487f6ab3654dab8b57ef2a2821298cc636e66fa515f7cf96a0e8141&o=&hp=1",
        "https://cf.bstatic.com/xdata/images/hotel/max1024x768/804916786.jpg?k=97de20f440fc61186681a99951e472bb6f8e7365c219d9257d4766d2d580d8da&o=&hp=1"
      ],
      "facilities": [
        "4 restaurants",
        "Parking",
        "Pets allowed"
      ],
      "rating_scale": 10
    }
  ],
  "count": 10,
  "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
