在 Alibaba.com 上搜索一次会返回数百家供应商,其中值得发询价单的,是那些有履约记录、通过认证、起订量也在你承受范围内的。逐个手动查看每家的资料,根本做不过来。Lovely Router 替你读取这些结果。发送关键词和筛选条件,每条结果返回一个 JSON 对象,按结果数从预付费余额中计费。用一个 API 密钥,就能从脚本、采购表格或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
在询价之前先审查 Alibaba.com 供应商. 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>工作原理
设置筛选条件
选择关键词、收货国家、价格区间、你能接受的最大起订量,以及供应商是否必须通过认证。
设置上限后运行工具
把它们发送到
POST /v1/tools/alibaba-products/run,在输入中带上maxResults,在请求上带上max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回结果。给供应商打分
按在 Alibaba 上的入驻年限、认证状态和评分排序,然后向清单靠前的供应商发出询价。
一次请求获取供应商候选清单
搜索 Alibaba.com 商品和供应商接受 keywords,每个条目对应一次搜索。resultType 可选 products、suppliers 或 category,maxResults 限制结果数量,每次运行最多 300 条:
curl https://lovelyrouter.com/v1/tools/alibaba-products/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"resultType": "suppliers",
"keywords": [
"led lights"
],
"verifiedSupplier": true,
"maxResults": 5
},
"max_results": 5
}'加上 shipToCountry 可获得送往你所在国家的价格和送达时间,maxMOQ 设定你能接受的最大起订量,supplierCountries 限定供应商所在地,还可以用 tradeAssurance 或 verifiedManufacturer 进一步缩小范围。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每条结果包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 报价 | 价格区间和起订量 |
| 供应商 | 供应商名称 |
| 履约记录 | 在 Alibaba 上的入驻年限 |
| 信任度 | 认证状态和评分 |
| 配送 | 预计送达时间 |
把 resultType 设为 suppliers 时读取的是供应商;设为 products 时读取的是商品及其供应商。
实用配方
开启 verifiedSupplier 和 tradeAssurance,把 maxMOQ 设为你的首单数量,再按入驻年限选出前 20 家。
开启 verifiedManufacturer,只列出经过认证的工厂,而不是贸易公司。
用相同关键词、把 shipToCountry 设为你的国家运行,读取送达时间,排除交货太慢的供应商。
把 sortBy 设为 sales_volume,找出已经卖出最多件数的商品。
把候选清单交给模型,为每家供应商写一封简短、具体的询价信,写明你的数量和规格。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 Alibaba.com 上搜索 'led lights' 供应商,只要已认证的,起订量不超过 500,送往 DE。给我入驻年限最长的 20 家。把 max_results 设为 20。"
与其他采购数据源搭配
Alibaba.com 面向出口。国内批发价和零售价则能让你看出真正的利润空间在哪里:
按关键词搜索 Alibaba.com 商品或供应商:价格区间、起订量、供应商、入驻年限、认证、评分、预计交期。
按关键词搜索 1688 批发商品:标题、人民币阶梯价、起订量、销量、回头率、供应商和所在地。
AliExpress 搜索结果中的商品:价格、订单数、评分、店铺。
ImportYeti 上的美国海关进口记录:进口商及其海外供应商、货运次数和日期、地址、商标。
爬取网站,提取邮箱、电话号码和社交主页链接。
1688-products搜索中国国内批发市场,含阶梯价和起订量。aliexpress-products展示同类商品小批量零售时的价格。importyeti-companies查询进口商公司,用来了解谁在向某家供应商采购。website-contacts从供应商自己的网站提取公开的联系方式。
在某些司法辖区,联系方式属于个人或企业数据;你有责任合法地使用它们,包括遵守隐私和反垃圾信息的规定。关于触达的更多内容,请看线索挖掘。
费用说明
按结果付费:启动运行时会预留它的最高费用,即每次调用费加上每条结果费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的结果付费,在开始时就被拒绝的运行不收费。
读取 100 条结果就按 100 条结果计费,无论它们是商品还是供应商。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
可以列出供应商而不是商品吗?+
可以。把 resultType 设为 suppliers。设为 products 时得到的是商品及其供应商。
如何只保留已认证的供应商?+
使用 verifiedSupplier;要筛选真正的工厂用 verifiedManufacturer;要筛选提供订单保障的供应商用 tradeAssurance。
能获得送往我所在国家的价格和配送信息吗?+
可以。shipToCountry 设置用于计算价格和配送的买家所在国家,默认为 US。
一次运行最多能返回多少条结果?+
每次运行最多 300 条,由 maxResults 和 max_results 设定。
它会替我联系供应商吗?+
不会。它只返回数据,触达由你或你自己的工具来完成。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。