linkfox-ai/linkfox-skills

linkfox-kalodata-tiktok-video

通过kalodata数据搜索TikTok电商热门带货视频榜单并查询指定视频的详细数据,支持按地区、货币、语言、日期范围与GMV范围查看高排名/高播放/热销带货视频,并可按GMV排序,或用videoId获取播放、点赞、评论、分享、销售额、GPM及广告投放指标。当用户提到TikTok视频搜索、TikTok视频榜单、TikTok视频排行、TikTok热门视频、TikTok带货视频排行、TikTok爆量视频、TikTok视频详情、TikTok带货视频数据、视频播放量、GMV筛选、视频互动数据、TikTok video…

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-kalodata-tiktok-video

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

Kalodata - TikTok Video Search & Detail

This skill supports a two-step TikTok video workflow via the Kalodata data source:

  1. Browse TikTok Shop video leaderboards to discover high-performing shoppable videos.
  2. Fetch one video's full performance detail by videoId.

Use the search endpoint when the user wants rankings, hot videos, viral videos, or video discovery. Use the detail endpoint when the user already has a videoId or has selected one video from a ranking result.

Core Concepts

The video ranking endpoint returns a paginated leaderboard filtered by region, dateRange, language, currency, and optional GMV range revenue_range. Use sortField to sort by revenue. Each video row includes identity, engagement, revenue, ad-performance, and creator fields. Results are paginated with pageNumber (1-5) and pageSize (5-100).

The video detail endpoint fetches one shoppable TikTok video by videoId. It returns the video's engagement metrics, monetization metrics, advertising metrics, creator identity, region, duration, and linked product count. The videoId usually comes from the ranking response field video_id.

Both endpoints may reflect a statistical delay (T+1). See references/api.md for full request and response details.

Data Fields

Ranking rows include:

FieldDescription
video_idVideo unique ID; pass this as videoId for detail lookup
video_titleVideo title / caption
viewsVideo view count
diggcount / commentcount / share_countLikes, comments, and shares
revenueTotal GMV in the requested currency
revenuegrowthrateRevenue growth rate (%)
ad / adviewratio / adrevenueratio / ads_roasAd and advertising performance fields
belongedcreatorid / belongedcreatorhandleCreator identity
creator_debutCreator debut date

Detail rows additionally include:

FieldDescription
video_regionVideo region; may be empty
sales_volumnSales volume; field is spelled volumn
video_gpmGMV per mille (revenue per 1000 views)
adsviews / adcpa / ads_periodAd views, CPA, and ad running period
durationVideo duration in seconds
product_numberNumber of products linked in the video

Parameter Guide

Video ranking (`/kalodata/video/rank`)

ParameterTypeRequiredDescription
regionstringNoMarket region code, e.g. US
dateRangestringNoTime window, e.g. last7Day, last30Day
pageNumberintegerNoPage number, 1-5
pageSizeintegerNoPage size, 5-100
languagestringNoResponse language, e.g. zh-CN, en-US
currencystringNoCurrency for monetary metrics, e.g. USD
category_idstringNoCategory ID filter
shop_idstringNoShop ID filter
creator_idstringNoCreator ID filter
product_idstringNoProduct ID filter
revenue_rangestringNoGMV range because response field revenue is total GMV; examples: 1-100, >1000, <100
followers_rangestringNoCreator follower range filter
ads_roasnumberNoAdvertising ROAS filter
sortFieldobjectNoGMV sorting specification, e.g. {"field":"revenue","type":"DESC"}

Video detail (`/kalodata/video/detail`)

ParameterTypeRequiredDescription
videoIdstringYesTikTok video ID from ranking field video_id or a TikTok video URL
regionstringNoMarket region code, e.g. US
dateRangestringNoTime window, e.g. last7Day, last30Day
languagestringNoResponse language, e.g. zh-CN, en-US
currencystringNoCurrency for monetary metrics, e.g. USD

调用方式

  • API 端点:POST /kalodata/video/rank 或 POST /kalodata/video/detail(完整参数/响应/错误码见 references/api.md)
  • Python 脚本:python scripts/kalodata_video_search.py '<JSON 参数>' [--inline] 或 python scripts/kalodata_video_detail.py '<JSON 参数>' [--inline]
  • 成本约束:本工具会消耗算力;同一会话同一参数组合默认只调用一次,脚本带 24h 本地缓存。失败/空结果不得自动换关键词、翻页或改邮编连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为):

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-kalodata-tiktok-video-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 <= 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • 加 --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq 或 ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和算力问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况

  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY。
  • 响应401或402状态码
  • 响应提示算力或余额不足:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

Usage Examples

1. Browse top TikTok videos in the US

json
{"region":"US","dateRange":"last7Day","pageSize":10,"pageNumber":1,"currency":"USD"}

2. Filter by GMV and rank by GMV

json
{"region":"US","dateRange":"last7Day","revenue_range":"1-100","sortField":{"field":"revenue","type":"DESC"},"pageSize":10,"pageNumber":1,"currency":"USD"}

3. Fetch one video's detail

json
{"videoId":"7659161409279806734","region":"US","dateRange":"last7Day","currency":"USD"}

4. Discovery-to-detail workflow

text
Run kalodata_video_search.py first, choose a row's video_id, then pass that value as videoId to kalodata_video_detail.py.

Display Rules

  1. Present ranking results in a table with title, video ID, views, engagement, revenue, ad indicators, and creator handle.
  2. Present detail results as one grouped profile: identity, engagement, monetization, ads, creator, duration, and linked products.
  3. Always label dateRange, region, and currency when showing metrics.
  4. Use the exact field name sales_volumn.
  5. video_gpm is GMV per mille; do not display it as a percentage.
  6. Preserve ranking order unless the user explicitly requests a supported sortField.

Important Limitations

  • Ranking is not keyword search; it browses leaderboards by region and time window.
  • The backend supports GMV range filtering through revenue_range; revenue in the response is GMV, not profit or ad spend.
  • Detail requires videoId; it cannot find a video by title alone.
  • The ranking response does not include total/page count; result count is data.length.
  • pageNumber is limited to 1-5 and pageSize is limited to 5-100.
  • Transient upstream errors may appear as errcode 501 with a Kalodata HTTP 554 message. Retry the same parameters once or twice; do not change parameters automatically.
  • Use the matching Kalodata product/creator/shop/livestream skills for non-video entities.

User Expression & Scenario Quick Reference

Applicable -- TikTok video ranking or video detail lookup:

User SaysScenario
"TikTok视频榜单", "TikTok视频排行"Video ranking lookup
"TikTok热门视频", "TikTok爆量视频"Top or viral video ranking
"TikTok带货视频排行", "top TikTok videos"Region-specific shoppable video leaderboard
"TikTok视频详情", "TikTok带货视频数据"Single video detail lookup
"视频播放量", "视频互动数据", "视频GPM"Video engagement or monetization metrics
"kalodata video search/detail"Direct data source reference

Not applicable -- Needs beyond TikTok videos:

  • TikTok product / creator / shop / livestream rankings or details
  • Keyword-based video or product search
  • TikTok advertising / ad campaign management
  • Video editing, video download, or content creation

算力消耗规则

每次调用消耗 7.0 算力。

用户会因算力消耗而支付费用。请充分评估:当需要高频调用本技能,或用户对算力消耗量预期不足时,务必提醒用户,由用户决定是否继续。

Feedback:

Auto-detect and report feedback via the Feedback API when any of the following apply:

  1. The functionality or purpose described in this skill does not match actual behavior
  2. The skill's results do not match the user's intent
  3. The user expresses dissatisfaction or praise about this skill
  4. Anything you believe could be improved

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](https://skill.linkfox.com/).

aus demselben Repository

Weitere Skills

Alle Skills
linkfox-ai
Community

linkfox-aigc-imagegen

AI生图工具,根据提示词和参考图生成图片。支持多种模型(BANANA/BANANA2/BANANAPRO/GPT2IMAGE/AIDRAWEDIT/WAN27/SEEDREAM5),可控制分辨率、宽高比、输出数量。用户说"生成图片"、"AI画图"、"AI生图"、"帮我画"、"图片生成"、"image generation"、"generate image"、"画一张图"、"做张图"、"图生图"时触发。

Installationen
1
GitHub Stars
105
Aktualisiert
14. Sept.
linkfox-ai
Community

linkfox-aigc-imagegen-cloth

服饰图生成(模特/服装类)。支持单张或套图:白底图(隐形模特)、模特图、种草图、卖点图、A+图、尺码图。单张单类型直接出图;多张多类型自动编排规划。用户上传模特图或服饰图(上装/下装/连衣裙/外套/鞋帽等)并说"做套图""做模特图""做种草图""做卖点图""做A+图""做尺码图""做服饰白底图"时触发。纯图片编辑操作走 linkfox-aigc-imagegen。

Installationen
1
GitHub Stars
105
Aktualisiert
14. Sept.
linkfox-ai
Community

linkfox-aigc-videogen

AI生视频工具(首尾帧/单图模式),根据原图和提示词生成视频,支持可选尾帧图控制结束画面。支持模型KLING可灵/WAN万相/SEED豆包/SEEDFAST/HAILUO海螺。用户说"生成视频"、"AI视频"、"图生视频"、"做个视频"、"video generation"、"generate video"、"图片转视频"、"动态视频"时触发。

Installationen
1
GitHub Stars
105
Aktualisiert
14. Sept.
linkfox-ai
Community

linkfox-amazon-ads-auth

亚马逊广告(Amazon Ads)店铺授权与管理技能,提供完整的授权流程、已绑定账号与站点的查询、令牌刷新与读取、当前用户广告授权连接解绑等能力。发起授权链接时需要先向用户确认一个账号名称;一次授权即可自动发现并绑定同账号下所有可用站点的广告 profile(每个站点对应一个 profileId)。当用户提到亚马逊广告授权、Amazon Ads 授权、绑定广告账户、解绑广告账户、断开广告连接、取消广告授权、刷新广告令牌、查询 profile 列表、管理已授权广告账户、Amazon Advertising authorization, Ads token refresh, list profiles, ad account management时触发此技能。即使未明确提及"Amazon Ads"或"授权",只要涉及亚马逊广告账号绑定、访问令牌管理或广告 profile 列表查询,也应触发。

Installationen
1
GitHub Stars
105
Aktualisiert
14. Sept.