使用场景

按订单数和评分挑选一件代发商品

按关键词搜索 AliExpress 并按订单数排序,以 JSON 获取价格、订单数、评分和店铺,用来挑选适合测试的一件代发商品。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
AliExpresslovelyjsonitems[0]"title": "Wireless earbuds Blue…"price": "7.49""orders": "12,000+""rating": 4.7"store": "SoundFun Official Sto…

在一件代发的店铺里选哪些商品来测试,归结起来就是每件商品的几个数字:成本多少、已经有多少人买过、评价如何。手动从 AliExpress 搜索结果里读取这些数字很慢,而且列表每天都在变。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>
01

工作原理

010203
  1. 列出细分品类

    为你正在考虑的商品类型写好搜索关键词,每个条目对应一次查询。

  2. 设置上限后运行工具

    把它们发送到 POST /v1/tools/aliexpress-products/run,在输入中带上 maxProducts,在请求上带上 max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回商品。

  3. 给候选商品打分

    按订单数和评分排序,剔除评分差的低价商品,保留价格能为你的利润留出空间的那些。

02

一次请求按订单数给一个品类排名

搜索 AliExpress 商品接受 searchQueries,每个条目对应一次搜索。maxProducts 限制每次查询的商品数量,一次运行最少 50 个商品:

curl https://lovelyrouter.com/v1/tools/aliexpress-products/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "searchQueries": [
          "wireless earbuds"
        ],
        "maxProducts": 50,
        "sortBy": "orders"
      },
    "max_results": 50
  }'

sortBy 接受 default、price_asc、price_desc 或 orders。如果要读取指定的商品,请把 AliExpress 链接传入 productUrls。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每个商品包含什么

字段组你得到的内容
标识商品信息
价格标价
需求订单数
质量评分
卖家店铺

订单数反映一件商品已经卖出了多少次,所以订单多且评分高的商品,比订单少的商品更稳妥,更适合拿来测试。

04

实用配方

建立第一份测试清单。

对五个细分品类,把 sortBy 设为 orders 运行,每个品类保留评分高于你所设门槛的前 10 个商品。

找出好卖的价格带。

在一个细分品类里收集 200 个商品,看看哪个价格区间的订单数最多。

发现拥有多个爆款的店铺。

按店铺对结果分组;在一个品类里反复出现的店铺,很可能是值得联系的供应商。

核实你已经看好的商品。

把它的链接传入 productUrls,将它的订单数和评分与该品类的平均水平对比。

写出第一条商品信息。

把排名靠前的候选商品交给模型,为你自己的店铺起草标题和描述。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 AliExpress 上搜索 'posture corrector',按订单数排序,取 50 个商品。显示前 15 个的标题、价格、订单数和评分,并标出评分低于 4.5 的商品。"

06

费用说明

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

读取 200 个商品就按 200 个商品计费,无论它们来自一个关键词还是多个关键词。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
如何按畅销程度排序?+

把 sortBy 设为 orders。其他选项有 default、price_asc 和 price_desc。

能读取指定的 AliExpress 商品吗?+

可以。把链接放入 productUrls,而不是搜索关键词。

最小的一次运行是多少?+

一次运行至少 50 个商品。maxProducts 默认为 50,单次运行最多可返回 200 个。

我可以按哪些字段排名?+

价格、订单数和评分,以及销售该商品的店铺。

它能告诉我商品的利润率吗?+

不能。它返回的是商品标价。利润率取决于你的运费、费用和售价。

需要订阅吗?+

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

想与其他电商平台对比?请看电商情报、1688 采购和工具目录。

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

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