使用场景

追踪大家在微博上发布的有关你品牌的内容

按品牌或产品关键词搜索微博,以 JSON 获取帖子,用来关注品牌提及、发现活跃的声音,了解中国用户怎么说。按结果计费。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Weibolovelyjsonitems[0]"keyword": "Tesla""text": "新车体验分享 ...""userId": "2760523085""operation": "searchWeibo"

如果你的品牌面向中国市场,或者在中国被人谈论,其中很多讨论都发生在微博上,而且是用中文,从海外也很难搜索这个应用。Lovely Router 替你搜索微博:发送一个关键词,每条结果返回一个 JSON 对象,按结果数量从预付费余额中计费。用一个 API 密钥,就能从监控脚本、报告任务或 AI 智能体中调用。

交给你的 AI 智能体

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

追踪大家在微博上发布的有关你品牌的内容. 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. 设置上限后运行工具

    把输入连同 max_results 发送到 POST /v1/tools/weibo-search/run。把 operation 设为 searchWeibo,并提供 keyword 和 max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回帖子。

  3. 阅读并跟踪

    连同日期存储结果。让模型把它们翻译,并按主题和语气分组,同时观察数量如何变化。

02

一次请求搜索微博

搜索微博接受 operation(这里是 searchWeibo)、keyword,以及用来设置抓取页数的 maxPages。每页大约有 14 条帖子。max_results 限制你需要付费的数量:

curl https://lovelyrouter.com/v1/tools/weibo-search/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "operation": "searchWeibo",
      "keyword": "北京",
      "maxPages": 1
    },
    "max_results": 14
  }'

同一个工具还有其他操作,可用于读取单条帖子、用户资料,以及用户的粉丝或关注列表;每次运行选择一个操作。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条结果包含什么

字段组你会得到
帖子与你的关键词匹配的微博帖子
作者一个用户 ID,可用于资料、粉丝和关注相关的操作

文本保持发布时的语言,大多是中文。可以在同一个任务里让模型完成翻译和分类。

04

实用配方

关注品牌提及。

每天搜索你的中文和英文品牌名,存储帖子,并在数量激增时发出提醒。

了解新品发布后的反应。

发布后的一周内搜索产品名称,让模型总结主要的好评和抱怨。

发现活跃作者。

从搜索结果中取出用户 ID,用 userDetail 操作读取他们的资料。

与竞品对比。

对两个相互竞争的品牌运行同样的任务,比较讨论量和话题。

监听一次营销活动。

搜索活动话题标签或关键词,在活动期间持续跟踪帖子。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在微博上搜索 Tesla,获取 3 页,把每条帖子翻译成英文,并告诉我主要话题。将 max_results 设为 42。"

06

费用说明

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

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

07

常见问题

?
可以用英文搜索微博吗?+

可以。关键词可以是中文、英文或两者混用。中文查询会带出本土的创作者,英文或品牌名查询则会带出国际上的提及。

每页会返回多少条帖子?+

搜索微博每页大约 14 条帖子。maxPages 设置要抓取的页数。

一次运行最多能返回多少条结果?+

最多 100 条。

可以查看某一个用户,而不是按关键词搜索吗?+

可以。其他操作可以读取指定 ID 的帖子、用户资料,以及用户的粉丝或关注列表,需要使用 userId。

会翻译帖子吗?+

不会。文本按发布时的样子返回。请在你自己的流程里用模型翻译。

需要订阅吗?+

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

要同时监听多个社交网络?请看社交聆听、中国社交媒体数据,以及其余的工具目录。

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

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