X 上的品牌提及分两种:@ 了你的,你看得到;只是说出你名字的,你看不到。投诉和购买建议恰恰多在后一种里。Lovely Router 替你运行 X 自带的高级搜索。发送查询,每条推文返回一个 JSON 对象,按推文数量从预付费余额中计费。用一个 API 密钥,就能从定时脚本、Slack 机器人或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
用高级搜索运算符监控 X 上的品牌提及. 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>工作原理
写好查询
每个条目一条查询,写法和 X 的搜索框一样:带引号的品牌名、产品名、常见拼写错误,用
-from:yourhandle排除你自己的帖子,用min_faves:过滤噪音。设置上限后运行工具
把查询连同
max_results发送到POST /v1/tools/x-search/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回推文。分流重要内容
把投诉转给客服,把提问转给销售,把高互动的帖子交给负责品牌的人。保存最新一条推文的日期,下次运行就从它之后开始。
一次请求搜索 X
搜索 X(Twitter)帖子在 searchTerms 中接受查询。maxItems 是上限,queryType 决定排序:Latest、Top 或 Latest + Top:
curl https://lovelyrouter.com/v1/tools/x-search/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"searchTerms": ["\"brightloop\" -from:brightloop since:2026-10-20 lang:en"],
"maxItems": 50,
"queryType": "Latest"
},
"max_results": 50
}'Latest 按时间从新到旧返回,适合监控任务;Top 按相关性排序,不保证完整。运行超过 60 秒仍未结束时会返回 202;运行工具介绍了如何轮询。
每条推文包含什么
| 字段分组 | 包含内容 |
|---|---|
| 内容 | 推文的文本 |
| 作者 | 发帖人 |
| 互动 | 互动数据 |
| 时间 | 发布日期 |
该工具列出的运算符包括 from:、to:、-from:、since:、until:、lang:、min_faves: 和 filter:,另外还支持话题标签、@ 提及、精确短语、OR 和排除词。
实用做法
搜索你的名字,用 -from: 排除你自己的账号,并把 since: 设为昨天。每天早上把互动最高的推文发到团队频道。
用 OR 在品牌名旁加上"refund""broken""cancel"之类的词,每小时运行一次,把新命中的内容转给客服。
用 min_faves:50 搜索对手的名字,只看传播开的帖子。留意客户说希望它能做到什么。
在活动日期前后用 until: 和 since: 搜索你的话题标签,统计每天的推文数。
在查询中加上 lang:,只读某一种语言的推文,也可以传入 lang 参数。
想用大白话操作?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"搜索周一以来提到 brightloop 的 X 推文,排除我自己的帖子,按主题总结其中的投诉,并列出点赞最多的五条。把 max_results 设为 100。"
搭配其他聆听来源
X 只是人们交流的地方之一。评价、论坛和新闻可以补上其余部分:
匹配关键词、话题标签或指定账号的推文:内容、作者、互动数据、日期。
按 URL 获取 X/Twitter 帖子的回复:内容、作者、互动、日期。
X/Twitter 账号的资料:简介、粉丝、关注、认证状态与各项计数。
按搜索词或版块获取 Reddit 帖子:标题、正文、得分、评论数、作者、日期。
Google 新闻中某个搜索的新闻文章(支持运算符:"精确短语"、OR、-排除词、site:、intitle:),可限定时间范围:标题、来源、日期及发布网站上的文章链接。
x-replies读取搜索中发现的某条帖子下的回复。x-profile用来查看一位高触达发帖人是谁。reddit-search找到关于同一品牌的更长篇的讨论。google-news在推文之外补充媒体报道。
完整的跨渠道方案,请参阅社交聆听。
推文由真实的用户发布。如果你要存储或联系他们,需要自行负责合法使用这些数据,包括遵守隐私和反垃圾信息规定。
费用说明
按推文计费:开始运行时会预留最高费用,即单次调用费加上单条推文费用乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。运行失败或超时只为已交付的推文付费,开始时就被拒绝的运行不收费。
每天监控 200 条推文,按每天 200 条推文计费。没有订阅,也没有每月最低消费:最低 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今天的价格;定价列出了所有工具。
常见问题
可以使用 X 的高级搜索运算符吗?+
可以。每个搜索词都支持,包括 from:、since:、min_faves:、filter: 和 lang:。
一次运行最多能返回多少条推文?+
最多 500 条,默认 20 条。把 maxItems 和 max_results 设为你想要的数量。
可以只搜索某一个账号的帖子吗?+
可以,在查询中使用 from:handle。该工具还支持用 twitterHandles 收集某个账号的帖子。
怎样避免重复读到同样的推文?+
使用 since: 并带上上次运行的日期,同时让 queryType 保持为 Latest。再保存你读到的最新推文日期。
需要 X 账号或 API 权限吗?+
不需要。你只需发送查询和一个 API 密钥。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣减。失败的运行只为已交付的结果付费,也不会自动续费。