使用场景

追踪 TikTok Shop 商品的价格、销量和评分

把 TikTok Shop 商品链接转成包含价格、销量、评分、店铺和规格的 JSON,用于追踪竞品和挑选要卖的商品。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
TikTok Shoplovelyjsonitems[0]"title": "Portable blender 380 …"price": "19.99""sales": "12.4K sold""rating": 4.6"shop": "Brightline Home""variants": 5

TikTok Shop 是视频变成订单的地方,一件商品的价格、销量和评分,可能在它走红后的几天内就发生变化。如果你卖同类商品,或正在选下一个要卖的品,你就需要定期拿到这些数字。Lovely Router 替你读取。发送商品链接,每件商品返回一个 JSON 对象,按商品件数从预付费余额中计费。可以从脚本、定价表格或 AI 智能体中调用。

交给你的 AI 智能体

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

追踪 TikTok Shop 商品的价格、销量和评分. 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. 复制你追踪的每件 TikTok Shop 商品的链接:对手的商品、供应商的货品、你打算上架的商品。该工具接受 /view/product/ 和 /pdp/ 链接。

  2. 设置上限后运行工具

    把链接放进 productUrls,连同 max_results 和店铺 region 一起发送到 POST /v1/tools/tiktok-shop-product/run。运行会预留它的最高费用,并以 JSON 返回商品。

  3. 存储并对比

    每次运行都带上日期保存。与上一次运行对比,看价格变化、销量增长、评分波动,以及消失的规格。

02

一次请求获取 TikTok Shop 商品

TikTok Shop 商品在 productUrls 中接受商品链接,每个链接是一个带 url 的对象,另外还需要店铺 region。一个链接对应一件商品,一次运行最多读取 20 件:

curl https://lovelyrouter.com/v1/tools/tiktok-shop-product/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "input": {
    "productUrls": [
      {
        "url": "https://shop.tiktok.com/view/product/1731753318135730868"
      }
    ],
    "region": "US"
  },
  "max_results": 1
}'

region 决定店铺所在国家和币种。价格从不换算,所以 GB 店铺的商品会以该店铺的币种返回。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每件商品包含什么

字段组你得到的内容
价格标价;有些店铺会隐藏价格,这些行会显示 priceStatus=masked
需求页面上显示的销量
口碑评分
卖家销售该商品的店铺
选项规格

支持的地区有 US、GB、SG、MY、TH、VN、PH、ID、MX 和 JP。英国店铺会隐藏价格数字。

04

实用配方

盯住对手的主打商品。

每天早上运行它的链接,max_results 设为 1,保存价格和销量,在价格下降或销量激增时发出提醒。

按需求给候选商品排名。

从你正在考察的品类中取 20 个链接,一次调用运行,按销量排序,再看前五名的评分和规格。

跨店铺比较价格。

用对应的 region 分别在 US 和 SG 店铺运行同一件商品,按各自的币种比较标价。

核实供应商的说法。

下单备货之前,把页面上的销量和评分与供应商告诉你的数据对照一下。

把爆款视频和商品关联起来。

用 tiktok-search 找到一条热门视频,打开它推广的商品,每周记录该商品的数据,看看这波热度能持续多久。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 products.txt 中 12 个 US 地区的 TikTok Shop 商品链接,给我一张包含价格、销量、评分和店铺的表格,按销量排序。把 max_results 设为 12。"

06

费用说明

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

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

07

常见问题

?
支持哪些 TikTok Shop 国家?+

region 字段接受 US、GB、SG、MY、TH、VN、PH、ID、MX 和 JP。请选择该商品上架所在的店铺。

价格会换算成美元吗?+

不会。价格按店铺的标价返回,从不换算。如需跨店铺对比,请在你自己的代码里换算。

为什么价格显示为 masked?+

英国店铺会隐藏价格数字。这些行会显示 priceStatus=masked,而不是给出一个数字。

一次运行最多能读取多少件商品?+

每次运行最多 20 个商品链接。需要更长的列表,就启动多次运行。

需要订阅吗?+

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

想了解更多?请看其余的工具目录和价格页面。

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

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