Agent Skillsbrowser-act/skills › tiktok-search-videos

tiktok-search-videos

GitHub

通过浏览器登录TikTok并导航至搜索页,捕获API数据以提取关键词相关的视频列表。支持分页获取作者、互动统计及元数据,适用于内容调研与竞品监控。

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

Trigger Scenarios

TikTok keyword search scraping search TikTok by keyword extract TikTok search data scrape TikTok videos by keyword market research on TikTok content

Install

npx skills add browser-act/skills --skill tiktok-search-videos -g -y
More Options

Non-standard path

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

Use without installing

npx skills use browser-act/skills@tiktok-search-videos

指定 Agent (Claude Code)

npx skills add browser-act/skills --skill tiktok-search-videos -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-search-videos",
    "description": "TikTok keyword search video scraper: input search keyword → output paginated video list with full metadata (author, engagement stats, music, video meta). Use when user mentions TikTok search scraping, search TikTok by keyword, TikTok search results, extract TikTok search data, scrape TikTok videos by keyword, TikTok keyword videos, TikTok keyword search, TikTok search results collection, find TikTok videos by topic, tiktok search scraper, tiktok keyword scraper. Also applies to market research on TikTok content for specific topics, competitor content monitoring, or discovering videos and creators around a keyword."
}

TikTok — Search Videos

search keyword → paginated video list with author, engagement, music, and video metadata

Language

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

Objective

Extract TikTok video search results for a given keyword using the /api/search/item/full/ endpoint triggered by navigating to the search results page.

Prerequisites

  • Browser is open and can access https://www.tiktok.com
  • Login required: TikTok blocks video search API for non-logged-in users; ensure the browser has an active TikTok session

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: Search video results (parameters injected via URL navigation)

/api/search/item/full/ requires TikTok's dynamic signing; navigate to the search page to trigger it automatically:

  1. navigate https://www.tiktok.com/search/video?q={keyword}
  2. wait stable
  3. network requests --type xhr,fetch --filter "search/item/full"
  4. network request <id>

Endpoint characteristic: URL contains /api/search/item/full/ with keyword={keyword}&cursor=0

Error handling: If no matching request appears after navigation, take a screenshot to verify the page loaded correctly (check for anti-bot challenge), then retry once.

Output example:

{
  "status_code": 0,
  "cursor": "12",    // use to identify next-page requests
  "has_more": 1,     // 0 when all results exhausted
  "item_list": [
    {
      "id": "7212410220977392938",
      "desc": "Daily Push Up Workout🚀#fitness #athlete",
      "createTime": 1679270124,
      "isAd": false,
      "locationCreated": "US",
      "author": {
        "uniqueId": "marcusriosofficial",
        "nickname": "Marcus Rios",
        "verified": false,
        "signature": "Former NFL Athlete 🏈",
        "avatarThumb": "https://...",
        "privateAccount": false
      },
      "authorStats": {
        "followerCount": 423500,
        "followingCount": 50,
        "heart": 10000000,
        "videoCount": 1277,
        "diggCount": 869
      },
      "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": []
    }
  ]
}

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

Network Capture: Search results pagination (page 2+)

After reading page 1, scroll down to load the next page:

  1. scroll down
  2. wait stable
  3. network requests --type xhr,fetch --filter "search/item/full"
  4. Find the request where the URL cursor value is higher than the previous page (e.g., cursor=12, cursor=24)
  5. network request <id>

Termination: has_more is 0 in response, or item_list is empty.

Pagination

DOM Pagination: Scroll triggers new search/item/full requests. Each page returns 12 items. Cursor increments by 12 per page. Termination: has_more === 0 or empty item_list.

Success Criteria

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

Known Limitations

  • search/item/full requires dynamic signing — always use navigate + network capture
  • Login required: TikTok blocks the video search API for non-logged-in users — search/item/full will not be triggered without an active TikTok session; exploration was done on a logged-in browser and this dependency was not caught at the time
  • Search returns ~12 videos per page (fewer than hashtag's 30 per page)
  • Logged-in users may see personalized results; use a fresh browser session for unbiased results
  • searchQuery field is not returned in the raw API response body

Execution Efficiency

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

Experience Notes

Path: {working-directory}/browser-act-skill-forge-memories/tiktok-scraper-tiktok-search-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.

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-video-detail/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
426ba94e
Indexed
2026-07-11 17:15

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