Douyin Data Insights: Retrieving Public Search, Creations, Comments, and Trending Lists via Agent Skills

Preface

When conducting research on Douyin competitors or tracks within the same niche, common practices involve manually scrolling through the app, taking screenshots, or copying links sporadically. It is difficult to obtain comparable, structured results in a single Agent conversation. Below is an introduction to the SkillHub community Skill “Douyin Data Insight” (Coordinates: @user_fb71c45d/douyin-data-insight): After configuring the data interface Token, the Agent invokes the built-in Node.js CLI according to SKILL.md to perform queries such as keyword search, user posts, video comments, and real-time hot lists. Results are written to JSON logs within the skill directory for subsequent analysis.

What is this

“Douyin Data Insight” is a data-analysis class Agent Skill aimed at brands, MCNs, content operators, and creators. The version is 1.0.0, the source is the SkillHub community, and the publisher is user_fb71c45d. Official Page: SkillHub - Douyin Data Insight; API Endpoint: https://api.skillhub.cn/user_fb71c45d/douyin-data-insight.

The Skill’s trigger description states: Use this when users need to perform Douyin competitor research, competitor analysis, track observation, content angle comparison, content strategy comparison, or brand content research. It requires Node.js 16.14.0+ and the environment variable GUAIKEI_API_TOKEN (SkillHub tag requires_api_key=true). The Token must be activated at guaikei.com; it is unrelated to Douyin account login and is used solely for calling the underlying data API.

Core Features

The Skill encapsulates public data capabilities through four CLI commands (input and output parameters are defined as JSON Schema draft-07 in assets/*.schema.json):

  1. Keyword Search (scripts/douyin/search-cli.js): Searches videos by keyword. Supports comprehensive sorting, most liked, and newest release, as well as time range, duration, and result limit (up to 10,000 items per query).
  2. User Posts (scripts/douyin/post-cli.js): Pass in a user homepage URL or sec_uid to batch retrieve published public works.
  3. Work Comments (scripts/douyin/comment-cli.js): Pass in a video URL or aweme_id to retrieve comment details.
  4. Real-time Hot List (scripts/douyin/hot-cli.js): No parameters required; retrieves the Douyin hot search list.

After successful execution, results are archived to the logs folder in the skill directory by default (filename includes timestamp and task type) for easy export or secondary analysis. The Skill instructions emphasize: Only public data is scraped; private or hidden content is not supported; data is restricted to personal or internal team use, and unauthorized distribution is prohibited.

Installation and Activation

Install SkillHub CLI

If skillhub is not installed on your local machine, you can check the version first:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation according to the SkillHub Installation Documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install this Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default ./skills/ location may not be recognized. A common path in Cursor is ~/.cursor/skills/.

skillhub install douyin-data-insight --namespace user_fb71c45d --dir ~/.cursor/skills/

Alternatively, you can let the AI install it according to the official prompt: Refer to https://skillhub.cn/install/skillhub.md and install @user_fb71c45d/douyin-data-insight.

Configure API Token

Before running the CLI in the skill root directory, set GUAIKEI_API_TOKEN first:

export GUAIKEI_API_TOKEN=YOUR_TOKEN

Windows users can use set GUAIKEI_API_TOKEN=YOUR_TOKEN. The Token is applied for at guaikei.com; do not leak it.

Typical Usage

The following examples are from the Skill’s bundled SKILL.md and references/options.md. They must be executed from the directory where the skill is installed.

Keyword Search (default comprehensive sort, default returns 10 items):

node scripts/douyin/search-cli.js --keyword "AI"

Sort by most liked, used for benchmarking high-engagement content:

node scripts/douyin/search-cli.js --keyword "AI" --sort 1

Limit to within the last half-year, sort by newest, and fetch 20 items:

node scripts/douyin/search-cli.js --keyword "AI 教程" --sort 2 --time 180 --limit 20

(--time values: 0 All, 1 Within 1 day, 7 Within 7 days, 180 Within half a year; --sort: 0 Comprehensive, 1 Most Liked, 2 Newest.)

Fetch works from a specific Douyin user’s homepage:

node scripts/douyin/post-cli.js --url "https://www.douyin.com/user/MS4wLjABxxx"

Get comments for a single video:

node scripts/douyin/comment-cli.js --url "https://www.douyin.com/video/xxx"

Get real-time hot list:

node scripts/douyin/hot-cli.js

In clients that support Skills like Cursor, simply describe your intent in natural language, such as “competitor account,” “keyword,” “time range,” etc.; the Agent should read this Skill and select the corresponding script and parameters. For a more complete table of options, refer to references/options.md inside the skill.

Applicable Scenarios and Notes

Suitable for: Topic research requiring structured Douyin public data, competitor work comparison, preliminary reading of comment sentiment, following hot list topics, and teams requiring JSON log persistence for subsequent reporting.

Limitations and Notes:

  • If there is no valid GUAIKEI_API_TOKEN, a permission-related error will occur. Activation and configuration must be completed first.
  • If the search yields no results, try changing to a more common keyword or set --time to 0 (All time).
  • Depends on third-party APIs and the network. Quotas, billing, and stability are subject to guaikei’s service terms; the Skill itself does not replace compliance reviews, and externally published content must still comply with platform and data usage norms.
  • SkillHub page statistics (as of data retrieval): Rating 100000, Downloads 2688; if the CLI does not appear in the Agent skill list after installation, please confirm the --dir path and restart or reload the client.

Conclusion

“Douyin Data Insight” consolidates Douyin public side searches, account works, comments, and hot list queries into a reusable set of Skills and Node CLIs, making it suitable for competitor and same-track analysis within Agent workflows. For installation or updates, simply search SkillHub using the coordinates above.

Official Address: https://www.skillhub.cn/skills/user_fb71c45d/douyin-data-insight

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye