tiktok-video-detail
它能做什么
这项技能读取一个 TikTok 视频页面,并返回页面显示的所有详细信息。适合想研究单个视频的人,例如研究竞争对手的帖子。
适用场景
- ✓当你想获取某个特定 TikTok 视频的完整详情时。
- ✓当你需要了解某个视频所用的音乐、话题标签和提及的时候。
- ✓当你在研究某个视频,想查看其数据和作者信息时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/video-platforms/tiktok-video-detail/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我获取这个 TikTok 视频的完整详情,包括作者信息、点赞数、音乐和话题标签:https://www.tiktok.com/@user/video/123”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会打开视频页面,并读取 TikTok 放在页面中的视频数据。它返回作者资料、互动数据、音乐、视频详情、话题标签、提及,以及图文轮播中的图片(如有)。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
TikTok — Video Detail
TikTok video URL → full video metadata
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Extract complete metadata for a specific TikTok video by reading the SSR-embedded __UNIVERSAL_DATA_FOR_REHYDRATION__ data from the video detail page.
Prerequisites
- Browser is open and can access
https://www.tiktok.com - No login required for public videos
- Browser must use a non-HK proxy (TikTok has shut down in Hong Kong)
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. JS code is encapsulated in Python files under the
scripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
DOM: Extract video detail from SSR data
TikTok embeds full video metadata in a <script id="__UNIVERSAL_DATA_FOR_REHYDRATION__"> tag on every video detail page. No API call needed — data is available immediately after page load:
navigate {video_url}— e.g.,https://www.tiktok.com/@marcusriosofficial/video/7212410220977392938wait stableeval "$(python scripts/extract-video-detail.py)"
Output example:
{
"id": "7212410220977392938",
"text": "Daily Push Up Workout🚀#fitness #athlete #strength",
"textLanguage": "en",
"createTime": "1679270124",
"createTimeISO": "2023-03-19T23:55:24.000Z",
"isAd": false,
"isPinned": false,
"isSponsored": false,
"isSlideshow": false, // true for photo/slideshow posts
"locationCreated": "US",
"webVideoUrl": "https://www.tiktok.com/@marcusriosofficial/video/7212410220977392938",
"mediaUrls": [],
"authorMeta": {
"id": "6803405475100181510",
"name": "marcusriosofficial", // uniqueId / username
"nickName": "Marcus Rios",
"profileUrl": "https://www.tiktok.com/@marcusriosofficial",
"verified": false,
"signature": "Former NFL Athlete 🏈\n📧marcusriosofficial@gmail.com",
"bioLink": null,
"avatar": "https://...",
"privateAccount": false,
"fans": 423500,
"following": 50,
"heart": 10000000,
"video": 1277,
"digg": 869
},
"musicMeta": {
"musicId": "7176546707423889410",
"musicName": "Trap Money so Big (Remix)",
"musicAuthor": "Iqbal12",
"musicOriginal": false,
"coverMediumUrl": "https://..."
},
"videoMeta": {
"height": 1280,
"width": 720,
"duration": 48,
"coverUrl": "https://...",
"definition": "720p",
"format": "mp4"
},
"diggCount": 367500,
"shareCount": 6041,
"playCount": 4500000,
"collectCount": 56691,
"commentCount": 942,
"hashtags": [
{"id": "9261", "name": "fitness"},
{"id": "39142", "name": "athlete"}
],
"mentions": [],
"effectStickers": [],
"slideshowImageLinks": [] // populated for slideshow/photo posts
}
Error response (video deleted or unavailable):
{"error": true, "message": "__UNIVERSAL_DATA_FOR_REHYDRATION__ not found — ensure you are on a TikTok video page"}
Pagination
Not applicable — this capability extracts a single video per URL.
Success Criteria
id is non-null, diggCount >= 0, authorMeta.name is non-null, videoMeta.duration > 0
Known Limitations
- Requires non-HK proxy (TikTok shut down in Hong Kong)
- Deleted or private videos return an error (SSR data contains non-zero statusCode)
collectCountmay be returned as a string in the SSR data — parse withparseInt()if neededauthorMeta.heart(total likes) may be truncated for very large accounts;authorStats.heartfrom the SSR itemStruct is the authoritative source- Video download URLs (
playAddr,downloadAddr) are present in the SSR data but expire quickly — extract and use them immediately if needed
Execution Efficiency
- Batch URL processing: Write a bash loop to navigate to each video URL, eval the extraction script, and save results. Add 1–2s between navigations.
- Test before batch execution: Test with 1 URL first to confirm the script works, th
常见问题
我需要登录 TikTok 吗?
不需要。描述中说明,公开视频无需登录。
我需要提供什么?
你需要提供 TikTok 视频链接。
它支持图文轮播类帖子吗?
支持。描述中说明,详情中包括轮播图片。
详情
作者的原始描述
TikTok single video detail scraper: input a TikTok video URL → output full video metadata (author profile, engagement stats, music, video meta, hashtags, mentions, slideshow images). Use when user mentions TikTok video detail, get TikTok video data, extract TikTok video metadata, scrape single TikTok video, TikTok video info, extract single TikTok video info, TikTok single video collection, tiktok video scraper, tiktok video url scraper. Also applies to batch URL processing (given a list of TikTok video URLs, extract metadata for each), verifying specific video stats, or archiving individual T
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14333
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。