使用场景

长期追踪某个品类的 Amazon 畅销榜

以 JSON 读取某个品类的 Amazon 畅销榜、新品榜或愿望清单榜,含排名、标题、价格、评分和 ASIN,看清谁在上升。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Amazonlovelyjsonitems[0]"rank": 3"title": "Cordless handheld vac…"price": "59.99""rating": 4.5"asin": "B0EXAMPLE12"

如果你在 Amazon 的某个品类里销售,畅销榜就是记分牌:今天谁在前 50 名、卖什么价、评分如何。只看一次说明不了多少问题,有用的是和上周相比发生了什么变化。Lovely Router 替你读取榜单。发送品类链接,每个商品返回一个 JSON 对象,按商品数从预付费余额中计费。用一个 API 密钥,就能从脚本、每周报告或 AI 智能体中调用。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

长期追踪某个品类的 Amazon 畅销榜. 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. 设置上限后运行工具

    把链接连同 max_results 发送到 POST /v1/tools/amazon-bestsellers/run。运行会从你的余额中预留它的最高费用,并以 JSON 返回带排名的商品。

  3. 保存并对比

    给每次运行的结果标上日期保存下来。与上一次对比,找出新上榜的商品、排名大幅上升的商品和价格变化。

02

一次请求获取带排名的榜单

Amazon 畅销榜在 urls 中接受品类链接。一次运行最多返回 50 个商品:

curl https://lovelyrouter.com/v1/tools/amazon-bestsellers/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "urls": [
          "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics/"
        ]
      },
    "max_results": 50
  }'

畅销榜、新品榜和愿望清单榜的链接都可以使用,所以同一个品类可以从三个角度来读。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每个商品包含什么

字段组你得到的内容
排名在榜单中的位置
标识标题和 ASIN
价格标价
质量评分

请保留 ASIN:即使标题变了,也能靠它在不同次运行之间跟踪同一件商品。

04

实用配方

每周排名快照。

每周一对你的品类运行一次,按 ASIN 保存排名,绘制图表看看谁在上升。

及早发现新品上市。

读取你所在品类的新品榜页面,列出上周那次运行中没有出现过的 ASIN。

找到你的价格定位。

把前 20 名的价格与你自己的价格对比,看看你处在什么位置。

发现市场空缺。

对比畅销榜和愿望清单榜;被许多人加入愿望清单却还没进入榜单前列的商品,可能意味着需求尚未被供给满足。

把竞品送去做深入分析。

取排名靠前的 ASIN,传给 Amazon 商品详情,获取卖点、图片和卖家。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 Pet Supplies 品类的 Amazon 畅销榜页面,与 last_week.json 中保存的那次运行对比,列出新上榜或排名上升 10 位及以上的 ASIN。把 max_results 设为 50。"

06

费用说明

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

每天读取 50 个商品,就按每天 50 个商品计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
它会替我追踪排名历史吗?+

不会。它返回的是你运行那一刻的榜单。给每次运行的结果标上日期保存下来,就能建立你自己的历史记录。

能读取新品榜或愿望清单榜吗?+

可以。把其中任何一个榜单的品类链接传入 urls 即可。

会返回多少个商品?+

每次运行最多 50 个。

它适用于哪些 Amazon 站点?+

示例使用的是 amazon.com。传入你想读取的站点的品类链接即可。

怎么知道一件商品的销量?+

结果给出的是排名,而不是销售件数。排名才是你在不同次运行之间进行比较的信号。

需要订阅吗?+

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

想更全面地了解 Amazon?请看 Amazon 商品页审查、电商情报和工具目录。

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

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