使用场景

跨国对比 Shopee 价格:
卖家定价与选品寻源

在 11 个国家站点中任意搜索 Shopee,以 JSON 获取商品,含价格、折扣、评分、所在地和店铺,用来为商品定价并对标竞争对手。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
Shopeelovelyjsonitems[0]"title": "Clear phone case for …"price": "4.90""discount": "35%""rating": 4.8"location": "Singapore""shop": "CaseHub SG"

同一件商品在新加坡的售价,可能比在印度尼西亚高出不少,进入新的 Shopee 国家站点的卖家,需要在定价之前就了解这一点。逐个手动查看各个站点很慢,而且各国的页面也不一样。Lovely Router 在你选定的站点上执行同样的搜索。发送关键词或链接,每件商品返回一个 JSON 对象,按商品数从预付费余额中计费。

交给你的 AI 智能体

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

跨国对比 Shopee 价格:卖家定价与选品寻源. 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. 列出商品和国家

    选好与你所售商品相关的关键词,以及你关心的国家代码,例如 SG、ID 或 TH。

  2. 设置上限后运行工具

    把每个关键词连同 country 发送到 POST /v1/tools/shopee-products/run,并带上 max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回商品。

  3. 按市场对比

    按国家把结果并排放在一起,对比价格、折扣和评分,并记下每个市场由哪些店铺和所在地占主导。

02

一次请求获取某个国家的 Shopee 价格

Shopee 商品搜索在 searchTerms 中接受关键词,在 country 中指定站点,并用 maxItems 限制每个关键词的商品数量:

curl https://lovelyrouter.com/v1/tools/shopee-products/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "searchTerms": [
          "phone case"
        ],
        "country": "SG",
        "maxItems": 30,
        "sortBy": "price_asc"
      },
    "max_results": 30
  }'

country 可取 ID、SG、MY、PH、TH、VN、BR、TW、MX、CO 和 CL。sortBy 可取 relevancy、sales、latest、price_asc 或 price_desc。你也可以在 startUrls 中传入 Shopee 的商品、搜索、品类或店铺链接,它们沿用各自所属的国家。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每件商品包含什么

字段组你会得到
身份商品标题
价格价格和折扣
口碑评分
来源所在地
卖家店铺

价格按各站点自己的币种返回。在对比各国之前,请在你自己的代码中换算,或交给模型来换算。

04

实用配方

为新国家定价。

在 SG、MY 和 ID 上运行同一个关键词,换算成同一种币种,看看你的价格在各国分别处在什么位置。

找出销量领先者。

把 sortBy 设为 sales,取前 30 名,记下它们的价格、折扣和店铺。这些就是你要与之竞争的报价。

追踪竞争对手的店铺。

每周在 startUrls 中传入该店铺的链接并保存价格,看它何时开始打折。

核实真正的最低价。

按 price_asc 排序,把最低价与销量领先者对比,看买家是否愿意为评分而不是价格买单。

从有货的地方采购。

观察最便宜商品的所在地,了解卖家从哪里发货。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 SG、MY 和 ID 的 Shopee 上搜索 'phone case',每个国家 20 件商品,按销量排序,给我一张表格,列出每个国家的价格中位数和折扣。把 max_results 设为 60。"

06

费用说明

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

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

07

常见问题

?
可以搜索哪些国家?+

ID、SG、MY、PH、TH、VN、BR、TW、MX、CO 和 CL。默认是 ID。

一次运行能同时搜索多个国家吗?+

country 作用于该次运行中的关键词搜索。链接沿用各自所属的国家,所以关键词搜索需要每个国家各运行一次。

一次运行最多能返回多少件商品?+

最多 100 件,用 max_results 设置。

价格会换算成美元吗?+

不会。价格按站点展示的原样返回,请在你自己的代码里做换算。

需要订阅吗?+

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

要跨多个电商平台销售?请看电商情报、淘宝商品数据和工具目录。

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

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