使用场景

一次 API 调用完成竞争对手网站流量对标

以 JSON 获取任意域名列表的预估月访问量、排名、流量来源、主要国家和互动数据,用来对标竞争对手和各类网站。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Similarweblovelyjsonitems[0]"domain": "example-shop.com""monthly_visits": 2400000"global_rank": 18420"top_country": "United States""direct_share": "41%""search_share": "34%"

在向市场推介、估算竞争对手体量或决定与谁合作时,你想知道有多少人访问一个网站、他们来自哪里、又是怎么进来的。手动从仪表盘里取这些数据很慢,而且对五十个域名重复一遍几乎做不到。Lovely Router 以数据形式返回这些预估值。发送域名,每个网站返回一个 JSON 对象,按网站数从预付费余额中计费。

交给你的 AI 智能体

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

一次 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. 列出域名

    你的竞争对手、潜在客户、收购目标,或者某个品类下的所有网站,写成 example.com 这样的普通域名即可。

  2. 运行工具

    把它们放在 domains 中,连同 max_results 发送到 POST /v1/tools/website-traffic/run。运行会从你的余额中预留它的最高费用,并为每个网站返回一个对象。

  3. 对标并追踪

    在整组网站之间比较访问量、排名、来源和国家,每月重复一次,就能看出谁在增长。

02

一次请求获取网站流量

网站流量在 domains 中接受域名列表。一个域名就是一个网站,一次运行最多可覆盖 50 个:

curl https://lovelyrouter.com/v1/tools/website-traffic/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "domains": [
          "example-store.com",
          "example.com"
        ]
      },
    "max_results": 2
  }'

请把 max_results 设为你发送的域名数量。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每个网站包含什么

字段组你会得到
体量预估月访问量
位置排名
获客流量来源
受众主要国家
行为互动数据

这些是第三方数据服务给出的预估值,并非网站自己的统计数据。请用它们来比较不同网站,不要把它们当作精确的计数。

04

实用配方

估算市场规模。

运行某个品类下领先的 30 个网站,把它们的月访问量加总,看看这个受众有多大。

与竞争对手对标。

把你的网站和五个对手放进同一次运行,比较流量来源,看谁依赖搜索,谁依赖直接访问。

筛选合作伙伴或潜在客户。

从 CRM 中取一份域名列表,去掉访问量低于你门槛的,再按主要国家给其余的打分。

挑选首发国家。

看看你最接近的竞争对手的主要国家,优先为这些国家做本地化。

按月追踪增长。

为每次运行保存日期,并按域名绘制月访问量曲线,找出增长或下滑的网站。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"获取 competitors.txt 中各域名的网站流量,把 max_results 设为域名数量,给我一张表格,列出每个网站的月访问量、主要国家和最大的流量来源。"

05

与其他竞品数据搭配

06

费用说明

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

对标 50 个域名,就按 50 个网站计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
这些数字有多准确?+

它们是预估值,适合用来在网站之间做比较,不太适合当作精确的访问量。

一次运行最多能发送多少个域名?+

最多 50 个。

需要另外开通数据服务的账号吗?+

不需要。你只需发送域名和一个 API 密钥。

能看单个页面的流量吗?+

这个工具以网站为单位工作,所以请传入域名。

需要订阅吗?+

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

想更广泛地研究对手?请看广告情报、电商情报和工具目录。

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

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