一站式全球住宿智能比价平台
简介
StayingAPI 官方出品的多平台住宿数据工具,统一 Schema 对接 Booking.com、Airbnb、Vrbo 及 Google Hotels,实现搜索、比价、评价一站式获取,助力旅行决策与差旅管理智能化。
原始描述
Complete Booking.com toolkit — search, availability, listing detail, price, cross-OTA price comparison and reviews, all in one unified schema. Install this when an agent needs broad Booking.com coverage. Powered by StayingAPI.
通过你的 Agent 添加
安装目录:booking-com-complete-toolkit/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
booking-com-full 是 StayingAPI 提供的全功能住宿数据工具包,通过单一 API 密钥即可调用六大核心能力:房源搜索(/v1/search)支持跨平台多条件筛选;实时询价(/v1/price)获取指定日期精准报价;多平台比价(/v1/price-compare)通过 Google Hotels 骨干网络聚合各 OTA 报价并自动计算最低与均价;房源详情(/v1/listing/{platform}/{id})返回标准化设施、照片、房东信息及实时价格;可用性查询(/v1/availability)提供逐日入住状态与最低连住要求;评价获取(/v1/reviews)保留原生评分体系并支持语言过滤。所有数据统一 Schema 输出,支持 Booking.com、Airbnb、Vrbo 三平台全覆盖,Google Hotels 限于搜索与比价场景。
显著优点
跨平台一致性:打破各 OTA 数据孤岛,同一数据结构对接四大平台,大幅降低多源集成成本。智能比价引擎:price-compare 自动解析 Google Hotels 报价矩阵,返回结构化 min/median 字段,无需二次计算。零成本沙箱:stay_test_ 前缀密钥永久免费,支持 fixtures 数据用于开发与演示。计费透明:失败、空结果、被拦截请求均不计费,按实际成功调用结算。MCP 原生支持:现代 MCP 客户端可通过 OAuth 2.1 + PKCE 无密钥直连,安全便捷。
潜在缺点与局限性
平台覆盖不均:Google Hotels 暂不支持房源详情与评价获取,需回退至其他平台补充数据。异步复杂性:实时抓取场景返回 202 轮询模式,需自行实现 job 状态监控与退避逻辑,增加集成复杂度。ID 依赖性强:非 StayingAPI 来源的 Vrbo ID 可能解析失败,建议严格使用 /v1/search 返回的 platformListingId。分页非统一:各上游数据源分页策略差异大,需以响应体 meta.pagination 为准,不可假设固定页码。沙箱数据限制:测试密钥返回的 fixtures 可能存在 ID、日期、人数与实际请求不符的情况,禁止用于身份断言验证。
适合的目标群体
- 差旅管理开发者:需整合多平台住宿数据的企业差旅系统、费控平台搭建者
- 旅行科技创业者:比价网站、行程规划 App、智能酒店推荐引擎的产品团队
- 数据分析师:需要标准化住宿数据进行市场研究、价格趋势分析的研究人员
- 客服自动化场景:自动查询替代人工比价、生成住宿方案的智能客服系统
常规使用风险
性能波动:实时抓取任务受目标站点响应影响,estimatedSeconds 仅为预估,极端情况下可能超时失败。速率限制:轮询过频将触发 429 限流(120 次/分钟),需实现指数退避。密钥安全:STAYINGAPI_KEY 需妥善保管,泄露可能导致配额滥用与费用损失。数据时效性:房源详情缓存 24 小时、价格缓存 1 小时,高频价格敏感场景需权衡实时性与成本。上游变更:Booking.com 等平台接口调整可能导致特定字段缺失或解析异常,需关注官方变更公告。
技能正文
name: booking-com-full description: "Complete Booking.com toolkit — search, availability, listing detail, price, cross-OTA price comparison and reviews, all in one unified schema. Install this when an agent needs broad Booking.com coverage. Powered by StayingAPI." version: "1.0.0" license: MIT-0 author: StayingAPI homepage: https://stayingapi.com repository: https://github.com/stayingapi/booking-com-skills user-invocable: true compatibility: Requires internet access to reach api.stayingapi.com. No additional runtimes or dependencies needed. required_environment_variables:
- name: STAYINGAPI_KEY prompt: Your StayingAPI key (starts with stay_) help: Free key at https://stayingapi.com/signup — no card. A stay_test_ sandbox key returns fixtures at zero cost. required_for: all API requests tags: ["booking-com", "booking-com-api", "search", "availability", "reviews", "price-comparison", "travel", "accommodation"] metadata: {"openclaw":{"emoji":"🧰","requires":{"env":["STAYINGAPI_KEY"]},"primaryEnv":"STAYINGAPI_KEY","homepage":"https://stayingapi.com"},"hermes":{"tags":["booking-com","booking-com-api","search","availability","reviews","price-comparison","travel","accommodation"],"category":"integrations"}}
Booking.com — complete toolkit
The everything skill for Booking.com: search, availability, listing detail, price, cross-OTA price comparison and reviews — one key, one schema. Install the focused skills instead when you want a minimal tool surface.
Setup
If $STAYINGAPI_KEY is not set, read references/auth-setup.md and follow it to get and store the key. A stay_test_ sandbox key works for evaluation at zero cost.
When to use this skill
DO use when the user asks:
- Any Booking.com data task — the agent picks the right call
Do NOT use when:
- You want the smallest possible tool surface — install a focused skill
Required headers
Every request needs:
- Authorization:
Bearer $STAYINGAPI_KEY - User-Agent: your agent's name (e.g.
ClaudeCode/1.0).
Base URL: https://api.stayingapi.com/v1.
Tools
GET /v1/search
GET /v1/searchDiscover properties matching a location, dates, occupancy and filters across one or more platforms. Results from every requested platform are normalized to the same Property shape and merged into a single, cursor-paginated list. This is the breadth / funnel endpoint — and the clearest demonstration of "one schema, every platform".
Key parameters:
location— Required. Place name ("Split, HR") or "lat,lng".checkIn— YYYY-MM-DD; required if checkOut given; not in the past.checkOut— YYYY-MM-DD; required if checkIn given; must be after checkIn.adults— ≥ 1.children— ≥ 0.childAges[]— Length must equal children. Coarsened for Vrbo/Airbnb.platforms[]— Drives fan-out + per-platform billing.
GET /v1/availability
Get day-by-day availability for a known listing (or a batch of listings) on one platform over a date window. Each day reports whether it is available, its minimum-night requirement, and whether check-in / check-out / booking is allowed.
Key parameters:
platform— Required. vrbo | booking | airbnb | google. Single platform (not a fan-out endpoint). Use the API value, not the brand name — "booking", not "booking-com"; "google", not "google-hotels".listingId— A single listing id on platform.listingIds[]— A batch of listing ids on platform.url— Full listing URL (alternative to an id).startDate— Required. YYYY-MM-DD; not in the past.endDate— Required. After startDate; window ≤ 365 days.
GET /v1/listing/{platform}/{id}
Full normalized detail for one listing: amenities (canonical taxonomy), photos, host, geo, ratings, and — when you pass dates — an embedded live price. The detail body is cached 24 h; any embedded live price is cached at the 1 h price TTL and composed at read time, so a stale price never rides on fresh detail.
Key parameters:
platform— Required. vrbo | booking | airbnb | google.id— Required. Platform-native listing id (case-sensitive, verbatim from source). A bare booking.com slug needs a country — without one it returns 400 needs_country (booking slugs are not globally unique).country— ISO-3166 alpha-2 (booking). Disambiguates a bare booking slug without the %2F-encoded /hotel/{cc}/{slug} id — e.g. ?country=co.checkIn— Pairs with checkOut; presence embeds a best-effort live price (may be null; the call still bills).checkOut— Must be after checkIn.adults— ≥ 1 (only used with dates).
GET /v1/price
Quote one listing for specific dates and occupancy. Pass the platform-native platformListingId returned by /v1/search — numeric on Airbnb and Vrbo, a slug string on Booking.com and Google (e.g. "abramovic2") — or a full listing URL. On a live key the response is always a real numeric price or a typed error — never a wrong property's price. Note this guarantee covers live calls: sandbox (stay_test_) responses are canned fixtures and may echo a different listing, dates or occupancy than you requested, so do not assert identity against a sandbox response.
Key parameters:
platform— Required. vrbo | booking | airbnb | google.listingId— Required. Platform-native id from /v1/search platformListingId — numeric (Airbnb/Vrbo) or a slug string (Booking.com/Google). Or pass a url.checkIn— Required. YYYY-MM-DD; not in the past.checkOut— Required. Must be after checkIn.adults— ≥ 1.children— ≥ 0.
GET /v1/price-compare
Rate-shop one property in a single call, resolved through the Google Hotels backbone. The response carries the offers the backbone exposes for that property plus StayingAPI-computed min and median over those offers as first-class fields, so you can read the cheapest rate without re-deriving it. Coverage varies by property: some resolve to several OTA offers, others to a single aggregated-lowest offer (then offers has one entry, min equals median, and the entry may be a direct-supplier rate rather than an OTA). Read offers.length before presenting a result as a multi-platform comparison — the schema does not guarantee more than one.
Key parameters:
name— Property name to resolve.googleHotelId— Precise Google Hotels id.location— Disambiguating place / "lat,lng".checkIn— Required. YYYY-MM-DD; not in the past.checkOut— Required. Must be after checkIn.adults— ≥ 1.
GET /v1/reviews
Normalized, paginated reviews for one listing on one platform. Native rating scales are preserved and echoed alongside each rating (TripAdvisor/Airbnb/Vrbo use 5; Booking.com/Expedia/Hotels.com use 10) — never silently rescaled.
Key parameters:
platform— Required. vrbo | booking | airbnb. Note google is NOT enabled for reviews (400 platform_not_enabled). Use the API value, not the brand name — "booking", not "booking-com".listingId— Listing id on platform.url— Full listing URL.limit— 1–100.cursor— Opaque base64 cursor.language— ISO-639-1 filter.
Filter results to Booking.com by passing
platforms=bookingto the search call.
MCP (no key pasted into the agent)
On an MCP-capable runtime, connect https://mcp.stayingapi.com/mcp (OAuth 2.1 + PKCE) and use: search_stays, check_availability, get_listing, get_price, compare_prices, get_reviews.
Platform × endpoint support
Not every endpoint supports every platform. Verified:
| platform | search | availability | price | price-compare | listing | reviews |
|---|---|---|---|---|---|---|
airbnb |
yes | yes | yes | yes | yes | yes |
booking |
yes | yes | yes | yes | yes | yes |
vrbo |
yes | yes | yes | yes | yes | yes |
google |
yes | yes | yes | yes | no | no |
GET /v1/listing/google/… and GET /v1/reviews?platform=google return
400 platform_not_enabled ("google is not enabled for this endpoint"). Use booking,
airbnb or vrbo for listing detail and reviews; use google for search, price and
cross-OTA price-compare.
The cross-OTA advantage
StayingAPI is cross-platform: Booking.com data comes back in the same unified schema as Airbnb, Vrbo and Google Hotels, so one integration covers them all. /v1/price-compare resolves a property through the Google Hotels backbone and returns the offers it exposes plus a StayingAPI-computed min and median over those offers, as first-class fields.
Coverage varies by property and by what the backbone returns: some properties come back with several OTA offers, others with a single aggregated-lowest offer (in which case
minequalsmedianandoffershas one entry, sometimes a direct-supplier rate rather than an OTA). Readoffers.lengthbefore describing a result as a multi-platform comparison.
Async & partial failures
A live call that has to scrape returns 202 with data.jobId, data.pollUrl and
data.estimatedSeconds (the 202 itself charges 0). Poll GET /v1/jobs/{jobId} (free)
until data.status is TERMINAL — completed or failed.
completed→ the payload is atdata.result(the same schema the sync call returns;dataitself is just{jobId, result, status}).metacarriespartial,platformResults[]andwarnings[]. A completed job may still return an empty result (data.result: []) — the reason is inmeta.warnings[](e.g.no_results), and empty results charge 0.failed→ HTTP is still 200, not an HTTP error. The failure is nested atdata.error(code,type,message,retryable). Detect it withdata.status === "failed", not a top-levelerror.creditsChargedis 0, andmetacarries only{requestId, creditsCharged, platforms}— do not readpartial,platformResultsorwarningson a failed job.
Pace your polling: honour the Retry-After header, back off between attempts, and cap the
number of attempts. A tight loop hits 429 rate_limit_exceeded (120 requests/minute).
Known limitations
- Pagination:
limit/cursor are accepted where documented, but availability depends on the endpoint and the upstream source — treat meta.pagination as authoritative and stop when hasMore is false or nextCursor is null.
- Externally-sourced ids: a Vrbo id obtained somewhere other than
/v1/search may not resolve upstream and can produce a failed job (all_actors_failed). Prefer ids from /v1/search (platformListingId).
- Platform gaps: see the support matrix above —
google has no listing or reviews endpoint.
Credits
limit/cursor are accepted where documented, but availability depends on the endpoint and the upstream source — treat meta.pagination as authoritative and stop when hasMore is false or nextCursor is null./v1/search may not resolve upstream and can produce a failed job (all_actors_failed). Prefer ids from /v1/search (platformListingId).google has no listing or reviews endpoint.Number-free by design — failed, empty and blocked calls are never billed, and stay_test_ sandbox calls are always free. Current costs: https://stayingapi.com/pricing · full contract: https://api.stayingapi.com/openapi.json.
Trademark
StayingAPI is an independent service and is not affiliated with, endorsed by, or sponsored by Booking.com. Booking.com is a trademark of its respective owner.
Get your free key → https://stayingapi.com/signup · Docs: https://stayingapi.com/docs
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。