你想在中国生产某件商品,而最优的价格在国内批发市场 1688 上:工厂和起订量一目了然,价格还会随数量下降。可这些页面是中文的,按关键词手动搜索一遍要花上好几个小时。Lovely Router 替你执行这些搜索。发送关键词和筛选条件,每个商品返回一个 JSON 对象,按商品数从预付费余额中计费。用一个 API 密钥,就能从脚本、采购表格或 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>工作原理
写好搜索条件
列出英文或中文关键词,再设置与你的订单相匹配的筛选条件:价格区间、起订量、供应商所在省份、商家类型。
设置上限后运行工具
把它们发送到
POST /v1/tools/1688-products/run,在输入中带上maxResults,在请求上带上max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回商品。筛选并对比
按你订购数量对应的阶梯价、销量和复购率排序,然后联系排名靠前的供应商。
一次请求在 1688 上搜索供应商
搜索 1688 批发商品接受 keywords,每个条目对应一次搜索。maxResults 限制商品数量,每次运行最多 500 个:
curl https://lovelyrouter.com/v1/tools/1688-products/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"keywords": [
"phone case"
],
"maxResults": 5
},
"max_results": 5
}'可以用 priceMin、priceMax、minOrderQuantity、merchantType(any、superFactory 或 verifiedMerchant)、province、city 或 sortBy 缩小范围。如果你已经有商品 ID,可以改为把它们传入 offerIds。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每个商品包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 标识 | 商品标题 |
| 价格 | 人民币阶梯价 |
| 订购条件 | 最小起订量 |
| 需求 | 销量和复购率 |
| 供应商 | 供应商名称和所在地 |
标题和供应商名称按页面原样返回,通常是中文。价格以人民币计。
实用配方
把 minOrderQuantity 设为你的首单数量,merchantType 设为 superFactory,再按复购率排序,找出买家愿意回头再买的卖家。
读取每个结果在 100、500 和 1,000 件时的阶梯价,在询价之前先算出你目标数量下的到岸成本。
把 province 设为 广东,或把 city 设为 义乌市,只收集生产该商品的产业集群附近的供应商。
用 excludeKeywords 剔除含有另一种含义的标题,让筛选出的清单里不会混入不相关的商品。
把结果传给模型,翻译标题、对相似商品分组,并为每家供应商起草一封简短的询盘。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 1688 上搜索 'silicone phone case',起订量不超过 200,只要超级工厂,最多 40 条结果。翻译标题,并按复购率排序。"
与其他采购数据源搭配
1688 给出的是工厂价。下面这些工具告诉你还有谁在卖这件商品,以及终端客户付多少钱:
按关键词搜索 1688 批发商品:标题、人民币阶梯价、起订量、销量、回头率、供应商和所在地。
按关键词搜索 Alibaba.com 商品或供应商:价格区间、起订量、供应商、入驻年限、认证、评分、预计交期。
按链接获取淘宝和天猫商品页:标题、价格与促销、店铺、品牌、图片、参数、销量和规格。
AliExpress 搜索结果中的商品:价格、订单数、评分、店铺。
ImportYeti 上的美国海关进口记录:进口商及其海外供应商、货运次数和日期、地址、商标。
alibaba-products列出面向出口的供应商,含价格区间、认证和评分。taobao-product针对单个商品链接,展示零售价和促销。aliexpress-products展示同类商品卖给出口买家的价格。importyeti-companies查询进口商品的公司,用来核实谁在向某家供应商采购。
费用说明
按商品付费:启动运行时会预留它的最高费用,即每次调用费加上每个商品费用乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的商品付费,在开始时就被拒绝的运行不收费。
读取 200 个商品就按 200 个商品计费,无论它们来自一个关键词还是多个关键词。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
可以用英文搜索 1688 吗?+
可以。keywords 接受英文或中文。结果本身按页面原样返回,大多是中文。
我会得到什么价格?+
人民币阶梯价,因此你看到的是每个数量档对应的价格,而不是单一数字。
如何筛选出真正的工厂?+
把 merchantType 设为 superFactory,可得到经过生产能力认证的顶级制造商;设为 verifiedMerchant,则得到口碑良好的可信卖家。
能直接获取指定商品而不是搜索吗?+
可以。把 1688 商品 ID 放入 offerIds,工具就会直接获取这些商品,不做搜索。
一次运行最多能返回多少个商品?+
每次运行最多 500 个,由 maxResults 和 max_results 设定。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。