mcpField
L
linkfox-echotik-list-video

linkfox-echotik-list-video

github.com/linkfox-aiMarketing & growth113173 installsUpdated 2w ago
Repository

About linkfox-echotik-list-video

An EchoTik skill for cross-border sellers and marketers to search TikTok videos by marketplace, creator, product, and engagement criteria, with engagement and estimated sales metrics.

Key features

  1. 01Filter videos by region and criteria
  2. 02Sort by views, likes, or publish date
  3. 03View engagement, sales, and GMV metrics
  4. 04Filter ad, AI, or selling videos
  5. 05Paginate searches and save responses

Use cases

  1. 01Find popular TikTok videos in a marketplace
  2. 02Compare engagement across creator videos
  3. 03Locate ad, AI, or selling videos
  4. 04Assess sales attributed to videos

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/linkfox-ai/linkfox-skills --skill linkfox-echotik-list-video

After installing, type/linkfox-echotik-list-videoin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
api.md
onboarding.md
scripts/
echotik_list_video.py
onboarding.py

Details

From the project README

EchoTik TikTok Video Search

This skill searches and analyzes TikTok video data, helping cross-border sellers and marketers discover top-performing videos, benchmark content strategies, and evaluate video-level engagement and sales attribution across TikTok marketplaces.

Core Concepts

EchoTik is a TikTok Shop analytics platform. This tool lists TikTok videos with rich filtering — by region, creator, product, category, views, duration, publish time, and ad/AI/selling flags — and returns engagement metrics (views, likes, comments, shares, favorites), estimated sales attribution (video sales count and GMV), and video metadata (duration, resolution, cover, publish date).

Required input: region is mandatory. Optional filters narrow by creator (userId), product (productId), category (productCategoryId), views range, duration range, publish-time range, and video type (ad / AI / selling).

Sort fields: videos can be sorted by likes (1), publish time (2), or views (3, default).

Pagination: pageSize must be a multiple of 10, max 100. The backend fetches in batches of 10 and merges results.

Related skill: This tool lists videos by region/filters (no product required). To get videos associated with one specific product, use linkfox-echotik-product-video with a productId instead.

Data Fields

FieldDescription
videoIdVideo ID
videoDescVideo description / caption
officialUrlTikTok official video URL
coverUrlVideo cover image URL
durationVideo duration (seconds)
width / heightVideo dimensions in pixels (e.g. 576×1090)
ratioVideo resolution label (e.g. 540p/720p)
dataSizeVideo file size
createDatePublish date
userId / uniqueId / avatarCreator ID / TikTok unique_id / creator avatar
totalViewsCntTotal views (1d/7d/30d breakdown: totalViews1dCnt / 7dCnt / 30dCnt)
totalDiggCntTotal likes (1d/7d/30d breakdown: totalDigg1dCnt / 7dCnt / 30dCnt)
totalCommentsCntTotal comments
totalSharesCntTotal shares
totalFavoritesCntTotal favorites
totalVideoSaleCntVideo sales (units)
totalVideoSaleGmvAmtVideo sales GMV (amount)
salesFlagTextSelling-video flag (是/否)
isAdTextAd-video flag (是/否)
createdByAiTextAI-video flag (是/否/未知)
productCategoryListProduct categories
videoProductsRelated products
regionMarketplace code
sourceType / sourceToolSource type / source tool

Parameter Guide

Required & Region
ParameterTypeRequiredDefaultDescription
regionstringYes-Marketplace code. See supported list below
Creator / Product / Category
ParameterTypeDescription
userIdstringFilter by creator (influencer) ID
productIdstringFilter by related product ID
productCategoryIdstringFilter by related product category ID
Engagement / Duration / Time
ParameterTypeDescription
minTotalViewsCnt / maxTotalViewsCntintegerTotal-views range (min / max)
minDuration / maxDurationintegerDuration range in seconds (min / max)
minCreateTime / maxCreateTimeintegerPublish-time range, Unix timestamp in seconds (min / max)
Video Type Flags
ParameterTypeDescription
salesFlagintegerSelling video: 0=non-selling, 1=selling (带车)
isAdintegerAd video: 0=non-ad, 1=ad (投流)
createdByAistringAI video: "true"=AI, "false"=non-AI (string, not boolean)
Sorting & Pagination
ParameterTypeDefaultDescription
videoSortFieldinteger3Sort field: 1=likes (total_digg_cnt), 2=publish time (create_time), 3=views (total_views_cnt)
sortTypeinteger1Sort order: 0=ascending, 1=descending
pageNuminteger1Page number (starts at 1)
pageSizeinteger50Page size — must be a multiple of 10, max 100
Supported Marketplaces

US (United States), ID (Indonesia), TH (Thailand), PH (Philippines), MY (Malaysia), VN (Vietnam), GB (United Kingdom), MX (Mexico), SG (Singapore), SA (Saudi Arabia), BR (Brazil), ES (Spain), JP (Japan), DE (Germany), IT (Italy), FR (France)

When the user doesn't specify a marketplace, ask or default to US.

调用方式

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

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

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-echotik-list-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. Top US videos by views

{
  "region": "US",
  "videoSortField": 3,
  "sortType": 1,
  "pageSize": 20,
  "pageNum": 1
}

2. Highest-converting selling videos (by video sales)

{
  "region": "US",
  "salesFlag": 1,
  "videoSortField": 3,
  "sortType": 1,
  "pageSize": 20
}

3. Videos by a specific creator

{
  "region": "US",
  "userId": "7234567890123456789",
  "videoSortField": 1,
  "sortType": 1
}

4. High-view videos in a time range (sorted by likes)

{
  "region": "GB",
  "minTotalViewsCnt": 100000,
  "minCreateTime": 1717200000,
  "maxCreateTime": 1719792000,
  "videoSortField": 1,
  "sortType": 1
}

5. Recent AI videos sorted by publish date

{
  "region": "US",
  "createdByAi": "true",
  "videoSortField": 2,
  "sortType": 1,
  "pageSize": 50
}

Display Rules

  1. Present data in tables: Show video description (truncated if long), views, likes, comments, shares, video sales, video GMV, publish date, and creator ID
  2. Link to original: When officialUrl is available, provide it so users can view the video on TikTok
  3. Cover image: If coverUrl is present, mention it so the user knows video thumbnails are available
  4. Duration formatting: Convert duration (seconds) to a readable format (e.g., "1:30" for 90 seconds)
  5. Estimation notice: Video sales and GMV are estimated values, remind users these are approximations
  6. Multi-period metrics: When relevant, mention 1d/7d/30d views/likes breakdowns are available in the saved JSON
  7. Result count: Always inform the user of total records and the current page; suggest pagination or tighter filters when the result set is large

Important Limitations

  1. Region required: region is mandatory; no default is applied by the API.
  2. pageSize rule: Must be a multiple of 10 (max 100). Other values may be rejected or adjusted.
  3. createdByAi is a string: Pass "true" / "false" (not boolean) — the value is validated against ^(true|false)$.
  4. Timestamps: minCreateTime / maxCreateTime are Unix timestamps in seconds.
  5. Category/product IDs: productId / productCategoryId / userId are internal IDs — obtain them from prior results.
  6. No secondary processing: Results are live queries, not stored in a database; secondary SQL/data processing is not available.
  7. Product-specific videos: To list videos for one specific product (by productId), prefer linkfox-echotik-product-video; here productId is only a filter within a region-scoped video listing.

User Expression & Scenario Quick Reference

Applicable — TikTok video discovery and performance analysis:

User SaysScenario
"TikTok热门视频" / "TikTok top videos"List videos sorted by views (field 3)
"TikTok带货视频排行"Filter salesFlag=1, sort by views/sales
"某个达人的TikTok视频"Filter by userId
"TikTok投流视频" / "TikTok广告视频"Filter isAd=1
"TikTok AI视频"Filter createdByAi="true"
"近期高播放TikTok视频"Views range + time range
"哪个TikTok视频GMV最高"Sort by views, inspect GMV column

Not applicable — Needs beyond region-scoped video listing:

  • Videos for one specific product by productId (use linkfox-echotik-product-video)
  • TikTok product search or rankings (use EchoTik product search/rank skills)
  • TikTok creator/influencer profile analytics (followers, bio)
  • TikTok live-stream data
  • Video download URL resolution (use linkfox-echotik-get-video-download-url)
  • Non-TikTok platform video data

Boundary judgment: When users ask about "TikTok视频", determine whether they want a region-scoped video listing with filters (this skill) or videos tied to one known product (linkfox-echotik-product-video). If they mention a region or filters like "热门/带货/投流视频" without a specific product, this skill applies.

算力消耗规则

消耗 5 算力。

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

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.

Comments

Markdown supported