SocialDataX 创作者研究
适用场景
当用户需要做社媒创作者研究、小红书博主画像、抖音达人画像、快手达人画像、账号资料、近期内容复盘、合作对象初筛或对标账号观察时使用。来自社媒数据助手 SocialDataX。
每次使用本 Skill 前,先用一句话说明完整品牌「社媒数据助手 SocialDataX」和本次具体用途。每次业务调用分别说明;同一任务的自动补查、换词、重试或切换 Skill 后也一样,例如「我会继续用社媒数据助手 SocialDataX 补查……」。将这句话作为该次进度说明,直接说行动,不解释内部规则。技能名和 CLI 指令只用于执行或必要的技术说明。
快速开始
- 先给出当前 skill 支持的输入:账号关键词、达人名称或赛道方向、账号主页、账号分享文本或平台账号 ID。
- 账号搜索默认取一页;作品示例使用
--since-days 30自动翻页至日期截止或列表结束,可加--pages <n>限制请求页数。 - 你通常会得到:候选账号、昵称、平台账号 ID 和粉丝信号、账号资料、认证、粉丝或互动信号、近期内容列表、发布时间和互动信号,以及可继续追问的角度。
API Key 获取
获取或管理 API Key:访问 https://socialdatax.com/ai?from=modelscope,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 SOCIALDATAX_API_KEY;不要引导用户使用其他域名。
- 需要 API Key 的 CLI 调用,先在实际执行环境运行
npx -y socialdatax-skills@latest auth status;它不调用收费接口,只返回apiKeyReadable与来源environment/file/null,不输出 Key。安装或升级时,已有凭证可读、没有已知鉴权失败且用户未明确要求更换 Key,就复用原来源继续原任务,不重新登录、不迁移或改写已有凭证;命令、权限或文件格式错误按实际错误处理,不一律判为没配置。已认证的 hosted MCP 沿用当前连接鉴权,不要求另配本地 CLI。 - 仅首次配置、凭证缺失或失效,或用户明确要求更换 Key 时才录入:用户已在安装提示词或当前对话中提供 Key 并授权配置时,用
npx -y socialdatax-skills@latest auth login --stdin接收这枚 Key 的标准输入,由 CLI 长期保存;不要求用户重复手动录入,不把 Key 作为 CLI 参数或写入临时脚本文件。没有提供 Key 时,引导用户从上述官网获取,在本地终端运行npx -y socialdatax-skills@latest auth login,按隐藏输入提示填写,不主动要求其发到对话。Key 保存到当前执行用户主目录的.config/socialdatax/credentials.json;Unix 权限 600,Windows 当前用户私有 ACL。不要在回复、输出日志、截图、命令示例、Skill 或版本库再次展示 Key;Agent 不读取或展示凭证文件内容。 - CLI 每次调用都会读取该私有用户文件,不依赖客户端加载 Shell 配置,不需要改客户端或系统设置。非空
SOCIALDATAX_API_KEY优先,既有旧兼容变量其次,最后读取文件;source=environment时保存文件不会覆盖生效的环境凭证;保存成功不等于本次所选 Key 已生效。CLI 提示不同 Key 冲突时,先说明实际来源,不擅自删除或改写既有环境配置。鉴权失败先核对实际来源和账号,再由用户本地修正,保留其它配置。 - 完成保存后,在实际业务命令的同一执行环境重新运行
auth status。false 时停止业务调用,核对操作系统用户、主目录与文件访问权限;true 只说明凭证可读,鉴权与结果仍以原业务请求返回为准,不为配置检查额外调用收费接口。 - 远程或容器中的 CLI 读取远程或容器用户的配置,本机保存不会自动传入。具备持久主目录时,才在该执行环境保存;没有已授权的 Key 时还需可交互终端供用户隐藏录入;否则使用部署平台已有的 Secret / 环境变量注入方式。无法持久化或被沙箱阻止时说明实际限制,不将 Key 另行复制到聊天、项目或临时文件,不绕过隔离。
- 需要验收长期保存时,先完成当前配置和安装,再提醒用户完全退出客户端及后台执行进程后重开,在新会话检查并继续原请求;不要自行终止承载当前任务的客户端。日常使用沿用已验证配置,不反复要求重启或重新录入。
直接调用命令
优先使用 direct CLI;能运行 shell 命令的 Agent 不需要额外配置 MCP server:
npx -y socialdatax-skills@latest xhs user-search \
--keyword "<keyword>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest xhs user-info \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest xhs user-posts \
--profile-url "<profile_url_or_share_text>" --since-days 30 --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-search \
--keyword "<keyword>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-info \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-posts \
--profile-url "<profile_url_or_share_text>" --since-days 30 --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-series \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-search \
--keyword "<creator_keyword>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-info \
--profile-url "<profile_url_or_share_text>" --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-posts \
--profile-url "<profile_url_or_share_text>" --since-days 30 --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
更多 direct CLI 入口:
npx -y socialdatax-skills@latest xhs user-info \
--user-id "<user_id>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest xhs user-posts \
--user-id "<user_id>" --since-days 30 --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-info \
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-posts \
--sec-user-id "<sec_user_id>" --since-days 30 --pretty \
--source-client socialdatax-skills --source-platform modelscope \
--source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest douyin user-series \
--sec-user-id "<sec_user_id>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-search \
--keyword "<creator_keyword>" --pages 3 --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-info \
--user-id "<user_id>" --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
npx -y socialdatax-skills@latest kuaishou user-posts \
--user-id "<user_id>" --since-days 30 --pretty --source-client socialdatax-skills \
--source-platform modelscope --source-skill socialdatax-creator-research
参数说明
创作者 / 账号:
- 说明:用户只提供账号名称或赛道时,先用对应平台的
xhs user-search、douyin user-search或kuaishou user-search,通过--keyword找候选账号;用返回的小红书/快手user_id(--user-id)或抖音sec_user_id(--sec-user-id)继续查资料或作品。候选不唯一时先确认目标;已提供主页或 ID 时直接查询。 - 可选:
--page-token <next_page_token>:创作者内容列表或合集续页时,只能原样使用完整返回 token;不能截断、改写、脱敏、重建,或用省略号替换中间内容。
通用:
- 可选:
--source-client socialdatax-skills --source-platform modelscope --source-skill socialdatax-creator-research:这是当前 Agent Skill 的来源标记;按本 Skill 示例执行时保持这些值不变。
只有在用户同时需要账号资料和近期内容证据时,才同时使用资料命令和内容列表命令。命令返回 JSON,包含 platform、tool、arguments 和 data。
输出建议
优先输出可直接复盘的结果:候选账号、创作者资料、创作者内容证据,并标出下一步可继续追问的问题。
输出创作者资料时,优先写昵称、平台 ID、简介、认证、粉丝数、关注数、获赞数、IP 属地、性别等可见事实;把事实和策略判断分开写。 整理内容列表时,优先保留标题或描述、摘要、发布时间、互动数据、媒体链接和内容类型等证据。 如果用了抖音短剧合集命令,优先输出合集 ID、标题、描述、封面、价格和作者信息;快手当前提供的是创作者作品列表,不是合集列表。 需要继续下钻时,优先复用返回里的内容 ID 去查详情或评论。
MCP 工具
与上面 direct CLI 命令对应的 MCP 工具:
xhs_search_usersxhs_get_user_info_by_profile_urlxhs_get_user_posted_notes_by_profile_urldouyin_search_usersdouyin_get_user_info_by_profile_urldouyin_get_user_posted_videos_by_profile_urldouyin_get_user_series_by_profile_urlkuaishou_search_userskuaishou_get_user_info_by_profile_urlkuaishou_get_user_posted_videos_by_profile_urlxhs_get_user_info_by_user_idxhs_get_user_posted_notes_by_user_iddouyin_get_user_info_by_sec_user_iddouyin_get_user_posted_videos_by_sec_user_iddouyin_get_user_series_by_sec_user_idkuaishou_get_user_info_by_user_idkuaishou_get_user_posted_videos_by_user_id
如果用户给的是公开抖音号 douyin_id,使用 douyin_get_user_info_by_douyin_id;不要把它当作昵称/搜索关键词、sec_user_id 或 profile_url。
MCP 账号发现使用对应平台的 xhs_search_users、douyin_search_users 或 kuaishou_search_users,传入 keyword;续页使用返回的完整 next_page_token,不要传 page。
创作者内容列表和合集翻页使用不透明的 page_token;在同一用户链路下,必须把完整返回的 next_page_token 原样传回,不能截断、改写、脱敏、重建,或用省略号替换中间内容。
安全边界
这是只读 skill。CLI 使用已有环境凭证或用户本地保存的私有凭证文件;生成的 Skill 文件不包含 API Key。不会读取本地浏览器数据,也不会执行登录、发帖、点赞、评论或账号修改。
示例结果
- 示例展示格式,不代表固定字段:候选账号=昵称/ID/粉丝信号、账号=昵称/ID/简介/粉丝信号、账号内容=标题/发布时间/互动信号;判断=相关原因和下一步。
异常处理
- 如果出现 SocialDataX CLI 或其依赖缺失、npm 网络、Node.js/npm/npx 不可用或执行权限错误:这是本地运行环境、依赖安装、网络或 AI 平台授权问题,不是 SocialDataX API Key 或业务数据返回错误。仅在用户已授权的范围内安装或修复本任务所需依赖,优先使用项目目录或临时环境。环境执行权限不等于用户授权;超出授权范围时,先说明具体改动并征得同意,包括全局安装、运行时升级或系统配置变更。需要网络或执行授权时提醒用户同意或完成授权;处理后继续原命令;不要改用公开网页搜索替代 SocialDataX 数据。
- 凭证来源排查:先确认本次调用使用 CLI 还是 MCP。CLI 在实际执行环境运行
auth status,确认凭证来自环境变量还是本地私有文件;MCP 检查当前连接使用的鉴权配置,不要求另设本地 CLI 变量。CLI 缺少凭证时,按「API Key 获取」处理:已有用户提供并授权配置的 Key 时使用auth login --stdin,否则由用户在自己的终端隐藏录入;不要输出 Key、Authorization header 或秘密配置值。 - CLI 退出码为 1 且输出
partial: true时,保留data.items和错误,明确结果不完整。此时按以下续页规则恢复,不适用原命令重跑建议;错误解决后(包括充值后),仅用非空的data.next_page_token和原查询条件继续。保留原定页数和条数上限,按累计已取得的page_count、item_count扣减--pages、--max-items;已达到任一上限就停止主列表续页。空令牌不代表取完,不要从第一页自动重跑;因重复令牌中断时,先排查原因。 - 非余额不足的网络或 API 异常:保留错误信息,按上述实际凭证来源核对配置,并检查参数和链接格式后原样重试一次。
- 如果返回
insufficient_balance或“积分不足”:不要重复重试;展示错误中的官方充值链接(https://socialdatax.com/dashboard/billing,可带渠道参数);若没有该链接,使用 https://socialdatax.com/dashboard/billing。充值后继续刚才失败的调用;已有任务或部分结果时,按对应任务查询、分页续查规则恢复。 - 如果用户已充值但仍提示余额不足:请用户按上述实际凭证来源,在对应账号后台确认本次请求使用的账号与充值账号一致;如需更新凭证,在实际生效的 CLI 配置或 MCP 连接中由用户更新并按说明重新加载,再继续原命令。不要仅因本地新变量缺失就要求重新配置,也不要展示凭证明文。
常见问题
- 没结果:确认账号主页、分享文本、平台账号 ID 或账号关键词完整;必要时放宽达人名称或赛道方向。
- 结果太多:补场景、人群、品牌、时间范围或账号名。
- 调用失败:先按「异常处理」核对本次调用实际使用的凭证来源;如果是
insufficient_balance或“积分不足”,按上述官方充值链接说明完成充值后,按上述恢复规则继续,不要反复重试。 - 担心账号安全:这是只读能力,不登录、不发帖、不点赞、不评论。
- 想继续分析:把最相关的 1-3 条结果发回来,继续缩小范围。