shuliuzhenhua-sys/shuliu-skills · Archived

douyin-share-info

通过抖音分享链接调用 TikHub Douyin Web API 获取作品基础信息,并固定提取封面、音频、视频下载地址(均取第一个 url_list)。当用户提到“抖音分享链接解析”“根据分享链接取视频信息/封面/音频/播放地址”时使用。

First seen Mar 1, 2026

Installation

$ npx skills add shuliuzhenhua-sys/shuliu-skills --skill douyin-share-info

Summary

通过抖音分享链接调用 TikHub Douyin Web API 获取作品基础信息,并固定提取封面、音频、视频下载地址(均取第一个 url_list)。当用户提到“抖音分享链接解析”“根据分享链接取视频信息/封面/音频/播放地址”时使用。

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from shuliuzhenhua-sys/shuliu-skills.

npx skills add shuliuzhenhua-sys/shuliu-skills

Browse all from shuliuzhenhua-sys/shuliu-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,205 B
  • docs SUMMARY.md 312 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 8 installs

SKILL.md

抖音分享链接基础信息

通过 TikHub 的 Douyin Web 接口,根据分享链接提取作品基础信息。

Script Directory

Important: All scripts are located in the scripts/ subdirectory of this skill.

Agent Execution Instructions:

  1. Determine this SKILL.md file's directory path as SKILL_DIR
  2. Script path = ${SKILL_DIR}/scripts/main.ts
  3. 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

  • TIKHUBAPIKEY(必填)
  • TIKHUBBASEURL(可选,默认 https://api.tikhub.io)

请求头使用:Authorization: Bearer $TIKHUBAPIKEY

Fixed Extraction Rules

  • 封面:data.awemedetail.video.origincover.url_list[0]
  • 音频:data.awemedetail.music.playurl.url_list[0]
  • 视频:按数组顺序遍历 data.awemedetail.video.bitrate[*].playaddr.urllist[0],取第一个可用地址

Output

输出字段:

  • share_url
  • aweme_id
  • desc
  • author(uid、secuid、uniqueid、nickname)
  • cover_url(按规则取第一个)
  • audio_url(按规则取第一个)
  • video_url(按规则取第一个)
  • videourlfirst_available(按数组顺序遇到的第一个可用链接)
  • videoqualityselected(命中的清晰度标签)
  • videobitrate_count
  • api(code、message、request_id)