同一件商品在新加坡的售价,可能比在印度尼西亚高出不少,进入新的 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>工作原理
列出商品和国家
选好与你所售商品相关的关键词,以及你关心的国家代码,例如
SG、ID或TH。设置上限后运行工具
把每个关键词连同
country发送到POST /v1/tools/shopee-products/run,并带上max_results。运行会从你的余额中预留它的最高费用,并以 JSON 返回商品。按市场对比
按国家把结果并排放在一起,对比价格、折扣和评分,并记下每个市场由哪些店铺和所在地占主导。
一次请求获取某个国家的 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;轮询方法见运行工具。
每件商品包含什么
| 字段组 | 你会得到 |
|---|---|
| 身份 | 商品标题 |
| 价格 | 价格和折扣 |
| 口碑 | 评分 |
| 来源 | 所在地 |
| 卖家 | 店铺 |
价格按各站点自己的币种返回。在对比各国之前,请在你自己的代码中换算,或交给模型来换算。
实用配方
在 SG、MY 和 ID 上运行同一个关键词,换算成同一种币种,看看你的价格在各国分别处在什么位置。
把 sortBy 设为 sales,取前 30 名,记下它们的价格、折扣和店铺。这些就是你要与之竞争的报价。
每周在 startUrls 中传入该店铺的链接并保存价格,看它何时开始打折。
按 price_asc 排序,把最低价与销量领先者对比,看买家是否愿意为评分而不是价格买单。
观察最便宜商品的所在地,了解卖家从哪里发货。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 SG、MY 和 ID 的 Shopee 上搜索 'phone case',每个国家 20 件商品,按销量排序,给我一张表格,列出每个国家的价格中位数和折扣。把 max_results 设为 60。"
与其他电商平台搭配
Shopee 展示的是单个站点内的价格,下面这些工具则从其他角度展示同样的商品:
某国家/地区按关键词获取的 Shopee 商品。
AliExpress 搜索结果中的商品:价格、订单数、评分、店铺。
按 URL 获取 TikTok Shop 商品页:价格、销量、评分、店铺、规格。
按关键词或链接获取韩国最大购物搜索 Naver Shopping 的商品:名称、价格与折扣、店铺、评分、评论数、类目。
aliexpress-products显示同类商品的出口价格。tiktok-shop-product读取 TikTok Shop 的商品页。naver-shopping覆盖韩国最大的购物搜索。
想在一个任务里覆盖多个电商平台,请看电商情报。
费用说明
按商品付费:启动运行时会预留它的最高费用,即每次调用费加上每件商品费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的商品付费,在开始时就被拒绝的运行不收费。
每天检查 100 件商品,就按每天 100 件商品计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。