使用场景

对标竞品 Facebook 主页的互动表现

以 JSON 获取公开 Facebook 主页的帖子,含正文、互动数、评论数、分享数和日期,对比你和对手哪类内容表现更好。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Facebooklovelyjsonitems[0]"page": "Northpeak Coffee""text": "New single origin is …"reactions": 1240"comments": 86"shares": 41"date": "2026-10-22"

你每周发三次帖子,却不知道 400 个互动算不算好。答案取决于同行竞品在类似帖子上能拿到多少,而 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. 选择主页

    你自己的主页,以及你想对比的五到十个竞品或同行的主页。

  2. 设置上限后运行工具

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

  3. 对比数据

    按主页和按月份计算每个帖子的平均互动数、评论数和分享数,并阅读表现最好的帖子。

02

一次请求获取 Facebook 主页帖子

获取 Facebook 主页帖子在 urls 中接受公开主页或小组链接。count 是帖子总数:

curl https://lovelyrouter.com/v1/tools/facebook-posts/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "urls": [
        "https://www.facebook.com/humansofnewyork/"
      ],
      "count": 10
    },
    "max_results": 10
  }'

scrapeUntil 只保留比某个日期(格式 YYYY-MM-DD)更新的帖子,sortType 可选 most_relevant、recent_activity 或 new_posts。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每个帖子包含什么

字段组你会得到什么
内容帖子正文和照片
互动互动数、评论数和分享数
时间发布日期

各主页的受众规模不同,所以请把每个帖子的互动数与该主页自己的平均值比较,而不是直接比较不同主页的原始数字。

04

实用配方

设定切合实际的基准。

从八个同行的主页各拉取最近 50 个帖子,计算每个帖子互动数和分享数的中位数,再与你自己的主页对比。

找出表现好的形式。

按分享数给竞品的帖子排序,让模型总结排名前十的帖子有什么共同点。

发现营销活动。

每周运行一次,把 scrapeUntil 设为上次运行的日期,看看对手的发帖频率或互动数是否突然上升。

规划内容日历。

按星期几对帖子分组,看同行在什么时候获得的互动最多。

向客户汇报。

每月对同样的主页运行一次,为代理商报告制作对比表格。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 pages.txt 中六个 Facebook 主页各自最近的 30 个帖子,给我一张表,列出每个主页的互动数、评论数和分享数的中位数。把 max_results 设为 180。"

06

费用说明

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

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

07

常见问题

?
能读取小组的帖子吗?+

可以,该工具在 urls 中接受主页或小组链接。小组还有专用工具:facebook-groups。

能按日期限制吗?+

可以。把 scrapeUntil 设为 YYYY-MM-DD 格式的日期,就只会返回更新的帖子。

互动数据包含什么?+

每个帖子的互动数、评论数和分享数。

需要 Facebook 账号吗?+

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

需要订阅吗?+

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

更多相关内容:社交聆听、网红研究和工具目录。

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

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