douyin-share-info
Installation
SKILL.md
抖音分享链接基础信息
通过 TikHub 的 Douyin Web 接口,根据分享链接提取作品基础信息。
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/main.ts - Replace all
${SKILL_DIR}in this document with the actual path
Usage
# 输出结构化 JSON(推荐)
npx -y bun ${SKILL_DIR}/scripts/main.ts \
--share-url "https://v.douyin.com/xxxxxx/" \
--json
# 同时保存原始响应
npx -y bun ${SKILL_DIR}/scripts/main.ts \
--share-url "https://v.douyin.com/xxxxxx/" \
--json \
--raw out/raw.json
Options
--share-url <url>,--url <url>: 抖音分享链接(必填)--raw <path>: 保存 TikHub 原始响应 JSON 到文件--json: JSON 输出(默认开启,兼容现有习惯)-h,--help: 显示帮助
Env
TIKHUB_API_KEY(必填)TIKHUB_BASE_URL(可选,默认https://api.tikhub.io)
请求头使用:Authorization: Bearer $TIKHUB_API_KEY
Fixed Extraction Rules
- 封面:
data.aweme_detail.video.origin_cover.url_list[0] - 音频:
data.aweme_detail.music.play_url.url_list[0] - 视频:按数组顺序遍历
data.aweme_detail.video.bit_rate[*].play_addr.url_list[0],取第一个可用地址
Output
输出字段:
share_urlaweme_iddescauthor(uid、sec_uid、unique_id、nickname)cover_url(按规则取第一个)audio_url(按规则取第一个)video_url(按规则取第一个)video_url_first_available(按数组顺序遇到的第一个可用链接)video_quality_selected(命中的清晰度标签)video_bit_rate_countapi(code、message、request_id)
Related skills
More from shuliuzhenhua-sys/shuliu-skills
banana-proxy
Gemini image generation via Banana proxy endpoint.
13sora-video
Generate videos using Sora via lnapi.com.
7feishu-user-auth
Use when 用户提到“飞书授权”“OAuth”“Device Flow”“open_id”“重复弹授权窗”“复用 token”“补授权 scope”“飞书 token 存哪儿了”这类场景,需要复用本地已有用户 token、只补缺失 scopes,或排查 token 的实际存储位置。
2ecommerce-images
电商商品图生成工作流技能。接收用户提供的商品原图,按模式生成主图、详情图或两者;详情图按套生成并在执行前询问用户需要几张;默认调用 banana-proxy,失败时回退到 baoyu-image-gen;仅支持用中文风格名选择主图/详情图风格。
1feishu-card
Use when 用户提到“飞书卡片”“交互卡片”“按钮消息”“interactive 消息”“卡片回调”“给某个 open_id 发卡片”这类场景,需要构建、发送或更新飞书 IM 交互卡片。
1