New to Claude Skills? Learn how to install them →

browser-act on GitHub

TikTok Profile Videos

Free

Scrape TikTok user profiles and their video metadata.

Get this skill

Free · Opens the source repo

What TikTok Profile Videos does

The TikTok Profile Videos skill enables users to extract detailed information from TikTok user profiles, including a paginated list of videos with comprehensive metadata. By inputting a TikTok username, the skill retrieves both the user's profile information and a list of their videos, complete with engagement statistics, music details, and other relevant metadata. This is particularly useful for developers and researchers interested in analyzing TikTok content, conducting influencer research, or archiving content from specific creators.

This skill operates by leveraging TikTok's API endpoints, specifically the /api/post/item_list/ endpoint, which is accessed by navigating to the user's profile page. The skill captures the necessary data by monitoring network requests, ensuring that all information is gathered as displayed on the page. Users can expect to receive data such as follower counts, video descriptions, and engagement metrics for each video, allowing for a thorough analysis of a creator's performance on the platform.

The skill is designed for use in environments where a browser can be controlled, making it suitable for developers who are already using browser automation tools. It does not require any login for public profiles, which simplifies the process of gathering data. However, users must ensure they are not operating from regions where TikTok is restricted, as the skill requires access to the platform without geographical limitations.

In summary, the TikTok Profile Videos skill is a valuable tool for anyone looking to gather insights from TikTok user profiles. Whether for competitive analysis, content archiving, or academic research, this skill provides a straightforward method to access and analyze TikTok data efficiently.

When to use it

Use this skill when you need to gather detailed information from TikTok profiles for analysis, research, or archiving purposes.

When not to use it

Avoid using this skill for private accounts, as it will return no data, and it is not suitable for scraping data from regions where TikTok is restricted.

What you can build with it

Influencer Research

Use the skill to gather data on TikTok influencers for marketing campaigns or brand partnerships.

Content Archiving

Archive videos and profile information from specific TikTok creators for future reference or analysis.

Competitor Analysis

Analyze competitor TikTok profiles to understand their engagement strategies and content performance.

How to install TikTok Profile Videos

View source

1. Install with the skills CLI

npx skills add browser-act/skills/tiktok-profile-videos --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 — Profile Videos

TikTok username → user profile info + paginated video list with full metadata

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Extract the video list and profile metadata for a given TikTok user using the /api/post/item_list/ endpoint triggered by navigating to their profile page.

Prerequisites

  • Browser is open and can access https://www.tiktok.com
  • No login required for public profiles
  • 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.

Network Capture: Profile video list (parameters injected via URL navigation)

/api/post/item_list/ requires TikTok's dynamic signing and the user's secUid (internal ID). Navigate to the profile page — TikTok's JS resolves the secUid and triggers the signed request automatically:

  1. navigate https://www.tiktok.com/@{username}
  2. wait stable
  3. network requests --type xhr,fetch --filter "post/item_list"
  4. network request <id>

Endpoint characteristic: URL contains /api/post/item_list/ with secUid={secUid}&cursor=0

Note: The secUid is a long internal identifier (e.g., MS4wLjABAAAA-VASjiXTh7wDDyXvjk10VFhMWUAoxr8bgfO1kAL1-9s) visible in the captured request URL — record it for pagination requests.

Error handling: If no matching request appears, verify the profile page loaded (screenshot). Private accounts return an empty itemList. If the page shows a region block, switch to a non-HK proxy browser.

Output example:

{
  "cursor": "1778468677570", // timestamp-based cursor for next page
  "hasMore": true,           // false when all videos loaded
  "itemList": [
    {
      "id": "7212410220977392938",
      "desc": "Daily Push Up Workout🚀#fitness",
      "createTime": 1679270124,
      "isAd": false,
      "isPinned": false,
      "isSponsored": false,
      "locationCreated": "US",
      "author": {
        "id": "6803405475100181510",
        "uniqueId": "marcusriosofficial",
        "nickname": "Marcus Rios",
        "verified": false,
        "signature": "Former NFL Athlete 🏈\n📧marcusriosofficial@gmail.com",
        "bioLink": null,
        "avatarThumb": "https://...",
        "privateAccount": false
      },
      "authorStats": {
        "followerCount": 423500,
        "followingCount": 50,
        "heart": 10000000,
        "videoCount": 1277,
        "diggCount": 869
      },
      "authorStatsV2": {
        "followerCount": "423500",
        "followingCount": "50",
        "heart": "10000000",
        "videoCount": "1277"
      },
      "stats": {
        "diggCount": 367500,
        "shareCount": 6041,
        "playCount": 4500000,
        "commentCount": 942,
        "collectCount": 56691
      },
      "video": {
        "duration": 48,
        "height": 1280,
        "width": 720,
        "cover": "https://...",
        "definition": "720p",
        "format": "mp4"
      },
      "music": {
        "id": "7176546707423889410",
        "title": "Trap Money so Big (Remix)",
        "authorName": "Iqbal12",
        "original": false,
        "coverMedium": "https://..."
      },
      "textExtra": [{"hashtagId": "9261", "hashtagName": "fitness"}],
      "effectStickers": [],
      "imagePost": null
    }
  ]
}

To build the webVideoUrl for each item: https://www.tiktok.com/@{item.author.uniqueId}/video/{item.id}

Profile info is available from the first item's author and authorStats fields: followerCount, following, heart total, video count, bio, verified status.

Network Capture: Profile video list pagination (page 2+)

After reading page 1, scroll down to load more videos:

  1. scroll down
  2. wait stable
  3. network requests --type xhr,fetch --filter "post/item_list"
  4. Find the new request (cursor value changed from the previous page's cursor)
  5. network request <id>

Termination: hasMore is false in response, or itemList is empty.

Pagination

DOM Pagination: Scroll triggers new post/item_list requests with timestamp-based cursor. Each page returns 16 items. Termination: hasMore === false or empty itemList.

Success Criteria

itemList.length >= 1 and first item has non-null id, stats.playCount, author.uniqueId, authorStats.followerCount

Known Limitations

  • Requires non-HK proxy (TikTok shut down in Hong Kong)
  • post/item_list requires dynamic signing + secUid resolved by TikTok's JS — always use navigate + network capture
  • Private accounts return empty itemList
  • authorStats.heartCount may overflow to negative for accounts with very high like counts — use authorStats.heart instead
  • followers/following lists are not available via this capability (separate scraper needed, requires login)

Execution Efficiency

  • Batch orchestration: Loop through multiple usernames serially in one session; add 2–3s between profile navigations.
  • Test before batch execution: Test with 1 username first before running the full list.
  • Error resumption: Save results profile-by-profile; resume from the failed username on error.

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/tiktok-scraper-tiktok-profile-videos.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), append a line: {YYYY-MM-DD}: {what happened} → {conclusion}

Normal execution does not write to the file.

Frequently asked questions about TikTok Profile Videos

Similar skills