如果你做二手转售、要给以旧换新估价,或想知道某件二手物品在你所在的城市值多少钱,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>工作原理
构建搜索链接
在 Marketplace 中搜索你所在城市的该商品,或打开某个品类,然后复制地址。
设置上限后运行工具
把链接放进
urls,连同max_results发送到POST /v1/tools/facebook-marketplace/run,max_results决定这次运行读取多少条商品信息。运行会从你的余额中预留它的最高费用。计算价格区间
取各条商品价格的中位数和离散程度。每周重新运行,看看价格是否出现漂移。
一次请求获取 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;轮询方法见运行工具。
每条商品信息包含什么
| 字段组 | 你会得到什么 |
|---|---|
| 商品 | 商品信息的标题 |
| 价格 | 卖家的挂牌价 |
| 所在地 | 商品挂出的地点 |
| 照片 | 商品信息中的照片 |
挂牌价不是成交价。请使用大量商品信息的中位数,而不是单条价格,并预期有些商品信息定价过高,或一直卖不出去。
实用配方
搜索你打算回收的型号,读取 100 条商品信息,并以挂牌价下四分位数附近的数字报价。
把每条商品信息的价格与同一次搜索的中位数对比,标出远低于中位数的那些。
在地址中用不同的城市段运行同一个查询,看看这件商品在哪里卖得最贵。
每天对你倒卖的某个型号运行一次搜索,存储商品信息,只查看新增的。
统计一次搜索返回的商品信息条数和价格离散程度,判断是否值得进入。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 Facebook Marketplace 上搜索芝加哥的二手公路自行车,读取 100 条商品信息,告诉我挂牌价的中位数和最便宜的五条。把 max_results 设为 100。"
搭配其他价格来源
二手挂牌价要放在实际成交价和全新价格旁边看才有意义:
Facebook Marketplace 搜索或分类页的商品:标题、价格、位置、图片。
商品在 eBay 上的实际成交情况:成交价、运费、成色、结束日期。适合价格调研与估值。
按关键词获取 eBay 商品:价格、成色、卖家、运费。
ebay-sold显示商品的实际成交价。ebay-listings列出同一型号当前在 eBay 上的报价。
完整的工作流程请看电商情报。
费用说明
按商品信息付费:启动运行时会预留它的最高费用,即每次调用费加上每条商品信息费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的商品信息付费,在开始时就被拒绝的运行不收费。
每天读取 100 条商品信息,就按每天 100 条商品信息计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。