使用场景

查看 Facebook Marketplace 上的二手与转售价格

把 Facebook Marketplace 搜索结果转成 JSON,含标题、价格、所在地和照片,用来给二手商品定价、发现低价货源、评估本地转售市场。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Facebook Marke…lovelyjsonitems[0]"title": "Trek FX 3 hybrid bike…"price": "320""location": "Brooklyn, NY""photos": 4

如果你做二手转售、要给以旧换新估价,或想知道某件二手物品在你所在的城市值多少钱,Facebook Marketplace 上的挂牌价就是市场行情。但它们藏在一个只能手动浏览的信息流里。Lovely Router 替你读取这个信息流。发送一个 Marketplace 搜索或品类链接,就能拿到每个商品一个 JSON 对象,按商品信息条数从预付费余额中计费。用一个 API 密钥,就能从脚本、表格任务或 AI 智能体中调用。

交给你的 AI 智能体

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

查看 Facebook Marketplace 上的二手与转售价格. 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 inputs (links, keywords or accounts) and how many results you need>
01

工作原理

010203
  1. 在 Marketplace 中搜索你所在城市的该商品,或打开某个品类,然后复制地址。

  2. 设置上限后运行工具

    把链接放进 urls,连同 max_results 发送到 POST /v1/tools/facebook-marketplace/run,max_results 决定这次运行读取多少条商品信息。运行会从你的余额中预留它的最高费用。

  3. 计算价格区间

    取各条商品价格的中位数和离散程度。每周重新运行,看看价格是否出现漂移。

02

一次请求获取 Marketplace 商品信息

搜索 Facebook Marketplace在 urls 中接受 Marketplace 搜索或品类链接。上限是请求上的 max_results:

curl https://lovelyrouter.com/v1/tools/facebook-marketplace/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "urls": [
        "https://www.facebook.com/marketplace/nyc/search?query=bike"
      ]
    },
    "max_results": 20
  }'

所在地是链接的一部分,所以要为另一个市场定价,修改地址中的城市段即可。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条商品信息包含什么

字段组你会得到什么
商品商品信息的标题
价格卖家的挂牌价
所在地商品挂出的地点
照片商品信息中的照片

挂牌价不是成交价。请使用大量商品信息的中位数,而不是单条价格,并预期有些商品信息定价过高,或一直卖不出去。

04

实用配方

给以旧换新估价。

搜索你打算回收的型号,读取 100 条商品信息,并以挂牌价下四分位数附近的数字报价。

找出低于市场价的商品。

把每条商品信息的价格与同一次搜索的中位数对比,标出远低于中位数的那些。

对比不同城市。

在地址中用不同的城市段运行同一个查询,看看这件商品在哪里卖得最贵。

为转售寻找货源。

每天对你倒卖的某个型号运行一次搜索,存储商品信息,只查看新增的。

评估一个品类的规模。

统计一次搜索返回的商品信息条数和价格离散程度,判断是否值得进入。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 Facebook Marketplace 上搜索芝加哥的二手公路自行车,读取 100 条商品信息,告诉我挂牌价的中位数和最便宜的五条。把 max_results 设为 100。"

06

费用说明

按商品信息付费:启动运行时会预留它的最高费用,即每次调用费加上每条商品信息费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的商品信息付费,在开始时就被拒绝的运行不收费。

每天读取 100 条商品信息,就按每天 100 条商品信息计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
能搜索特定城市吗?+

可以。城市是 Marketplace 链接的一部分,例如示例中的 nyc 段。把你复制的链接通过 urls 传入即可。

一次运行能读取多少条商品信息?+

最多 200 条。把 max_results 设为你想要的数量。

会提供卖家的联系方式吗?+

返回结果包含标题、价格、所在地和照片。这个工具里没有任何联系方式字段。

需要 Facebook 账号吗?+

不需要。你只需发送链接和 API 密钥。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣费。不会自动续费。

要为整个品类定价?请看电商情报、旅行与房产数据和工具目录。

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

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