Install
openclaw skills install @devinchen2014/socialdatax-douyin用于抖音数据助手、抖音热榜、抖音数据分析、作品搜索、作品详情、作品分享链接、评论分析、评论回复分析、达人数据、达人作品和达人短剧/合集。覆盖 Douyin hot search and work research,来自 SocialDataX 社媒数据助手。
openclaw skills install @devinchen2014/socialdatax-douyinUse this skill when the user needs a Douyin / 抖音 data assistant for content research, hot search, work search, image/text post search, content details, work share links, comment analysis, comment replies, creator profile lookup, creator work lists, or creator short-drama series.
Use SOCIALDATAX_API_KEY for data calls. The only official website for requesting or managing API access is https://socialdatax.com/ai?from=clawhub. If a user asks where to get a key, provide only this URL; do not infer alternate domains.
获取或管理 API Key:访问 https://socialdatax.com/ai?from=clawhub,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 SOCIALDATAX_API_KEY;不要引导用户使用其他域名。
{"env":{"SOCIALDATAX_API_KEY":"<YOUR_API_KEY>"}} into .codebuddy/settings.local.json in the current trusted workspace, preserving other settings and env entries. This path is WorkBuddy-specific and workspace-scoped. Have the user enter the real Key locally and keep the file out of version control.read -s) and pass it to launchctl setenv; this is login-session-only and needs reloading after login/computer restart. On input failure, empty input or setup failure, report an explicit error and stop with a nonzero exit status; temporary-variable cleanup must preserve the original failure status. Fully quit the relevant client and background processes before reopening; remote services reload according to their runtime, while sandboxes still require platform injection. A separate terminal export, shell startup file alone, or closing a window does not prove inheritance. Keep real keys out of chat, logs, screenshots, command history and Skill files.node -e "console.log(JSON.stringify({apiKeyReadable:Boolean(['SOCIALDATAX_API_KEY','SOCIAL_MEDIA_MCP_API_KEY'].map(name=>process.env[name]?.trim()).find(Boolean))}))" and report only the boolean, never the Key or full environment. Follow CLI lookup order: trimmed primary variable, then legacy compatibility for existing configurations; all new setup still uses SOCIALDATAX_API_KEY. If apiKeyReadable is false, stop business requests and diagnose in the order above. True only proves a readable nonempty value; resume the original request to verify authentication, without claiming validity or available credits. Never inject a temporary value into the probe to force success.Choose the matching SocialDataX command:
npx -y socialdatax-skills@latest douyin hot-search \
--pretty --source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin search \
--keyword "<keyword>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin search \
--keyword "<keyword>" --pages 3 --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin share-link \
--aweme-id "<aweme_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin share-link \
--url "<douyin_content_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin detail \
--aweme-id "<aweme_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin detail \
--url "<douyin_content_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin comments \
--aweme-id "<aweme_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin comments \
--aweme-id "<aweme_id>" --all --include-replies --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin comments \
--url "<douyin_content_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin replies \
--aweme-id "<aweme_id>" --comment-id "<comment_id>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-info \
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-info \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-posts \
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-posts \
--sec-user-id "<sec_user_id>" --all --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-posts \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-series \
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-series \
--sec-user-id "<sec_user_id>" --all --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-series \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform clawhub \
--source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-search \
--keyword "<keyword>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
npx -y socialdatax-skills@latest douyin user-info \
--douyin-id "<douyin_id>" --pretty --source-client socialdatax-skills \
--source-platform clawhub --source-skill socialdatax-douyin
Optional arguments:
--source-client socialdatax-skills --source-platform clawhub --source-skill socialdatax-douyin: usage attribution for this Agent Skill; keep these values unchanged when running examples from this Skill.Use hot-search for 抖音热榜, search for 抖音数据分析 and content discovery, detail for one work, comments/replies for 评论分析和评论回复分析, user-info for 达人信息, user-posts for 达人作品, and user-series for 达人短剧/合集.
For a Douyin share short link and copyable share text, use douyin share-link with a known aweme_id or a work URL/share text.
For replies, pass both aweme_id and the first-level comment_id; use page_token to continue pagination.
This skill is read-only. It uses SOCIALDATAX_API_KEY from the user's environment at runtime. Generated Skill files do not contain API keys. It does not read local browser data or perform login, posting, liking, commenting, or account changes.
MCP tools matching the direct CLI commands above:
douyin_get_hot_search_listdouyin_search_videosdouyin_get_video_share_link_by_aweme_iddouyin_get_video_share_link_by_urldouyin_get_video_detail_by_aweme_iddouyin_get_video_detail_by_urldouyin_get_video_comments_by_aweme_iddouyin_get_video_comments_by_urldouyin_get_video_comment_replies_by_comment_iddouyin_get_user_info_by_sec_user_iddouyin_get_user_info_by_profile_urldouyin_get_user_posted_videos_by_sec_user_iddouyin_get_user_posted_videos_by_profile_urldouyin_get_user_series_by_sec_user_iddouyin_get_user_series_by_profile_urldouyin_search_usersdouyin_get_user_info_by_douyin_idCredential source: identify whether this request uses CLI or MCP. For CLI, check the effective configuration in the actual execution environment using the API Key section (primary variable first, then legacy compatibility). For MCP, check the authentication configuration of the current connection, without requiring a local CLI variable. If configuration is missing, follow the earlier client diagnosis and fallback order. Do not expose Keys, Authorization headers or secret configuration values.
If an SDK/dependency, npm network, Node.js/npm/npx availability, permission, or missing runtime error appears, treat it as a local runtime, dependency installation, network, or agent authorization issue, not a SocialDataX API key or business data error. Install or repair task dependencies only within the user's existing authorization, preferably in the project or a temporary environment. Execution permissions are not user authorization; explain and obtain approval before changes outside that scope, including global installs, runtime upgrades, or system configuration changes. When network or execution authorization is needed, ask the user to approve or finish authorization, then continue the same command; do not use public web search as a substitute for SocialDataX data.
If the CLI exits with status 1 and prints partial: true, preserve data.items and the error, and report incomplete results. This recovery rule overrides advice to rerun the original command. After resolving the error (including insufficient balance), resume only with a non-empty data.next_page_token and the same query parameters. Keep the original page and item limits: subtract cumulative page_count and item_count from the respective --pages and --max-items limits, if set. Stop parent-list pagination when either limit is reached. An empty token does not mean completion. Do not restart from the first page; investigate repeated-token errors before continuing.
With --include-replies, replies_partial marks incomplete replies and replies_pending marks comments not yet expanded. Finish those comments with the platform reply command, its required comment identifiers and any non-empty replies_next_page_token. For pending comments or a failed first reply request, resolve the error before starting that comment from its first reply page; investigate repeated-token errors first. Then use the outer data.next_page_token only if the parent-comment budget remains; finishing replies under retained comments does not add parent-comment pages. Never interchange parent and reply tokens or treat reply previews as complete.
For non-balance network or API errors, preserve the error message, check the effective credential source above, parameters, and link or ID format, then retry once when appropriate.
If the response returns insufficient_balance or says the balance/credits are insufficient, do not retry repeatedly. Show the official billing link in the error (https://socialdatax.com/dashboard/billing, including any channel parameters); if absent, use https://socialdatax.com/dashboard/billing. After recharging, resume the failed call; if a job or partial results already exist, follow the corresponding job-query or pagination recovery rules.
If the user has recharged but still sees insufficient balance, have the user confirm in the relevant account dashboard that this request uses the recharged account, following the credential source above. If an update is needed, have the user update the effective CLI configuration or MCP connection, reload as documented, and resume the original command. Do not require reconfiguration just because the primary local variable is absent, or expose credential values.