/tikhub-plugin:social-media-downloaderfrom tikhub-plugin
Downloads video, audio, or images (no-watermark where available) from social-media URLs including TikTok, Douyin, Instagram, YouTube, Twitter/X, and Xiaohongshu via TikHub API.
Ships in tikhub-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a post URL into a saved media file by routing it to the correct platform endpoint, extracting the media URL from the response, and downloading it.
[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."
| Platform | Endpoint | Input | Media field |
|---|---|---|---|
| TikTok | GET /api/v1/tiktok/app/v3/fetch_one_video_by_share_url | share_url | no-watermark play_addr / download_addr url_list |
| TikTok (by id) | GET /api/v1/tiktok/app/v3/fetch_one_video | aweme_id | url_list |
| Douyin | GET /api/v1/douyin/app/v3/fetch_one_video_by_share_url | share_url | video url_list |
| Douyin (by id) | GET /api/v1/douyin/app/v3/fetch_one_video_v2 | aweme_id | video url_list |
| YouTube | GET /api/v1/youtube/web_v2/get_video_streams_v2 | video_id | video_url | stream URLs (pick resolution) |
GET /api/v1/instagram/v2/fetch_post_info | code_or_url | media URL(s) | |
| Xiaohongshu | GET /api/v1/xiaohongshu/app_v2/get_video_note_detail (video) / get_image_note_detail (images) | note_id | video / image URLs |
| Twitter/X | GET /api/v1/twitter/web/fetch_tweet_detail | tweet_id | media url_list |
For TikTok/Douyin, the *_by_share_url endpoints take the raw URL directly — no need to extract an
id. For the others, pull the id/code from the URL (or resolve it via the platform skill).
# TikTok by share URL (simplest — pass the URL straight through)
URL="https://www.tiktok.com/@nasa/video/7650608519288245534"
curl -s "https://api.tikhub.io/api/v1/tiktok/app/v3/fetch_one_video_by_share_url?share_url=$(python3 -c "import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1],safe=''))" "$URL")" \
-H "Authorization: Bearer $TIKHUB_API_KEY" -o /tmp/media.json
# YouTube streams
curl -s "https://api.tikhub.io/api/v1/youtube/web_v2/get_video_streams_v2?video_id=dQw4w9WgXcQ" \
-H "Authorization: Bearer $TIKHUB_API_KEY" -o /tmp/media.json
Parse the response for the highest-quality (no-watermark, for TikTok/Douyin) media URL — usually a
url_list array or a stream URL — then save it:
curl -L "<media_url_from_response>" -o video.mp4
file video.mp4 # confirm it's a real media container
Loop over a URL list, one at a time with a small delay (respect QPS 10/sec). Each parse is one
billed call — warn the user for large batches and hand off to bulk-data-export for big jobs.
code: 200 and contains a non-empty media URL.file video.mp4 shows a video container).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
social-media-downloader, media-download, tikhub, no-watermark
19 skills in this plugin
/bulk-data-exportFetch large lists from TikHub (posts, followers, search results, comments) with safe pagination, dedup, and export to CSV or JSON for downstream analysis. Use when the user wants "all posts", "export to CSV/JSON", "scrape N results", "a dataset of", or any large repeated-pull job./comments-analysisPull and analyze the comments on a post/video — sentiment breakdown, recurring themes/keywords, top comments, and notable questions or complaints. Use when the user says "analyze the comments", "what are people saying on this post", "comment sentiment", or pastes a post URL and wants the discussion summarized./competitor-analysisBenchmark multiple accounts/competitors side by side on one or more platforms — followers, engagement rate, posting cadence, top content, and growth signals. Use when the user says "compare these accounts", "us vs competitors", "benchmark @a @b @c", or wants a competitive landscape./creator-analyticsAnalyze a creator/account on any supported platform — profile stats, recent post performance, engagement rate, posting cadence, and top content. Use when the user says "analyze this creator/account/channel", "how is @handle doing", "engagement rate", or wants a performance summary for a profile./douyinWork with Douyin (抖音) data via TikHub — fetch videos, user profiles and post lists, video comments, and run video/user/general search via Douyin's dedicated search series. Use when the task targets Douyin. Covers App-V3 and the Douyin Search series./hashtag-researchResearch a hashtag or keyword — volume/popularity signals, top and recent content, and related hashtags — on TikTok, Douyin, Instagram, Xiaohongshu, and more. Use when the user asks "researchnpx claudepluginhub tikhub/tikhub-plugin --plugin tikhub-pluginOther plugins' skills for the same job