Agent Skillsbrowser-act/skills › tiktok-video-detail

tiktok-video-detail

GitHub

用于抓取TikTok单视频或批量URL的完整元数据,包括作者信息、互动统计、音乐及视频详情。需通过浏览器加载页面并解析SSR数据,支持非HK代理访问,无需登录即可获取公开视频信息。

solutions/video-platforms/tiktok-video-detail/SKILL.md browser-act/skills

Trigger Scenarios

用户提及TikTok视频详情查询 需要提取TikTok视频元数据 用户请求抓取单个或批量TikTok视频信息 验证特定视频的统计数据

Install

npx skills add browser-act/skills --skill tiktok-video-detail -g -y
More Options

Non-standard path

npx skills add https://github.com/browser-act/skills/tree/main/solutions/video-platforms/tiktok-video-detail -g -y

Use without installing

npx skills use browser-act/skills@tiktok-video-detail

指定 Agent (Claude Code)

npx skills add browser-act/skills --skill tiktok-video-detail -a claude-code -g -y

安装 repo 全部 skill

npx skills add browser-act/skills --all -g -y

预览 repo 内 skill

npx skills add browser-act/skills --list

SKILL.md

Frontmatter
{
    "name": "tiktok-video-detail",
    "description": "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 TikTok posts with full metadata."
}

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 via eval "$(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:

  1. navigate {video_url} — e.g., https://www.tiktok.com/@marcusriosofficial/video/7212410220977392938
  2. wait stable
  3. eval "$(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)
  • collectCount may be returned as a string in the SSR data — parse with parseInt() if needed
  • authorMeta.heart (total likes) may be truncated for very large accounts; authorStats.heart from 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, then run the full list.
  • Error resumption: Save results URL-by-URL; resume from the failed URL on error.

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/tiktok-scraper-tiktok-video-detail.memory.md

Before execution: If the file exists, read it first — it records unexpected situations from past executions; adjust strategy accordingly.

After execution: If an unexpected situation occurs (strategy failed, page redesigned, anti-scraping upgraded, better path found), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file.

Version History

  • 22aad3f Current 2026-07-11 17:15

Same Skill Collection

solutions/ecommerce/taobao-keyword-search/SKILL.md
solutions/ecommerce/taobao-product-detail/SKILL.md
solutions/ecommerce/taobao-product-reviews/SKILL.md
solutions/ecommerce/taobao-shop-catalog/SKILL.md
solutions/search-research/web-research-assistant/SKILL.md
solutions/social-listening/instagram-place-posts/SKILL.md
solutions/social-listening/instagram-post-comments/SKILL.md
solutions/social-listening/instagram-profile-meta/SKILL.md
solutions/social-listening/instagram-profile-posts/SKILL.md
browser-act-skill-forge/SKILL.md
browser-act/SKILL.md
solutions/ecommerce/amazon-alexa-qa/SKILL.md
solutions/ecommerce/amazon-asin-lookup-api-skill/SKILL.md
solutions/ecommerce/amazon-best-selling-products-finder-api-skill/SKILL.md
solutions/ecommerce/amazon-buy-box-monitor-api-skill/SKILL.md
solutions/ecommerce/amazon-listing-competitor-analysis-skill/SKILL.md
solutions/ecommerce/amazon-product-api-skill/SKILL.md
solutions/ecommerce/amazon-product-search-api-skill/SKILL.md
solutions/ecommerce/amazon-reviews-api-skill/SKILL.md
solutions/ecommerce/ecommerce-listing/SKILL.md
solutions/ecommerce/ecommerce-product-detail/SKILL.md
solutions/ecommerce/ecommerce-reviews/SKILL.md
solutions/ecommerce/ecommerce-seller-info/SKILL.md
solutions/ecommerce/goofish-item-detail/SKILL.md
solutions/ecommerce/goofish-search-list/SKILL.md
solutions/lead-generation/business-contact-social-links-skill/SKILL.md
solutions/lead-generation/github-project-contributor-finder-api-skill/SKILL.md
solutions/lead-generation/google-maps-api-skill/SKILL.md
solutions/lead-generation/google-maps-contact-extract/SKILL.md
solutions/lead-generation/google-maps-reviews-api-skill/SKILL.md
solutions/lead-generation/google-maps-search-api-skill/SKILL.md
solutions/lead-generation/google-social-media-finder/SKILL.md
solutions/lead-generation/indeed-job-search/SKILL.md
solutions/lead-generation/industry-key-contact-radar-api-skill/SKILL.md
solutions/lead-generation/linkedin-jobs-search/SKILL.md
solutions/lead-generation/producthunt-launches/SKILL.md
solutions/lead-generation/social-media-finder-skill/SKILL.md
solutions/lead-generation/youtube-channel-business-email/SKILL.md
solutions/search-research/google-image-api-skill/SKILL.md
solutions/search-research/google-news-api-skill/SKILL.md
solutions/search-research/google-search-serp/SKILL.md
solutions/search-research/web-search-scraper-api-skill/SKILL.md
solutions/search-research/webcrawler-deep-crawl/SKILL.md
solutions/social-listening/facebook-ads-library-search/SKILL.md
solutions/social-listening/facebook-groups-scrape-posts/SKILL.md
solutions/social-listening/facebook-page-posts/SKILL.md
solutions/social-listening/facebook-page-profile-posts/SKILL.md
solutions/social-listening/reddit-competitor-analysis-api-skill/SKILL.md
solutions/social-listening/reddit-warmup/SKILL.md
solutions/social-listening/trustpilot-company-info/SKILL.md
solutions/social-listening/trustpilot-reviews/SKILL.md
solutions/social-listening/wechat-article-search-api-skill/SKILL.md
solutions/social-listening/x-dm-auto-chat/SKILL.md
solutions/social-listening/x-keyword-comment/SKILL.md
solutions/social-listening/x-tweet-by-conversation/SKILL.md
solutions/social-listening/x-tweet-by-handle/SKILL.md
solutions/social-listening/x-tweet-by-url/SKILL.md
solutions/social-listening/x-tweet-search-by-query/SKILL.md
solutions/social-listening/x-tweet-search/SKILL.md
solutions/social-listening/xiaohongshu-auto-posting/SKILL.md
solutions/social-listening/xiaohongshu-note-detail/SKILL.md
solutions/social-listening/xiaohongshu-search/SKILL.md
solutions/social-listening/xiaohongshu-user-profile/SKILL.md
solutions/social-listening/zhihu-search-api-skill/SKILL.md
solutions/video-platforms/tiktok-hashtag-videos/SKILL.md
solutions/video-platforms/tiktok-profile-videos/SKILL.md
solutions/video-platforms/tiktok-search-videos/SKILL.md
solutions/video-platforms/youtube-api-skill/SKILL.md
solutions/video-platforms/youtube-batch-transcript-extractor-api-skill/SKILL.md
solutions/video-platforms/youtube-channel-api-skill/SKILL.md
solutions/video-platforms/youtube-comments-api-skill/SKILL.md
solutions/video-platforms/youtube-influencer-finder-api-skill/SKILL.md
solutions/video-platforms/youtube-search-api-skill/SKILL.md
solutions/video-platforms/youtube-transcript-analysis-api-skill/SKILL.md
solutions/video-platforms/youtube-transcript-extractor-api-skill/SKILL.md
solutions/video-platforms/youtube-transcript/SKILL.md
solutions/video-platforms/youtube-video-api-skill/SKILL.md

Metadata

Files
0
Version
22aad3f
Hash
895bf3be
Indexed
2026-07-11 17:15

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-14 06:26
浙ICP备14020137号-1 $Map of visitor$