SocialDataX Douyin Video Details: Using Agents to Fetch Douyin Content Details and Engagement Metrics

Preface

When conducting Douyin content research, a common practice is to copy share captions or links, then manually open the page to verify fields such as title, publish time, likes, and comments. However, link formats vary (short links, share text, aweme_id), and page structures change depending on whether it is a video or an image-text post. It is difficult to consistently reproduce the same structured data within a conversation.

The following is an introduction to the community Skill on SkillHub: “Douyin Data Analysis SocialDataX Video Detail” (Coordinates: @user_825d9e7e/socialdatax-douyin-detail, current version 1.0.3). It transforms the process of “given a work identifier → query work details and interaction metrics” into an Agent-executable workflow. The data layer is provided by the SocialDataX social media data assistant. It is designed for content analysis in environments supporting Skills, such as Cursor and Claude Code, rather than serving as a replacement for the official Creator Dashboard.

What is this

One-sentence positioning: When a user provides a Douyin Work ID, content page URL, short link, or share text, this Skill uses the SocialDataX API to query work details, image-text details, and interaction-related fields, and guides the Agent on how to invoke the CLI or MCP.

  • Publisher & Distribution: Published by SkillHub user user_825d9e7e, source marked as community, categorized as data-analysis; the SkillHub page indicates requires_api_key=true.
  • Problem Solved: Unifies the handling of “work details / image-text details / interaction metrics / content research” requests within Agent conversations, preventing the Agent from guessing page structures or fabricating data.

Official Page: https://www.skillhub.cn/skills/user_825d9e7e/socialdatax-douyin-detail
API Entry Page (SkillHub Registration): https://api.skillhub.cn/user_825d9e7e/socialdatax-douyin-detail

Core Features

Based on the SKILL.md within the Skill package and the SkillHub description, the verified capabilities include:

  1. Work Detail Query: Supports fetching single work details (Douyin work details) via aweme_id or Douyin content URL / short link / share text.
  2. Image-Text and Video Formats: The description explicitly covers image-text details; output guidelines require returning content_type and image-text images when data is available, and distinguishing platform player resources video (image-text posts may only contain audio or other resources).
  3. Interaction and Metadata Fields: Guides the return of factual fields such as description, author, publish time, and interaction counts for content analysis and research.
  4. Two Invocation Paths: Prioritizes direct CLI (npx socialdatax-skills); if the current Agent has MCP configured, it can use douyin_get_video_detail_by_aweme_id or douyin_get_video_detail_by_url.
  5. Read-Only Boundary: The Skill is declared as read-only. It does not read local browser data, does not store API Keys, and does not perform login, posting, liking, commenting, or account changes.

Dependency Environment (Skill Metadata): Requires locally available node, npm, and the environment variable SOCIALDATAX_API_KEY; data commands can be executed via the npm package socialdatax-skills.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if it is installed:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub official installation documentation to perform a full installation or install just the CLI:

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

Documentation URL: https://skillhub.cn/install/skillhub.md

2. Install this Skill to the current Agent’s skills directory

During installation, you must use --dir to point to the skills directory recognized by the current Agent; otherwise, it defaults to ./skills/ and may not be loaded. Common path examples:

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

Installation command (consistent with SkillHub search results):

skillhub install socialdatax-douyin-detail --namespace user_825d9e7e --dir ~/.cursor/skills

Alternatively, follow the prompts on the SkillHub page to let the Agent install @user_825d9e7e/socialdatax-douyin-detail by referring to https://skillhub.cn/install/skillhub.md.

3. Configure SocialDataX API Key

Data invocation uses the environment variable SOCIALDATAX_API_KEY. The application and management portal are subject to the Skill documentation:

https://socialdatax.com/?from=skillhub

Do not write the Key into the repository; simply export it in the shell environment where the Agent is running or the CLI is executed.

Typical Usage

The Skill suggests prioritizing the direct CLI, eliminating the need for separate MCP Server configuration. For a single query, use either --aweme-id or --url, but do not pass both simultaneously.

When the Work ID is known:

export SOCIALDATAX_API_KEY="your_key"
npx -y socialdatax-skills@latest douyin detail --aweme-id "<aweme_id>" --pretty

When only a link or share text is available:

npx -y socialdatax-skills@latest douyin detail --url "<douyin_content_url_or_share_text>" --pretty

Notes:

  • --url is used for content page URLs, short links, or share text; do not pass playback addresses (e.g., video.play_url).
  • --pretty only affects the output format.

If the Agent environment has SocialDataX-related MCP enabled, you can switch to the tools douyin_get_video_detail_by_aweme_id (for known aweme_id) or douyin_get_video_detail_by_url (for URL / short link / share text). The constraints are the same as the CLI.

Typical trigger in conversation: The user provides a Douyin link or share command and requests to “query work data,” “view interaction metrics,” or “do content research.” Once this Skill is enabled, the Agent should select the CLI or MCP according to the boundaries above and perform analysis based on returned fields, rather than fabricating counts.

Use Cases and Notes

Who it is for

  • Those who need to quickly verify factual fields (caption, author, time, interactions, image-text material summary, etc.) of a single Douyin work within an Agent session.
  • Research, operations, and data analysis roles conducting competitive content research or topic reviews who want structured results simply by inputting a link.

Limitations and Notes

  1. API Key Required: The Skill is tagged as requiring an API Key; data invocation cannot be completed without configuring SOCIALDATAX_API_KEY.
  2. Community Source: source: community. Before use, check the version and description on SkillHub, and evaluate the third-party data service according to your own compliance requirements.
  3. Platform Data and Quota: Whether specific fields are returned, call frequency, and billing are subject to the SocialDataX official website and account permissions; the Skill only describes the invocation method and does not guarantee that any link can be parsed.
  4. Read-Only Capability: Cannot replace official publishing, traffic injection, or account operation tasks.
  5. SkillHub Side Data (Snapshot time): Rating 100000, Downloads 4445; after installation, the behavior of the local SKILL.md and the socialdatax-skills package takes precedence.

Conclusion

“Douyin Data Analysis SocialDataX Video Detail” converges the querying of single Douyin work details and interaction metrics into a reusable Agent Skill: configure SOCIALDATAX_API_KEY, install it to the corresponding skills directory, and you can drive read-only queries via CLI/MCP using aweme_id or share links. For installation instructions and coordinates, please refer to the official SkillHub page:

https://www.skillhub.cn/skills/user_825d9e7e/socialdatax-douyin-detail

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

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

Xiaoye