在向市场推介、估算竞争对手体量或决定与谁合作时,你想知道有多少人访问一个网站、他们来自哪里、又是怎么进来的。手动从仪表盘里取这些数据很慢,而且对五十个域名重复一遍几乎做不到。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>工作原理
列出域名
你的竞争对手、潜在客户、收购目标,或者某个品类下的所有网站,写成
example.com这样的普通域名即可。运行工具
把它们放在
domains中,连同max_results发送到POST /v1/tools/website-traffic/run。运行会从你的余额中预留它的最高费用,并为每个网站返回一个对象。对标并追踪
在整组网站之间比较访问量、排名、来源和国家,每月重复一次,就能看出谁在增长。
一次请求获取网站流量
网站流量在 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;轮询方法见运行工具。
每个网站包含什么
| 字段组 | 你会得到 |
|---|---|
| 体量 | 预估月访问量 |
| 位置 | 排名 |
| 获客 | 流量来源 |
| 受众 | 主要国家 |
| 行为 | 互动数据 |
这些是第三方数据服务给出的预估值,并非网站自己的统计数据。请用它们来比较不同网站,不要把它们当作精确的计数。
实用配方
运行某个品类下领先的 30 个网站,把它们的月访问量加总,看看这个受众有多大。
把你的网站和五个对手放进同一次运行,比较流量来源,看谁依赖搜索,谁依赖直接访问。
从 CRM 中取一份域名列表,去掉访问量低于你门槛的,再按主要国家给其余的打分。
看看你最接近的竞争对手的主要国家,优先为这些国家做本地化。
为每次运行保存日期,并按域名绘制月访问量曲线,找出增长或下滑的网站。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"获取 competitors.txt 中各域名的网站流量,把 max_results 设为域名数量,给我一张表格,列出每个网站的月访问量、主要国家和最大的流量来源。"
与其他竞品数据搭配
流量告诉你一个网站有多大,下面这些则告诉你它拿这些流量做了什么:
来自 Similarweb 的网站流量估算:月访问量、排名、流量来源、主要国家、用户参与度。
哪些网站在给任意网站或结账页带来流量:列出过去六个月的全部引荐来源,按访问量排序,附带每个来源的每月访问量、占比、变化、新增来源、全球排名和类别。运行结果的 report 另含该站每月的引荐访问总量。
Google 广告透明度中心中某广告主的广告:形式、文案、投放日期、地区。
LinkedIn 公司主页:简介、行业、规模、总部、网站、关注者。
Google 搜索结果页:自然结果、广告、“相关问题”和相关搜索。一条结果 = 一个结果页(约 10 条自然链接)。
google-ads-transparency显示一家公司投放的 Google 广告。linkedin-company补充公司规模和主页信息。google-search显示一个网站在搜索中的排名词。site-referrals列出给每个域名带来访客的网站,按访问量排序;见查看谁在给网站带来流量。
想对同样的竞争对手做广告和创意研究,请看广告情报。
费用说明
按网站付费:启动运行时会预留它的最高费用,即每次调用费加上每个网站费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的网站付费,在开始时就被拒绝的运行不收费。
对标 50 个域名,就按 50 个网站计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。