← Back to Skills Marketplace
25
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install xiangshan-douyin
Description
向善数据抖音 API 工具集。搜索抖音用户/视频,获取用户资料、视频详情、评论、播放量统计数据。TRIGGER when user wants to search Douyin users/videos, fetch user profile, video details, video comments, or...
README (SKILL.md)
向善数据 - 抖音 API 工具集
根据用户的需求,智能选择并调用对应的抖音数据 API 接口。
API 基础信息
- 域名:
https://api.xsdata.top - 认证方式: 请求 Header 中携带
x-api-key - API Key 获取: 优先从环境变量
XS_API_KEY读取,如果未设置则向用户询问
可用接口
根据用户意图,选择最合适的接口执行。如果用户意图不明确,询问用户需要查询什么数据。
1. 获取用户主页视频列表
- 触发场景: 用户想查看某抖音博主发布的视频列表
- 接口:
POST /api/v1/goa/douyin/fetch-user-video-list - 必填参数:
sec_user_id或share_text(二选一) - 可选参数:
count(默认10)、max_cursor(翻页游标)、filter_type - 详细参考: 参考
reference/user-video-list.md
2. 获取用户详细资料
- 触发场景: 用户想查看某抖音博主的详细资料(粉丝数、简介等)
- 接口:
POST /api/v1/goa/douyin/fetch-user-data - 必填参数:
sec_user_id或share_text(二选一) - 详细参考: 参考
reference/user-data.md
3. 获取视频详情
- 触发场景: 用户想查看某条抖音视频的详细信息(播放量、点赞数等)
- 接口:
POST /api/v1/goa/douyin/fetch-video-detail - 必填参数:
aweme_id或share_text(二选一) - 详细参考: 参考
reference/video-detail.md
4. 获取视频一级评论
- 触发场景: 用户想查看某条抖音视频的评论列表
- 接口:
POST /api/v1/goa/douyin/fetch-video-comment - 必填参数:
aweme_id或share_text(二选一) - 可选参数:
count(默认10)、cursor(翻页游标) - 详细参考: 参考
reference/video-comment.md
5. 关键词搜索用户
- 触发场景: 用户想通过关键词搜索抖音用户(昵称/抖音号)
- 接口:
GET /api/v1/douyin/search-user - 必填参数:
keyword(搜索关键词) - 可选参数:
page(页码)、userType(用户类型) - 注意: 返回数据中
raw_data是 JSON 字符串,需要二次解析 - 详细参考: 参考
reference/search-user.md
6. 关键词搜索视频
- 触发场景: 用户想通过关键词搜索抖音视频
- 接口:
GET /api/v1/douyin/search-video - 必填参数:
keyword(搜索关键词) - 可选参数:
page、searchId(翻页)、sortType(排序:_0综合/_1最多点赞/_2最新)、publishTime(时间筛选:_0不限/_1一天内/_7一周内)、duration(时长筛选:_0不限/_100-10s/_3010-30s/_6030-60s/_3001-5min) - 详细参考: 参考
reference/search-video.md
7. 获取视频统计数据(含播放数)
- 触发场景: 用户想获取视频的播放量(其他接口不返回播放数)
- 接口:
POST /api/v1/goa/douyin/fetch-video-statistics - 必填参数:
aweme_id或share_text(二选一) - 返回数据:
digg_count(点赞)、download_count(下载)、play_count(播放)、share_count(分享) - 详细参考: 参考
reference/video-statistics.md
请求模板
POST 接口:
curl -s --location 'https://api.xsdata.top\x3Cendpoint>' \
--header 'x-api-key: \x3Capi_key>' \
--header 'Content-Type: application/json' \
--data '\x3Cjson_body>'
GET 接口:
curl -s --location 'https://api.xsdata.top\x3Cendpoint>?\x3Cquery_params>' \
--header 'x-api-key: \x3Capi_key>' \
--header 'Content-Type: application/json'
用户输入解析规则
- 如果用户粘贴了抖音分享链接(如
https://v.douyin.com/xxx),将其作为share_text参数 - 如果用户提供了
aweme_id(纯数字ID),用于视频相关接口 - 如果用户提供了
sec_user_id(以MS4wLjAB开头的长字符串),用于用户相关接口 - 如果用户只说了博主昵称但没有提供 ID,先用搜索用户接口搜索,找到
sec_uid后再调用用户相关接口 - 如果用户想搜索视频,使用搜索视频接口,支持排序和时间/时长筛选
- 如果用户特别关心播放量数据,使用视频统计接口(其他接口不返回播放数)
执行步骤
- 分析用户输入,判断意图和数据类型
- 选择合适的 API 接口
- 提取或询问必要参数
- 读取 API Key(环境变量
XS_API_KEY或询问用户) - 发起请求并解析结果
- 以清晰易读的方式展示关键数据
- 提示用户是否需要进一步操作(翻页、查看详情、查看评论等)
注意事项
- 所有接口都消耗 API 积分,请在调用前提醒用户
- 返回数据可能较大,只展示用户关心的核心字段
- 鼓励用户将 API Key 设置为环境变量
XS_API_KEY以便后续使用
Usage Guidance
Install only if you trust the XSData service and are comfortable sending Douyin links, IDs, search terms, and your XS_API_KEY to api.xsdata.top. Prefer setting the key in an environment variable, avoid pasting secrets into chat, and remember that API calls may consume paid credits.
Capability Tags
Capability Assessment
Purpose & Capability
The stated purpose is to search Douyin users/videos and fetch profiles, video details, comments, and statistics; the artifact's curl-based API calls match that purpose.
Instruction Scope
The skill scopes actions to user-requested Douyin lookups and read-only data retrieval, but it should more clearly warn users before collecting or using an API key in chat.
Install Mechanism
The artifact contains Markdown instructions and references only; no executable installer, bundled script, package dependency, or persistence mechanism is present.
Credentials
Using the XS_API_KEY environment variable and sending requests to https://api.xsdata.top is proportionate for this API integration and is disclosed, though users should understand the third-party trust boundary.
Persistence & Privilege
No persistence, background worker, privilege escalation, broad filesystem access, credential-store access, or local indexing behavior was found.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xiangshan-douyin - After installation, invoke the skill by name or use
/xiangshan-douyin - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of xiangshan-douyin.
- Provides Douyin (抖音) API tools to search users/videos, and fetch user profiles, video details, comments, and play statistics.
- Supports input parsing: share links, user/video IDs, or keywords.
- Guides user to provide API Key if not set in environment.
- Introduces seven API endpoints for user/video data and search.
- Includes user-friendly step-by-step workflow and usage rules.
Metadata
Frequently Asked Questions
What is Xiangshan Douyin?
向善数据抖音 API 工具集。搜索抖音用户/视频,获取用户资料、视频详情、评论、播放量统计数据。TRIGGER when user wants to search Douyin users/videos, fetch user profile, video details, video comments, or... It is an AI Agent Skill for Claude Code / OpenClaw, with 25 downloads so far.
How do I install Xiangshan Douyin?
Run "/install xiangshan-douyin" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Xiangshan Douyin free?
Yes, Xiangshan Douyin is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Xiangshan Douyin support?
Xiangshan Douyin is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Xiangshan Douyin?
It is built and maintained by XiangShan (@jesuslove); the current version is v1.0.0.
More Skills