使用场景

酒店数据 API:
附带 Airbnb、Zillow 和航班数据

获取 Booking.com 酒店价格和评分、Airbnb 房源、Tripadvisor 地点、Zillow 房产以及 Google Flights 机票价格,以 JSON 提供给你的应用或智能体。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Booking.comAirbnbTripadvisorZillowGoogle Flightslovelyjsonitems[0]"name": "Casa del Mar""city": "Lisbon""rating": 9.1"nightly": 142"beds": 2"reviews": 1204

酒店比价、租赁市场调研、行程规划智能体和房产筛选,都从同一件事开始:在你选定的地点和日期,拿到带价格的最新房源或商品信息。Lovely Router 以 JSON 返回来自 Booking.com、Airbnb、Tripadvisor、Zillow 和 Google Flights 的数据,相当于一个同时覆盖酒店、房产和机票价格的数据接口。按返回的酒店、房源或地点付费,从一个预付费余额中扣除;你可以在代码中调用这些工具,也可以让 AI 智能体通过 MCP 调用。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

Get hotel prices and review scores from Booking.com, Airbnb stays, Tripadvisor places, Zillow homes and Google Flights fares. Use the Lovely Router data tools: each returns JSON and is billed per result.

- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <the destinations, dates, budget and what to compare>
01

工作原理

010203
  1. 选择地点和日期

    酒店用目的地,Airbnb 用带日期的搜索 URL,Tripadvisor 用城市,Zillow 用邮政编码,航班用航线。

  2. 设置上限后运行工具

    把输入连同 max_results 发送到 POST /v1/tools/{id}/run。运行会预留它的最高费用,结束后按实际返回的结果结算。

  3. 对比并重复运行

    把价格连同采集日期一起保存,然后按计划定时重新运行,持续跟踪房价、租金或机票价格的变化。

02

一次请求获取酒店价格

Booking.com 酒店会按你的日期搜索某个目的地,并返回每家酒店及其整段住宿的价格。下面这次运行查询里斯本的 20 家酒店,住五晚,两位成人,以欧元计价:

curl https://lovelyrouter.com/v1/tools/booking-hotels/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "search": "Lisbon",
      "checkin": "2026-11-09",
      "checkout": "2026-11-14",
      "adults": 2,
      "currency": "EUR"
    },
    "max_results": 20
  }'

items 中的每家酒店都包含名称、整段住宿价格、评分、星级、地址以及是否支持免费取消。如果不填 checkin,工具会按 30 天后的一晚计价。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

工具一览

工具你发送的内容每条结果包含
booking-hotelssearch、checkin、checkout、adults、currency名称、整段住宿价格、评分、星级、地址、免费取消
booking-reviews酒店的 startUrls、sortReviewsBy、reviewScores评分、好评、差评、旅客类型、日期
airbnb-listingsurls:带日期的 Airbnb 搜索 URL(也可以用地名)整段住宿价格和每晚价格、评分、评论、房东、设施、房屋守则、照片
tripadvisor-placesquery(地点或关键词)、includeHotels、includeRestaurants该地点的一家酒店、餐厅或景点
zillow-listingslocations(邮政编码)、operation(buy、rent 或 sold)、minPrice、maxPrice价格、卧室数、卫生间数、居住面积、地址、Zestimate 估价
google-flightssearches:出发地、目的地、日期(IATA 代码),以及 adults、cabinClass、maxStops航空公司、时间、经停、飞行时长、价格
04

实用配方

酒店竞品比价。

每天早上针对你所在的城市和你在售的日期运行 booking-hotels,跟踪竞争对手酒店的整段住宿价格。再加上 booking-reviews 并设置 "sortReviewsBy": "f_recent_desc",看看他们的住客这个月喜欢和不满意什么。

酒店还是短租?

用 https://www.airbnb.com/s/Lisbon/homes?checkin=2026-11-09&checkout=2026-11-14&adults=2 运行 airbnb-listings,把每晚价格和评分与同一日期的 Booking.com 酒店进行对比。

评估一个街区。

对邮政编码 78701 运行三次 zillow-listings,operation 分别设为 buy、rent 和 sold,比较挂牌价、近期成交价以及按居住面积计算的租金。每套房产都附带 Zestimate 估价。

规划行程。

用 google-flights 和 "searches": [{"origin": "LAX", "destination": "JFK", "departureDate": "2026-11-04", "returnDate": "2026-11-09"}] 查询机票价格,再用 booking-hotels 查找同一日期的酒店,用 tripadvisor-places 查找当地的游玩项目。

制作城市指南。

用 "query": "Chicago" 和 "includeRestaurants": true 运行 tripadvisor-places,列出酒店、餐厅和景点,再用 Tripadvisor 评论拉取你要推荐的那些地点的评论。

连接了 MCP 服务器的智能体,只需在 Claude Code 或 Cursor 中输入一条提示就能完成同样的工作:"查找从 LAX 到 JFK 的往返航班,11 月 4 日出发、11 月 9 日返回,以及这几天 Midtown 每晚 300 美元以内评分最高的五家酒店。两者都用表格展示,每次运行都设置 max_results。"

05

费用说明

每个工具按结果计费:一家酒店、一条房源、一个地点、一条评论或一次航班搜索,设有每次调用费的工具另收该费用;上方卡片显示的是当前价格。启动运行时会预留它的最高费用,即每次调用费加上每条结果费乘以 max_results,结束后按实际返回的结果结算。失败或超时的运行只为已交付的结果付费,在开始时就被拒绝的运行不收费。

没有订阅,也没有最短合约期。最低充值 $5,如果智能体或你的代码要对结果做摘要,模型调用也从同一个余额中支付。所有工具的价格见价格页面。

06

常见问题

?
酒店数据包含我所选日期的价格吗?+

包含。作为酒店数据 API,booking-hotels 工具接受入住和退房日期以及成人人数,并返回这段住宿的价格。如果没有入住日期,它会按 30 天后的一晚计价。

酒店价格可以用哪些币种显示?+

booking-hotels 工具支持从 20 种币种中选择一种,例如 USD、EUR、GBP、JPY、CNY 或 AUD。Google Flights 的价格支持任意三字母币种代码。

除了在售房产,还能获取 Zillow 的出租房源和近期成交房产吗?+

可以。把 operation 从 buy 改为 rent 或 sold 即可。对于出租房源,minPrice 和 maxPrice 按周计算。

如何在 Airbnb 上搜索特定日期?+

传入一个包含日期和人数的 Airbnb 搜索 URL,例如 /s/Lisbon/homes?checkin=…&checkout=…&adults=2。直接用地名也可以。每条房源都会返回整段住宿价格和每晚价格。

能通过 API 预订酒店或机票吗?+

不能。这些工具读取的是公开的房源和价格信息,不会进行预订。需要点击和填写表单的网页任务,请看浏览器智能体。

有美国以外的房地产数据吗?+

Zillow 工具按美国邮政编码搜索。对于其他地区的住宿,Booking.com、Airbnb 和 Tripadvisor 按地名搜索,所以只要是这些网站上能搜到的城市或地区都可以。

更多网站的住客评论,请看评论监测;把这些工具与网页搜索结合使用的智能体,请看研究智能体。

一个预付费密钥,搞定模型、数据和智能体

无需订阅。充值后按需使用,每笔费用都能在日志中查看。