Booking 能力清单
| action | 必填参数 | 可选参数 | 单次条数 | 模式 | 单价 / 次 | 返回字段 |
|---|---|---|---|---|---|---|
| search | keyword | check_in, check_out, currency, lang, min_price, property_type, sort, star_rating | 默认 10 · 最多 30 | 同步 | ¥0.01 | id · name · type · url · text · stars · rating · rating_scale · rating_label · review_count · price · currency · breakfast · hotel_chain · check_in_date · check_out_date · address · city · country · latitude · longitude · image_url · platform · score |
| profile | url | check_in, check_out, currency, lang, min_price, sort, star_rating | — | 同步 | ¥0.01 | id · name · type · url · text · stars · rating · rating_scale · rating_label · review_count · price · currency · breakfast · hotel_chain · check_in_date · check_out_date · address · city · country · latitude · longitude · image_url · platform · score |
| reviews | url | — | 默认 20 · 最多 100 | 同步 | ¥0.01 | id · title · text_positive · text_negative · rating · rating_scale · posted_at · stay_date · author_name · author_country · traveler_type · room_name · nights · language · owner_response · platform |
| prices | url | adults, check_in, currency, days, rooms, start_date | — | 同步 | ¥0.01 | id · url · hotel_name · room_name · check_in · check_out · price · original_price · discount_percent · currency · taxes_included · is_sold_out · availability_status · rooms_left · min_stay · bed_type · max_guests · room_size_sqm · room_view · meal_plan · is_breakfast_included · is_refundable · rate_options_count · platform |
返回字段含义
字段名跨 87 个平台统一,同一个键在哪个平台都是同一个意思—— 这也是换平台只需改 platform 一个字段的原因。 机器可读版:/api/v1/social/fields
- id
- 该记录在原平台上的唯一标识。仅在同一平台内唯一,跨平台可能重复。
- name
- 名称。用于账号/商品/商家类能力,指该对象本身的名字。
- type
- 记录类型,取值随能力而定(如 video / image / text)。
- url
- 该记录在原平台上的可访问链接。
- text
- 正文内容,已去除 HTML 标签。长文可能被上游截断。
- rating
- 评分。**分制随平台而异**,同一行的 `rating_scale` 给出该平台满分 (多数是 5,Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算 —— 直接比数字会得出反的结论。
- rating_scale
- 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。
- review_count
- 评价条数,用于商品/商家类能力。null 表示不公开,不等于 0。
- price
- 价格数值,不含货币符号;币种见 currency。
- currency
- 价格币种代码(如 CNY、USD)。price 存在但 currency 为 null 时不要假定币种。
- address
- 详细地址,原文透传。
- city
- 城市名,用原平台的语言书写,未做中英归一。
- country
- 国家或地区。可能是全称也可能是 ISO 代码,取决于平台,未归一。
- image_url
- 图片链接。多图能力可能返回 image_urls 数组。
- platform
- 数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
- title
- 标题。平台无标题概念时(如纯文本帖)为 null。
- posted_at
- 发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。上游只给非标准字符串时原样透传,解析前建议做容错。null 表示平台未公开。
- author_name
- 作者昵称(显示名)。
- language
- 内容语言代码(如 zh、en),由上游判定,可能不准。
另有 Booking 特有字段 stars · rating_label · breakfast · hotel_chain · check_in_date · check_out_date · latitude · longitude · score · text_positive · text_negative · stay_date · author_country · traveler_type · room_name · nights · owner_response · hotel_name · check_in · check_out · original_price · discount_percent · taxes_included · is_sold_out · availability_status · rooms_left · min_stay · bed_type · max_guests · room_size_sqm · room_view · meal_plan · is_breakfast_included · is_refundable · rate_options_count,保留该平台自身的语义。
30 秒调用示例
curl -X POST https://api.everyinfra.com/api/v1/social \ -H "Authorization: Bearer omg_live_你的KEY" \ -H "Content-Type: application/json" \ -d '{"platform":"booking","action":"search","params":{"keyword":"咖啡"}}'
返回长这样
{ "id": "booking_…", "search": [ { "id": "…", "name": "…", "type": "…", "url": "https://…", "text": "…", "stars": "…", "rating": 128, "rating_scale": "…", "rating_label": "…", "review_count": 128, "price": "…", "currency": "…", "breakfast": "…", "hotel_chain": "…", "check_in_date": "…", "check_out_date": "…", "address": "…", "city": "…", "country": "…", "latitude": "…", "longitude": "…", "image_url": "https://…", "platform": "booking", "score": "…" } ], "count": 10, "billing": { "charged": true, "credits": 100, "cny": 0.01 }}
常见用例
关键词监控
按关键词轮询 Booking 的新内容,配合 Gemini 文本 API 做情绪分类与异常波动告警。
口碑与差评告警
拉 Booking 的评论做评分走势与差评归因,新差评第一时间入库推送。
账号与主体画像
按 Booking 的主页数据建达人/商家档案,做投放筛选或竞品盯防。
Booking API 常见问题
Booking API 怎么调用?
统一入口 POST /api/v1/social,请求体传 platform="booking"、action(见上方能力清单)和 params。鉴权用请求头 Authorization: Bearer <API Key>,同一把 Key 可以调用全部 87 个平台,不需要为每个平台单独申请。
Booking API 怎么收费?
按次计费,¥0.01/次,从统一的 ¥ 钱包扣。一次调用一次计费,不按返回条数或页数加价;参数错误、鉴权失败和空结果都不计费。每次调用的响应里带 billing 字段,写明本次实扣多少。
Booking API 一次能返回多少条数据?
按能力不同,单次最多 100 条(逐能力上限见上方清单的「单次条数」列)。传 limit 参数控制,不传则用默认值。一次调用就返回这么多条,不需要翻页、也不会因为条数多而多收钱。
Booking API 返回哪些字段?
每个能力的返回字段都列在上方能力清单的「返回字段」列里,例如 search 返回 id、name、type、url、text、stars 等。字段名跨平台统一,换平台不用改解析代码。
可以先免费试用 Booking API 吗?
可以。注册免费,加微信领邀请码可得 ¥5 免费额度(≈500 次数据调用或 400 次 AI 调用),足够把 Booking 的 4 个能力都试一遍。无需信用卡。
开始调用 Booking API
加微信领 ¥5 免费额度 —— ≈500 次数据调用或 400 次 AI 调用,足够把 Booking 的能力全试一遍。