Install
openclaw skills install @linkfox-ai/linkfox-kalodata-tiktok-livestream通过kalodata数据搜索TikTok电商直播排行榜并查询指定直播的详细数据,支持按地区、货币、语言与日期范围查看高排名、高销量的TikTok带货直播,并可用livestreamId获取直播销售额、观看人数、时长、GPM及带货商品数。当用户提到TikTok直播榜单、TikTok直播排行、TikTok带货直播榜、TikTok热销直播、TikTok直播排名、TikTok直播详情、TikTok直播数据、直播观看人数、kalodata直播搜索、kalodata直播榜、TikTok livestream ranking, TikTok live ranking, TikTok top livestreams, TikTok live shopping ranking, TikTok livestream detail, kalodata livestream search/detail, live analytics时触发此技能。即使用户未明确提及"kalodata",只要其需求涉及查看TikTok平台的直播排行榜或某个TikTok直播的详细数据,也应触发此技能。
openclaw skills install @linkfox-ai/linkfox-kalodata-tiktok-livestreamThis skill supports a two-step TikTok livestream workflow via the Kalodata data source:
livestreamId.Use the search (rank) endpoint when the user wants rankings, hot livestreams, or livestream discovery. Use the detail endpoint when the user already has a livestreamId or has selected one livestream from a ranking result.
The livestream ranking endpoint returns a paginated leaderboard filtered by region, dateRange, language, currency, and optional sortField. The default ranking order is by revenue (GMV) descending. Each livestream row includes identity, timing, scale, and creator fields. Results are paginated with pageNumber (1-5) and pageSize (5-100). The response does not include a total count — paginate until a page returns fewer than pageSize items. Money fields (revenue, unit_price) are returned as strings on the ranking endpoint.
The livestream detail endpoint fetches one shoppable TikTok livestream by livestreamId. It returns a 1-element array with the single livestream's full detail (12 fields), including viewers, numeric revenue, gpm, and product_number. There is no pagination and no total. The livestreamId usually comes from the ranking response field livestream_id.
Field names/types differ between the two endpoints: DETAIL uses
viewers(RANK usesviews); DETAILrevenueis a number (RANKrevenueis a string); DETAIL hasgpmand lacksunit_price(RANK hasunit_priceand lacksgpm). Do not assume field names/types carry over between the two endpoints.
Both endpoints may reflect a statistical delay (T+1). See references/api.md for full request and response details.
Ranking rows (each item in data from /kalodata/livestream/rank):
| Field | Type | Description |
|---|---|---|
| livestream_id | string | Livestream unique ID; pass this as livestreamId for detail lookup |
| livestream_title | string | Livestream title |
| creator_id | string | Creator unique ID (string to preserve precision) |
| creator_handle | string | Creator handle / username |
| livestream_start_time | integer | Start time, epoch milliseconds |
| livestream_end_time | integer | End time, epoch milliseconds |
| livestream_duration | integer | Duration in seconds |
| revenue | string | Total revenue / GMV in the requested currency — returned as a string, e.g. "185590.52" |
| unit_price | string | Average unit price in the requested currency — returned as a string, e.g. "265.89" |
| views | integer | Total views (note: RANK uses views) |
| record_type | string | Record type (e.g. SHORT) |
Detail rows (the single item in data from /kalodata/livestream/detail):
| Field | Type | Description |
|---|---|---|
| livestream_id | string | Livestream unique ID (matches the requested livestreamId) |
| livestream_title | string | Livestream title (e.g. 24 HOUR STREAM) |
| creator_id | string | Creator unique ID (string to preserve precision) |
| creator_handle | string | Creator handle / username (e.g. pokepiglt) |
| livestream_start_time | integer | Start time, epoch milliseconds |
| livestream_end_time | integer | End time, epoch milliseconds |
| livestream_duration | integer | Duration in seconds |
| record_type | string | Record type (e.g. SHORT) |
| viewers | integer | Total viewers (note: DETAIL uses viewers, NOT views) |
| revenue | number | Livestream revenue / GMV as a number in the requested currency (e.g. 185590.52) — a number here, a string on the RANK endpoint |
| gpm | number | GMV per mille (revenue per 1,000 impressions) — DETAIL-only, absent from RANK |
| product_number | integer | Number of products sold/promoted during the livestream |
Money fields are strings on RANK, numbers on DETAIL. Parse RANK
revenue/unit_price(float(),Number(), orConvertFrom-Json) before numeric comparison or formatting. Use the exact field name for the endpoint you are reading (viewson RANK,viewerson DETAIL).
Livestream ranking (/kalodata/livestream/rank) — all parameters optional:
| Parameter | Type | Required | Description |
|---|---|---|---|
| region | string | No | Market region code, e.g. US |
| dateRange | string | No | Time window, e.g. last7Day, last30Day |
| pageNumber | integer | No | Page number, 1-5 |
| pageSize | integer | No | Page size, 5-100 |
| language | string | No | Response language, e.g. zh-CN, en-US |
| currency | string | No | Currency for monetary metrics, e.g. USD |
| sortField | object | No | Sorting specification; pass {} for the default ranking order |
Livestream detail (/kalodata/livestream/detail):
| Parameter | Type | Required | Description |
|---|---|---|---|
| livestreamId | string | Yes | Target livestream's unique ID (camelCase), e.g. 7661409374878878494. Typically obtained from the ranking field livestream_id |
| 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/livestream/rank(榜单)或 POST /kalodata/livestream/detail(详情)(完整参数/响应/错误码见 references/api.md)python scripts/kalodata_livestream_search.py '<JSON 参数>' [--inline](榜单)或 python scripts/kalodata_livestream_detail.py '<JSON 参数>' [--inline](详情)输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-kalodata-tiktok-livestream-<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 livestreams in the US
{"region":"US","dateRange":"last7Day","pageSize":10,"pageNumber":1}
2. Fetch one livestream's detail
{"livestreamId":"7661409374878878494","region":"US","dateRange":"last7Day"}
3. Discovery-to-detail workflow
Run kalodata_livestream_search.py first, choose a row's livestream_id, then pass that value as livestreamId to kalodata_livestream_detail.py.
revenue (GMV) descending; there is no explicit rank field — position is implied by order. Preserve it unless the user explicitly requests a supported sortField.currency alongside revenue/unit_price (rank) or revenue/gpm (detail).revenue and unit_price are returned as strings (e.g. "185590.52") — parse them before numeric comparison or formatting. DETAIL revenue is a number. Use the exact field name when extracting with jq / ConvertFrom-Json.views for ranking rows and viewers for detail rows — do not mix them.gpm is GMV per mille (detail-only) — present with appropriate precision (e.g. 903.79), not as a percentage.livestream_start_time/livestream_end_time are epoch milliseconds; livestream_duration is seconds. Format human-readable local times when displaying.dateRange the data covers (e.g. "last 7 days").pageNumber 5).livestreamId: It cannot find a livestream by title alone. Obtain livestreamId from the ranking field livestream_id.pageNumber is limited to 1-5; out of range returns errcode 501, errmsg "page_number 范围为 1-5,当前: <n>". pageSize must be between 5 and 100.total or page-count fields; paginate the ranking until a page returns fewer than pageSize items.viewers (RANK uses views); DETAIL revenue is a number (RANK revenue is a string); DETAIL has gpm and lacks unit_price (RANK has unit_price and lacks gpm). Do not assume field names/types carry over.errcode 501, errmsg "调用 Kalodata 接口失败: Kalodata API HTTP 554: " (a transient upstream Kalodata error). Retry the same parameters once or twice; do not change parameters.sortField is not accepted by the gateway, do NOT attempt workarounds — inform the user and fall back to the default ranking order.Applicable -- TikTok livestream ranking or livestream detail lookup:
| User Says | Scenario |
|---|---|
| "TikTok直播排行榜", "TikTok直播排行" | Livestream ranking lookup |
| "TikTok热销直播", "top TikTok livestreams" | Livestream leaderboard by region |
| "近7天TikTok直播榜", "美国TikTok直播排名" | Time-windowed / region-filtered ranking |
| "Kalodata直播榜" | Direct data source reference |
| "TikTok直播详情", "TikTok直播数据" | Single livestream detail lookup |
| "这场直播的观看人数", "这场直播卖了多少钱" | Viewers / revenue / GPM for a specific livestream |
| "TikTok livestream detail", "kalodata livestream search/detail" | Direct detail/rank fetch |
Not applicable -- Needs beyond TikTok livestreams:
livestreamId (first obtain the ID via the ranking endpoint)Boundary judgment: When users say "直播榜" or "直播排行" in a TikTok Shop / TikTok e-commerce context, use the ranking endpoint. When they ask about a specific livestream's detailed metrics (revenue, viewers, duration, GPM) and a livestreamId is available (or can be obtained from the ranking), use the detail endpoint.
每次调用消耗 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.