你手上有一份公司名单,也许来自某个目录或地图搜索,但每家公司你只有一个网站。联系方式藏在联系页面、页脚或关于我们页面里,逐个打开,每家公司都要花上几分钟。Lovely Router 替你抓取这些网站:发送网站链接,每个网站返回一个合并了联系方式的 JSON 对象,按网站数量从预付费余额中计费。用一个 API 密钥,就能从脚本、CRM 导入流程或 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>工作原理
收集网站
整理出你想联系的公司的网站链接:目录导出的数据、地图搜索得到的名单,或你自己的 CRM。
设置上限后运行工具
把输入连同
max_results发送到POST /v1/tools/website-contacts/run。链接放在startUrls中,并设置max_results。运行会从你的余额中预留它的最高费用,并为每个网站返回一个对象。写回你的名单
按网站把每条结果对应到相应的公司,保存邮箱、电话和社交媒体链接,并在发送之前先验证邮箱。
一次请求从网站获取联系方式
查找网站上的邮箱和联系方式在 startUrls 中接受一组起始页面。一个网站就是一条结果:最多抓取它的 5 个页面,并合并其中的联系方式。maxDepth 设置距起始页面最多可以跟进几层链接,sameDomain 让抓取始终停留在该网站内:
curl https://lovelyrouter.com/v1/tools/website-contacts/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"startUrls": [
{
"url": "https://example.com"
}
],
"maxDepth": 1
},
"max_results": 1
}'一次运行最多读取 50 个网站;把 max_results 设为你发送的网站数量。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每个网站包含什么
| 字段组 | 你会得到 |
|---|---|
| 邮箱 | 在网站上找到的邮箱地址 |
| 电话号码 | 在网站上找到的电话号码 |
| 社交媒体主页 | 公司社交媒体主页的链接 |
| 合并 | 最多 5 个已抓取页面中的联系方式,合并为每个网站一条结果 |
工具返回的是网站公开发布的内容。如果网站上没有显示邮箱,就没有可返回的内容。使用联系数据时,你需要自行确保合法合规,包括你要联系的各个国家和地区的隐私与反垃圾邮件规定。
实用配方
取出一次 Google Maps 商家线索运行得到的网站,放入 startUrls,再把邮箱和电话补充到同一行数据里。
首次联系可以用 info@ 这类通用地址,写给具体的人之前,再去找带姓名的邮箱。
通过社交媒体主页链接,了解公司在哪些平台上比较活跃,再决定选用哪个渠道。
用 email-verify 验证邮箱,并剔除会退信的地址。
把 linktr.ee 页面作为起始 URL 传入,工具会读取主页上的每个链接来查找联系方式。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 companies.csv 中的 30 个网站,为每个网站找出邮箱和电话号码,并作为新列加进去。将 max_results 设为 30。"
与线索来源搭配
要获取联系方式,需要先有公司名单,事后还要做验证:
爬取网站,提取邮箱、电话号码和社交主页链接。
Google 地图上的本地商家,以及从其网站提取的邮箱、电话和社交链接。适合整理本地线索清单。
检查邮箱地址是否可送达:格式、域名、MX 记录和邮箱状态。
LinkedIn 公司主页:简介、行业、规模、总部、网站、关注者。
google-maps-leads按品类和城市查找本地商家及其网站。email-verify检查你找到的邮箱地址。linkedin-company为同一份名单补充公司详情。
完整的工作流程请看获客线索。
费用说明
按网站付费:启动运行时会预留它的最高费用,即每次调用费加上每个网站费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的网站付费,在开始时就被拒绝的运行不收费。
补全 200 个网站,就按 200 个网站计费,与每个网站抓取了多少页面无关。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
每个网站会读取多少个页面?+
最多 5 个页面,所有页面中的联系方式会合并为一条结果。
可以限制它跟进链接的层数吗?+
可以。maxDepth 设置距起始 URL 最多几层链接,sameDomain 让抓取始终停留在同一个域名内。
一次运行最多能处理多少个网站?+
最多 50 个。
每家公司都能找到邮箱吗?+
不能。它返回的是网站在已抓取页面上公开的内容,有些网站根本没有列出邮箱。
给找到的邮箱发邮件合法吗?+
这取决于你和收件人各自所在的地区。你需要自行遵守隐私和反垃圾邮件规定。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。