Douyin Topic Analysis: Short Video Topic Selection and Material Retrieval within an Agent

Introduction

When creating content for Douyin (TikTok China), topic selection often gets stuck on “not knowing what to search,” “results being scattered across web pages,” and “difficulty breaking down ideas with AI.” Common practices involve manually scrolling through trending lists, copying titles to documents, and letting the model rely on its memory—leading to untraceable samples and skewed perspectives. The following introduces the Douyin Topic Analysis Skill (@user_825d9e7e/douyin-topic-analysis) on SkillHub: it codifies topic planning, viral angle breakdown, and material organization into an Agent-executable Skill. It fetches Douyin search and hot list data via SocialDataX’s read-only API, outputting titles, authors, links, or content IDs that can be reviewed.

What is this

Douyin Topic Analysis is a community-sourced (community) content creation Skill. The current version is 1.0.9, located at @user_825d9e7e/douyin-topic-analysis, and maintained by the publisher user_825d9e7e. Its underlying capability comes from socialdatax-skills. It is categorized under content-creation on SkillHub and is marked with requires_api_key=true.

When users need to perform Douyin topic research, short video topic planning, viral angle breakdown, content direction planning, or topic material organization, the Agent will follow the guidance in SKILL.md: first confirm the keyword or topic direction, then call the CLI or MCP to fetch data, and finally organize samples and potential follow-up angles according to the Skill’s requirements. It is designed for content operators, brand researchers, and creators.

Core Functions

The following capabilities are derived from the SKILL.md in the installed Skill package (v1.0.9):

  1. Keyword Search: douyin search --keyword <text>, supports filtering by sort order, publish time, duration, content type, and pagination (--pages, --page-token, --max-items).
  2. Hot List: douyin hot-search, no keyword required, used to view current hot ranking lists and popularity signals.
  3. Structured Return: Commands output JSON containing platform, tool, arguments, and data; multi-page searches are merged into data.items with page_count, item_count, and next page markers attached.
  4. Output Standards: The Skill requires separating “visible evidence” from “judgment,” preserving titles, authors, links or IDs, metrics, and publish times; image-text results should use the returned images field.
  5. MCP Optional Path: Tools corresponding to the CLI include douyin_search_videos; the hot list corresponds to douyin_get_hot_search_list (do not pass keyword parameters when calling).
  6. Safety Boundaries: Read-only; uses the environment variable SOCIALDATAX_API_KEY; does not login, post, like, comment, or read local browser data.

Running requires Node.js, npm/npx, and a configured SOCIALDATAX_API_KEY. The API Key can be applied for and managed on the SocialDataX AI page.

Installation and Activation

Method 1: Let the Agent install via official guidance

Send the following prompt to an AI that supports Skills (installation steps are subject to the SkillHub documentation):

Please install `@user_825d9e7e/douyin-topic-analysis` according to https://skillhub.cn/install/skillhub.md.

Method 2: SkillHub CLI

First, confirm that skillhub is installed on your machine (if not installed, refer to the SkillHub Installation Documentation to run the curl installation script). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to installing in ./skills/ which may not be recognized.

command -v skillhub && skillhub --version

skillhub install @user_825d9e7e/douyin-topic-analysis --dir ~/.cursor/skills/

Common paths (excerpted from SkillHub Installation Documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, configure the API Key (variable name is fixed as SOCIALDATAX_API_KEY):

export SOCIALDATAX_API_KEY="your_key"

The Skill metadata fetches CLI capabilities via the npm package socialdatax-skills; specific dependencies are subject to the metadata.openclaw.install inside the Skill.

Typical Usage

1. Search samples by keyword (View one page first)

Suitable for “having a direction and wanting to see related titles and accounts first.” In an Agent environment capable of executing shell commands, prioritize using the direct CLI:

npx -y socialdatax-skills@latest douyin search \
  --keyword "work outfits" --pretty \
  --source-client socialdatax-skills \
  --source-platform skillhub \
  --source-skill douyin-topic-analysis

Skill recommendation: If you just want to see samples, fetch 1 page first; use --pages or --max-items when you need to expand the scope.

2. Search with filters

For example, sorting by likes and only viewing videos published within a week:

npx -y socialdatax-skills@latest douyin search \
  --keyword "low-carb diet" \
  --sort-type like_count_descending \
  --publish-time-range week \
  --content-type video \
  --pretty \
  --source-client socialdatax-skills \
  --source-platform skillhub \
  --source-skill douyin-topic-analysis

Sort options: general, time_descending, like_count_descending. Publish time: all, day, week, half_year. Duration: all, under_1_minute, one_to_five_minutes, over_5_minutes. Content type: all, video, image.

3. View Hot List

When users want to see the current Douyin hot list, use the hot search command (no --keyword needed):

npx -y socialdatax-skills@latest douyin hot-search \
  --pretty \
  --source-client socialdatax-skills \
  --source-platform skillhub \
  --source-skill douyin-topic-analysis

4. How to use in conversation

Just describe your true intention to the Agent, for example: “Help me with Douyin topic selection, the keyword is ‘beginner makeup’, first look at 20 high-like video titles and accounts.” After enabling this Skill, the Agent should configure SOCIALDATAX_API_KEY, call search or hot list according to the Skill, and output a reviewable list along with next steps for follow-up questions (such as narrowing down the target audience, adding brands, or time ranges).

Use Cases and Precautions

Who is it for: Content operators, brand researchers, and creators who need to embed Douyin topic research into their AI workflow; those who want results with links, content IDs, and metrics, rather than pure model speculation.

Limitations and Precautions:

  • A SocialDataX API Key must be provided; in case of insufficient balance (insufficient_balance), the Skill requires displaying the recharge link and not retrying repeatedly.
  • Search does not support --all for “fetching everything at once”; pagination requires passing the complete next_page_token as is, without truncation or rewriting.
  • When the CLI exit code is 1 and partial: true, it indicates incomplete results. The Skill’s continuation rules should be followed to resume, rather than blindly re-running from the first page.
  • Available Node.js/npm is required locally; SDK or network issues are runtime environment problems. The Skill instructions state not to substitute SocialDataX data with public web searches.
  • SkillHub page statistics (as of data capture): Rating 100000, Downloads 8431; tags indicate API Key required. Actual billing and quotas are subject to the official SocialDataX website.

Conclusion

Douyin Topic Analysis writes “what to search, how to filter, and how to keep evidence” into an Agent Skill. It uses douyin search and douyin hot-search to connect with read-only data, making it suitable for sample collection before short video topic planning and viral angle breakdown. For installation and details, see SkillHub:

  • Page: https://www.skillhub.cn/skills/user_825d9e7e/douyin-topic-analysis
  • Coordinate Link: https://api.skillhub.cn/user_825d9e7e/douyin-topic-analysis
羽毛球分组比赛记分
小程序二维码

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

Xiaoye