New to Claude Skills? Learn how to install them →

browser-act on GitHub

TikTok Video Detail

Free

Extract complete metadata from TikTok videos easily.

by browser-act5.3k stars on browser-act/skills
5 views
Updated Aug 5, 2026
Get this skill

Free · Opens the source repo

What TikTok Video Detail does

The TikTok Video Detail skill is designed for developers and data analysts who need to extract detailed metadata from individual TikTok videos. By providing a TikTok video URL, users can obtain comprehensive information including author profiles, engagement statistics, music details, and more. This skill utilizes server-side rendered data embedded in the TikTok video detail page, allowing users to access the information without needing to make API calls or log in to TikTok.

To use the skill, users must have a browser open and accessible to TikTok. The skill operates by navigating to the specified video URL, waiting for the page to stabilize, and then executing a Python script to extract the relevant metadata. The output is structured in JSON format, making it easy to parse and utilize in various applications or analyses. This skill is particularly useful for those looking to archive TikTok content, analyze trends, or verify specific video statistics.

The skill also supports batch processing, allowing users to extract metadata from multiple TikTok video URLs in a single execution. Users can write a simple bash loop to navigate through a list of URLs, making it efficient for larger data collection tasks. However, it is important to note that the skill has limitations, such as requiring a non-HK proxy due to TikTok's restrictions in Hong Kong and potential errors when accessing private or deleted videos.

Overall, the TikTok Video Detail skill is a powerful tool for anyone needing to gather in-depth information from TikTok videos, providing a straightforward method to access and utilize video metadata.

When to use it

Use this skill when you need to extract metadata from a specific TikTok video or when processing multiple video URLs for analysis or archiving.

When not to use it

This skill is not suitable for extracting data from private or deleted videos, as it relies on publicly available metadata.

What you can build with it

Archiving TikTok Posts

Use the skill to collect and archive metadata from TikTok videos for research or content analysis.

Analyzing Engagement Trends

Extract engagement statistics from multiple videos to analyze trends in user interaction and content performance.

Verifying Video Details

Quickly verify specific details about a TikTok video, such as view counts and likes, for reporting or analysis.

How to install TikTok Video Detail

View source

1. Install with the skills CLI

npx skills add browser-act/skills/tiktok-video-detail --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by browser-act

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.

Frequently asked questions about TikTok Video Detail

Similar skills