使用场景

用高级搜索运算符监控 X 上的品牌提及

运行 X(Twitter)高级搜索查询,以 JSON 获取匹配的推文,含文本、作者、互动数据和日期,用于品牌、产品和竞品监控。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
X (Twitter)lovelyjsonitems[0]"text": "Switched our alerts t…"author": "@ops_tomas""likes": 212"date": "2026-10-25""lang": "en"

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>
01

工作原理

010203
  1. 写好查询

    每个条目一条查询,写法和 X 的搜索框一样:带引号的品牌名、产品名、常见拼写错误,用 -from:yourhandle 排除你自己的帖子,用 min_faves: 过滤噪音。

  2. 设置上限后运行工具

    把查询连同 max_results 发送到 POST /v1/tools/x-search/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回推文。

  3. 分流重要内容

    把投诉转给客服,把提问转给销售,把高互动的帖子交给负责品牌的人。保存最新一条推文的日期,下次运行就从它之后开始。

02

一次请求搜索 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;运行工具介绍了如何轮询。

03

每条推文包含什么

字段分组包含内容
内容推文的文本
作者发帖人
互动互动数据
时间发布日期

该工具列出的运算符包括 from:、to:、-from:、since:、until:、lang:、min_faves: 和 filter:,另外还支持话题标签、@ 提及、精确短语、OR 和排除词。

04

实用做法

每日品牌摘要。

搜索你的名字,用 -from: 排除你自己的账号,并把 since: 设为昨天。每天早上把互动最高的推文发到团队频道。

投诉提醒。

用 OR 在品牌名旁加上"refund""broken""cancel"之类的词,每小时运行一次,把新命中的内容转给客服。

竞品观察。

用 min_faves:50 搜索对手的名字,只看传播开的帖子。留意客户说希望它能做到什么。

活动话题标签跟踪。

在活动日期前后用 until: 和 since: 搜索你的话题标签,统计每天的推文数。

按语言聆听。

在查询中加上 lang:,只读某一种语言的推文,也可以传入 lang 参数。

想用大白话操作?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"搜索周一以来提到 brightloop 的 X 推文,排除我自己的帖子,按主题总结其中的投诉,并列出点赞最多的五条。把 max_results 设为 100。"

06

费用说明

按推文计费:开始运行时会预留最高费用,即单次调用费加上单条推文费用乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。运行失败或超时只为已交付的推文付费,开始时就被拒绝的运行不收费。

每天监控 200 条推文,按每天 200 条推文计费。没有订阅,也没有每月最低消费:最低 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今天的价格;定价列出了所有工具。

07

常见问题

?
可以使用 X 的高级搜索运算符吗?+

可以。每个搜索词都支持,包括 from:、since:、min_faves:、filter: 和 lang:。

一次运行最多能返回多少条推文?+

最多 500 条,默认 20 条。把 maxItems 和 max_results 设为你想要的数量。

可以只搜索某一个账号的帖子吗?+

可以,在查询中使用 from:handle。该工具还支持用 twitterHandles 收集某个账号的帖子。

怎样避免重复读到同样的推文?+

使用 since: 并带上上次运行的日期,同时让 queryType 保持为 Latest。再保存你读到的最新推文日期。

需要 X 账号或 API 权限吗?+

不需要。你只需发送查询和一个 API 密钥。

需要订阅吗?+

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

要跟踪不止一个渠道?请参阅社交聆听、网红调研以及工具目录中的其他内容。

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

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