Install
openclaw skills install @linkfox-ai/linkfox-kalodata-tiktok-product通过kalodata数据查询TikTok电商商品排行榜并查询指定商品的详细数据,支持按地区、货币、语言与日期范围查看高排名/热销商品,并可用productId获取价格区间、销量、销售额、佣金率、上下架时间及所属店铺。当用户提到TikTok商品榜单、TikTok商品排行、TikTok热销榜、TikTok爆品排行、TikTok选品榜单、kalodata商品榜、TikTok商品详情、TikTok商品资料、商品价格、商品销量、TikTok product ranking, TikTok bestseller chart, TikTok top products, kalodata product rank, TikTok product detail, kalodata product detail, product analytics时触发此技能。即使用户未明确提及"kalodata",只要其需求涉及查看TikTok平台的商品排行榜或某个TikTok商品的详细数据,也应触发此技能。
openclaw skills install @linkfox-ai/linkfox-kalodata-tiktok-productThis skill supports a two-step TikTok Shop product workflow via the Kalodata data source:
productId.Use the ranking endpoint when the user wants best-seller rankings, hot products, or product discovery. Use the detail endpoint when the user already has a productId or has selected one product from a ranking result.
The product ranking endpoint returns a paginated leaderboard filtered by region, dateRange, currency, language, and optional sortField. Each product row includes identity, price, sales volume, revenue (split across video, live, and showcase channels), revenue growth rate, commission rate, and launch date. Results are paginated with pageNumber (1-5) and pageSize (5-100).
The product detail endpoint fetches one TikTok Shop product by productId. It returns the product's price range, sales, revenue (with channel split), commission rate, launch date, review count, category hierarchy, owning shop, and associated video/live/creator counts. The productId usually comes from the ranking response field product_id.
Both endpoints may reflect a statistical delay (T+1). See references/api.md for full request and response details.
Ranking rows include:
| Field | Description |
|---|---|
| product_id | Product unique ID; pass this as productId for detail lookup |
| product_name | Product title |
| unit_price | Price per unit (currency follows region, e.g. USD for US) |
| sales_volumn | Units sold (field is spelled volumn) |
| revenue | Total revenue / GMV; equals video + live + showcase revenue |
| video_revenue | Revenue from the video channel |
| live_revenue | Revenue from the live-stream channel |
| showcase_revenue | Revenue from the showcase / 橱窗 channel |
| revenue_growth_rate | Revenue growth rate (%) |
| commission_rate | Commission rate as a direct percentage (25.0 = 25%) |
| launch_date | Product launch date (YYYY-MM-DD) |
Detail rows additionally include:
| Field | Description |
|---|---|
| product_region | Product market region (e.g. us) |
| product_shop_id | ID of the shop this product belongs to |
| pri_cate_id / sec_cate_id / ter_cate_id | Primary / secondary / tertiary category IDs |
| min_price / max_price | Minimum / maximum price in the requested currency |
| product_review_count | Number of product reviews |
| delivery_type | Delivery type (e.g. local) |
| video_number / live_number / creator_number | Associated video / live / creator counts |
| shopping_mall_revenue | Revenue from the shopping mall (商城) channel |
Detail revenue channel split:
revenue=video_revenue+live_revenue+shopping_mall_revenue.
Product ranking (/kalodata/product/rank)
| Parameter | Type | Required | Description |
|---|---|---|---|
| region | string | No | TikTok Shop market region code, e.g. US. Default US when unspecified |
| dateRange | string | No | Relative time window, e.g. last7Day, last30Day |
| currency | string | No | Currency for monetary metrics, e.g. USD |
| language | string | No | Response language, e.g. zh-CN, en-US |
| sortField | object | No | Sorting specification; omit for default ranking |
| pageNumber | integer | No | Page number, 1-5 |
| pageSize | integer | No | Page size, 5-100 |
Product detail (/kalodata/product/detail)
| Parameter | Type | Required | Description |
|---|---|---|---|
| productId | string | Yes | TikTok product ID from ranking field product_id (string to preserve precision) |
| region | string | No | Market region code, e.g. US |
| dateRange | string | No | Time window, e.g. last7Day, last30Day |
| language | string | No | Response language, e.g. zh-CN, en-US |
| currency | string | No | Currency for monetary metrics, e.g. USD |
POST /kalodata/product/rank 或 POST /kalodata/product/detail(完整参数/响应/错误码见 references/api.md)python scripts/kalodata_product_search.py '<JSON 参数>' [--inline] 或 python scripts/kalodata_product_detail.py '<JSON 参数>' [--inline]输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-kalodata-tiktok-product-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)total/costToken、最大列表字段的长度 + 前 3 条样本)--inline 强制全量打印到 stdout(同样落盘)读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
发生以下异常情况时,采用以下措施来处理:
LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。1. Browse top TikTok products in the US (last 7 days)
{"region":"US","dateRange":"last7Day","pageSize":20,"pageNumber":1,"currency":"USD"}
2. Fetch one product's detail
{"productId":"1729508370969629931","region":"US","dateRange":"last7Day","currency":"USD"}
3. Discovery-to-detail workflow
Run kalodata_product_search.py first, choose a row's product_id, then pass that value as productId to kalodata_product_detail.py.
dateRange, region, and currency when showing monetary metrics.sales_volumn.commission_rate is a direct percentage (25.0 = 25%), not basis points — show with a % sign.revenue_growth_rate is a percentage — show with a % sign.revenue = video_revenue + live_revenue + showcase_revenue; detail revenue = video_revenue + live_revenue + shopping_mall_revenue. Present the split when useful.sortField.productId; it cannot find a product by name alone. Obtain productId from the ranking product_id first.total or page count; result count is data.length.pageNumber is limited to 1-5 and pageSize is limited to 5-100.region) may return errcode 200 with no data field and still be billed.errcode 501 with a Kalodata HTTP 5xx message (e.g. 522/554). Retry the same parameters once or twice; do not change parameters automatically.Applicable -- TikTok product ranking or product detail lookup:
| User Says | Scenario |
|---|---|
| "TikTok商品榜单", "TikTok商品排行" | Product ranking lookup |
| "TikTok热销榜", "TikTok爆品排行", "TikTok选品榜单" | Best-seller / hot product ranking |
| "kalodata商品榜", "kaloda排行" | Direct data source reference |
| "TikTok商品详情", "TikTok商品资料" | Single product detail lookup |
| "商品价格", "商品销量" | Product price / sales |
| "kalodata product rank/detail", "product analytics" | Direct product detail reference |
Not applicable -- Needs beyond TikTok products:
每次调用消耗 7.0 积分。
用户会因积分消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对积分消耗量预期不足时,务必提醒用户,由用户决定是否继续。
Feedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.