如果你的品牌面向中国市场,或者在中国被人谈论,其中很多讨论都发生在微博上,而且是用中文,从海外也很难搜索这个应用。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>工作原理
选择关键词
列出你的品牌、产品名称和常见写法,包括中文和英文。中文查询会带出本土的讨论;英文或品牌名查询则会带出国际上的提及。
设置上限后运行工具
把输入连同
max_results发送到POST /v1/tools/weibo-search/run。把operation设为searchWeibo,并提供keyword和max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回帖子。阅读并跟踪
连同日期存储结果。让模型把它们翻译,并按主题和语气分组,同时观察数量如何变化。
一次请求搜索微博
搜索微博接受 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;轮询方法见运行工具。
每条结果包含什么
| 字段组 | 你会得到 |
|---|---|
| 帖子 | 与你的关键词匹配的微博帖子 |
| 作者 | 一个用户 ID,可用于资料、粉丝和关注相关的操作 |
文本保持发布时的语言,大多是中文。可以在同一个任务里让模型完成翻译和分类。
实用配方
每天搜索你的中文和英文品牌名,存储帖子,并在数量激增时发出提醒。
发布后的一周内搜索产品名称,让模型总结主要的好评和抱怨。
从搜索结果中取出用户 ID,用 userDetail 操作读取他们的资料。
对两个相互竞争的品牌运行同样的任务,比较讨论量和话题。
搜索活动话题标签或关键词,在活动期间持续跟踪帖子。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在微博上搜索 Tesla,获取 3 页,把每条帖子翻译成英文,并告诉我主要话题。将 max_results 设为 42。"
与其他中国平台搭配
微博只是其中一种声音。其他中国平台则呈现评价、视频和购物方面的讨论:
按关键词获取微博帖子。
按关键词获取小红书笔记。
按关键词获取抖音视频。
匹配关键词、话题标签或指定账号的推文:内容、作者、互动数据、日期。
按搜索词或版块获取 Reddit 帖子:标题、正文、得分、评论数、作者、日期。
xiaohongshu-search搜索小红书笔记,产品评价在这里很常见。douyin-search搜索抖音上的短视频。x-search覆盖同一品牌在 X 上的情况。reddit-search覆盖英文讨论。
费用说明
按结果付费:启动运行时会预留它的最高费用,即每次调用费加上每条结果费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的结果付费,在开始时就被拒绝的运行不收费。
每天获取 100 条结果,就按每天 100 条结果计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
可以用英文搜索微博吗?+
可以。关键词可以是中文、英文或两者混用。中文查询会带出本土的创作者,英文或品牌名查询则会带出国际上的提及。
每页会返回多少条帖子?+
搜索微博每页大约 14 条帖子。maxPages 设置要抓取的页数。
一次运行最多能返回多少条结果?+
最多 100 条。
可以查看某一个用户,而不是按关键词搜索吗?+
可以。其他操作可以读取指定 ID 的帖子、用户资料,以及用户的粉丝或关注列表,需要使用 userId。
会翻译帖子吗?+
不会。文本按发布时的样子返回。请在你自己的流程里用模型翻译。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。