使用场景

研究公开 Facebook 小组成员的需求

以 JSON 读取公开 Facebook 小组的帖子,含正文、作者、互动数、评论数和日期,发现尚未满足的需求和反复出现的问题。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Facebooklovelyjsonitems[0]"group": "Home Espresso Enthusi…"text": "Grinder under 200 tha…"author": "Marcus T.""reactions": 48"comments": 63"date": "2026-10-19"

在开发某个功能或产品之前,你想读读真实的人是怎样描述他们的问题的,而在小众爱好和行业里,这些讨论就发生在 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>
01

工作原理

010203
  1. 列出小组

    复制你的买家交流的每个公开小组的链接:每次运行最多 50 个小组。

  2. 设置上限后运行工具

    把链接放进 startUrls,连同 resultsLimit 和 max_results 一起发送。运行会从你的余额中预留它的最高费用,并以 JSON 返回帖子。

  3. 找出规律

    让模型按问题或抱怨对帖子聚类,再统计数量。互动数和评论数高,说明这是许多人共有的问题。

02

一次请求获取小组帖子

获取 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;轮询方法见运行工具。

03

每个帖子包含什么

字段组你会得到什么
内容帖子的正文
作者谁发布了它
互动互动数和评论数
时间帖子的日期

小组帖子由普通用户撰写。请把文字用于研究并做汇总分析;如果你要联系成员,你有责任依法使用这些数据,包括遵守隐私和反垃圾信息规定。

04

实用配方

按出现频率给问题排序。

从五个小组拉取 200 条热门帖子(把 viewOption 设为 TOP_POSTS),让模型列出其中的问题,并给每个问题计数。

验证产品想法。

在小组的最新帖子中查找有人在寻找你打算开发的东西。统计这类需求的数量,并读读他们用的措辞。

用客户的语言写文案。

从互动数多的帖子中收集短语,用在落地页和广告里。

每周留意新问题。

按计划运行,并把 onlyPostsNewerThan 设为 7 days,这样每次运行只需为新帖子付费。

寻找内容灵感。

按评论数给帖子排序;讨论串最长的帖子,就是你的受众希望有人讲清楚的话题。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 groups.txt 中三个小组链接里最新的 300 个帖子,把它们聚类成十个最常见的问题,并为每个问题引用一个帖子。把 max_results 设为 300。"

06

费用说明

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

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

07

常见问题

?
能读取私密小组吗?+

该工具适用于公开的 Facebook 小组。数字形式的小组 URL 也可以使用。

一次运行能读取多少个小组?+

每次运行最多 50 个小组。resultsLimit 是所有小组合计的帖子总数。

能只获取最近的帖子吗?+

可以。把 onlyPostsNewerThan 设为一个日期、ISO 时间戳,或 7 days 这样的值。被过滤掉的帖子不会计费。

如果小组的帖子数少于我的上限怎么办?+

你只需为返回的帖子付费。

需要订阅吗?+

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

更多相关内容:社交聆听、网页数据提取和工具目录。

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

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