使用场景

在 Instagram 上追踪品牌或活动话题标签

以 JSON 获取 Instagram 话题标签下的帖子和 Reels,含文案、点赞、评论和作者,用来追踪活动、发现用户内容并观察细分领域。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Instagramlovelyjsonitems[0]"caption": "Sunday ritual #espres…"likes": 812"comments": 27"author": "beanbrothers""media": "image""tag": "espresso"

你发起了一个活动话题标签,想知道谁在使用它、这些帖子表现如何,以及哪些可以转发。在应用里搜索这个标签,只能看到几条帖子,看不到汇总数据。Lovely Router 可以批量拉取:发送话题标签页面,每条帖子返回一个 JSON 对象,按帖子数量从预付费余额中计费。用一个 API 密钥,就能从活动报表、脚本或 AI 智能体中调用。个人资料和评论数据可能识别出具体的人,因此你需要自行确保合法使用,包括遵守隐私和反垃圾信息的规定。

交给你的 AI 智能体

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

在 Instagram 上追踪品牌或活动话题标签. 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. 设置上限后运行工具

    把话题标签页面的 URL 放进 startUrls,发送到 POST /v1/tools/instagram-hashtag/run,并用 input 中的 maxItems 作为上限。用 until 只保留某个日期之后的帖子。

  3. 排序并跟进

    按点赞和评论排序,筛出最好的帖子,在转发前先署名或征得许可。

02

一次请求获取话题标签下的帖子

Instagram 话题标签帖子在 startUrls 中接受话题标签页面,返回最新的帖子。keywords 搜索的是词语而不是标签,返回热门 Reels;getReels 则把标签运行切换为只返回 Reels:

curl https://lovelyrouter.com/v1/tools/instagram-hashtag/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "startUrls": [
        "https://www.instagram.com/explore/tags/espresso/"
      ],
      "until": "2026-10-01",
      "maxItems": 50
    },
    "max_results": 50
  }'

每条帖子都包含文案、点赞、评论、作者和媒体。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条帖子包含什么

字段组你得到的内容
内容文案
互动点赞和评论
作者发布者
媒体帖子的图片或视频
04

实用配方

为活动出报告。

每周一拉取你的标签下最新的 200 条帖子。统计帖子数,汇总点赞和评论,并列出前五名。

发现用户生成内容。

把标签下的帖子按点赞排序,再联系作者,征求转发最好内容的许可。

找出谁在谈论你的领域。

把结果按作者分组,列出在你的品类标签下发帖最频繁的账号。

关注某个关键词下的热门 Reels。

传入 keywords 而不是标签,查看你计划围绕其策划内容的话题下有哪些热门 Reels。

读懂细分领域的语言。

把文案发送给模型,提取经常一起出现的短语和话题标签。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"拉取话题标签 #espresso 下最新的 100 条 Instagram 帖子,按点赞排序,列出前十名及其作者和文案。把 maxItems 和 max_results 设为 100。"

06

费用说明

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

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

07

常见问题

?
得到的是最新的帖子还是热门帖子?+

话题标签页面返回的是最新帖子。在 keywords 中搜索词语则返回热门 Reels。

可以只获取某个日期之后的帖子吗?+

可以。设置 until,就只会返回更新的帖子。

能从话题标签获取 Reels 吗?+

可以。把 getReels 设为 true,就只返回 Reels。

一次运行最多能返回多少条帖子?+

最多 500 条,通过 input 中的 maxItems 设置。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。

要规划整个活动?请看社媒监听、网红研究和工具目录。

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

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