social-media-downloader

social-media-downloader is a skill for Claude Code from TikHub/tikhub-plugin. It costs 88 tokens per session (1,028 once invoked), scanned A, original, MIT.

A set of instructions for turning social-media post links into saved video, audio, or image files. It supports URLs from platforms including TikTok, Douyin, YouTube, Instagram, Twitter/X, and Xiaohongshu.

In plain words
What is it for?
Use it to download media from one or more post URLs, choose available video streams, or save audio and images where supported.
Why use it?
It removes the need to identify each platform's download endpoint and response format manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tikhub-plugin plugin — 19 skills, 7 MCP servers shipped together

Good fit Use it to download media from one or more post URLs, choose available video streams, or save audio and images where supported.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tikhub/tikhub-plugin/social-media-downloader
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TikHub/tikhub-plugin --skill social-media-downloader
Clone the repo
git clone --depth 1 https://github.com/TikHub/tikhub-plugin

Made for: Claude Code.

Or install tikhub-plugin, the plugin that ships this one along with the rest of its 19 skills, 7 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for social-media-downloader

README.md
[![agentmods](https://agentmods.dev/badge/skills/tikhub/tikhub-plugin/social-media-downloader/github.svg)](https://agentmods.dev/skills/tikhub/tikhub-plugin/social-media-downloader)
Your own site
<a href="https://agentmods.dev/skills/tikhub/tikhub-plugin/social-media-downloader"><img src="https://agentmods.dev/badge/skills/tikhub/tikhub-plugin/social-media-downloader/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for social-media-downloader

Your own site · 80×15
<a href="https://agentmods.dev/skills/tikhub/tikhub-plugin/social-media-downloader"><img src="https://agentmods.dev/badge/skills/tikhub/tikhub-plugin/social-media-downloader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.01028
Opus 5 $0.00044 $0.00514
Sonnet 5 $0.00018 $0.00206
Haiku 4.5 $0.00009 $0.00103

Measured 12d ago against content hash b70f834a1b0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

social-media-downloader scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

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")" \
skills/social-media-downloader/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Social Media Downloader

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.

Setup gate

[ -z "${TIKHUB_API_KEY:-}" ] && echo "Set TIKHUB_API_KEY first (see tikhub-onboarding)."

Step 1 — Detect the platform from the URL and pick the endpoint

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)
Instagram 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).

Step 2 — Call the endpoint

# 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

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 73 lines · 88 tokens per session scan A b70f834a1b0c

Subscribe to this mod's changes

social-media-downloader is a skill published in the GitHub repository TikHub/tikhub-plugin (7 stars, last pushed 2mo ago), licensed MIT. It adds 88 tokens to every session and 1,028 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

deck-xhs-post

A nine-page vertical image-carousel template for Xiaohongshu or Instagram, using warm pastel colors and dashed sticker-style cards.

nexu-io/html-anything · 28 tokens

ltxv2-video

Build Lightricks LTX-2 / LTX-2.3 video workflows covering text-to-video, image-to-video, GGUF and bundled checkpoints, distilled model, camera control LoRAs, synchronized audio, two-stage upscaling, and swapping alternate/GGUF base models.

artokun/comfyui-mcp · 65 tokens

ideogram-ultra

Build Ideogram 4 (Ideogram Ultra) txt2img and img2img workflows with the local open-weights model, dual conditional/unconditional models with DualModelGuider, Qwen3-VL text encoder, and structured JSON ("compositional deconstruction") prompts for strong text rendering and layout control.

artokun/comfyui-mcp · 68 tokens

video-extend

Extend / continue a video temporally with Pusa 2.2 in ComfyUI. Temporal flowmatching (the flowmatchpusa scheduler + WanVideoAddPusaNoise) on the WanVideoWrapper stack with WAN 2.2 T2V A14B (HIGH/LOW) models and the Pusa V1 LoRAs, conditioning on the loaded clip via WanVideoEncode so the existing motion carries into…

artokun/comfyui-mcp · 146 tokens

model-compatibility

Model family compatibility matrix covering loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models.

artokun/comfyui-mcp · 47 tokens

qwen-image-edit

Build Qwen Image Edit workflows covering model loading, conditioning, LoRAs, prompt patterns, and XY plot testing.

artokun/comfyui-mcp · 28 tokens