在开发某个功能或产品之前,你想读读真实的人是怎样描述他们的问题的,而在小众爱好和行业里,这些讨论就发生在 Facebook 小组中。没有人能每周翻遍五十个小组。Lovely Router 替你读取。发送公开小组链接,就能拿到每个帖子一个 JSON 对象,按帖子数从预付费余额中计费。用一个 API 密钥,就能从脚本或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
研究公开 Facebook 小组成员的需求. 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>工作原理
列出小组
复制你的买家交流的每个公开小组的链接:每次运行最多 50 个小组。
设置上限后运行工具
把链接放进
startUrls,连同resultsLimit和max_results一起发送。运行会从你的余额中预留它的最高费用,并以 JSON 返回帖子。找出规律
让模型按问题或抱怨对帖子聚类,再统计数量。互动数和评论数高,说明这是许多人共有的问题。
一次请求获取小组帖子
获取 Facebook 小组帖子在 startUrls 中接受公开小组链接。resultsLimit 是所有小组合计的帖子总数:
curl https://lovelyrouter.com/v1/tools/facebook-groups/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"startUrls": [
{
"url": "https://www.facebook.com/groups/874728723021553"
}
],
"resultsLimit": 3
},
"max_results": 3
}'viewOption 用于选择排序方式(CHRONOLOGICAL、RECENT_ACTIVITY 或 TOP_POSTS),onlyPostsNewerThan 则只保留较新的帖子。被过滤掉的帖子不会计费。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每个帖子包含什么
| 字段组 | 你会得到什么 |
|---|---|
| 内容 | 帖子的正文 |
| 作者 | 谁发布了它 |
| 互动 | 互动数和评论数 |
| 时间 | 帖子的日期 |
小组帖子由普通用户撰写。请把文字用于研究并做汇总分析;如果你要联系成员,你有责任依法使用这些数据,包括遵守隐私和反垃圾信息规定。
实用配方
从五个小组拉取 200 条热门帖子(把 viewOption 设为 TOP_POSTS),让模型列出其中的问题,并给每个问题计数。
在小组的最新帖子中查找有人在寻找你打算开发的东西。统计这类需求的数量,并读读他们用的措辞。
从互动数多的帖子中收集短语,用在落地页和广告里。
按计划运行,并把 onlyPostsNewerThan 设为 7 days,这样每次运行只需为新帖子付费。
按评论数给帖子排序;讨论串最长的帖子,就是你的受众希望有人讲清楚的话题。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 groups.txt 中三个小组链接里最新的 300 个帖子,把它们聚类成十个最常见的问题,并为每个问题引用一个帖子。把 max_results 设为 300。"
搭配其他社区来源
Facebook 小组只是人们交流的地方之一。可以与下列来源对照:
公开 Facebook 群组的帖子:内容、作者、表情回应、评论数、日期。
按 URL 获取公开 Facebook 帖子或 Reels 的评论。
公开 Facebook 主页的帖子:内容、表情回应、评论与分享数、媒体。
按搜索词或版块获取 Reddit 帖子:标题、正文、得分、评论数、作者、日期。
按 URL 获取 Reddit 帖子及其评论。
facebook-comments读取你想深入研究的某个小组帖子下的评论讨论串。facebook-posts读取公开主页(而非小组)的帖子。reddit-search在 Reddit 上找到同类的问题。reddit-comments读取 Reddit 讨论串中的回复。
更广泛的任务请看社交聆听。
费用说明
按帖子付费:启动运行时会预留它的最高费用,即每次调用费加上每个帖子费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的帖子付费,在开始时就被拒绝的运行不收费。
每周读取 200 个帖子,就按每周 200 个帖子计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。