ytapi
БесплатноБез исполняемых скриптовНе проверенYouTube transcripts, video details, comments, most replayed moments, search, channels and playlists through the YTAPI REST API. Use when a YouTube video…
от ytapi430 установок в других каталогахОб этом скилле
YTAPI: YouTube data for agents
Transcripts, video details, comments, search, channels and playlists from
YTAPI. Plain HTTPS with curl; nothing to install.
YTAPI tools
If this session already has the YTAPI tools (get_transcript,
get_video_info, get_video_details, get_video_heatmap, get_comments,
search_youtube, get_channel, get_channel_videos,
get_playlist_videos), from the YTAPI connector or plugin, use them: they
need no API key and no curl. The REST API below is for when those tools
are missing, or for what they don't cover, such as batches.
Setup
If YTAPI_API_KEY is not set, read references/auth-setup.md
and follow it: the user either pastes a key or you create a free account
with their email (200 credits, no card).
Every request:
curl -s "https://api.ytapi.dev/v1/..." -H "Authorization: Bearer $YTAPI_API_KEY"
Never print the key. Videos take an 11-character ID or a full URL; channels
take an @handle or a UC... ID.
Transcript (1 credit)
curl -s "https://api.ytapi.dev/v1/transcripts?video_id=VIDEO_ID_OR_URL&format=text" \
-H "Authorization: Bearer $YTAPI_API_KEY"
| Param | Default | Values |
|---|---|---|
video_id |
required | 11-character ID or a YouTube URL |
format |
segments |
text (plain), markdown, segments (JSON with start/end seconds), sentences, srt, vtt, word_timestamps |
languages |
* |
Comma-separated codes in order of preference. * is the video's own language; en,* = English if the video has it, else its own language |
word_level |
false |
Word timings on auto-generated tracks (with format=word_timestamps) |
- For reading, summarizing or quoting, use
format=textorformat=markdown(smaller and easier to read). Usesegmentswhen you need timestamps, for example to link to a moment:https://youtu.be/VIDEO_ID?t=SECONDS. - JSON responses include
languageandtrack_kind(manual= creator captions,asr= auto-generated). - Long videos give long transcripts: save to a file and read it in parts instead of loading it all at once.
Video details
# Free: title, duration, channel, and which caption languages exist
curl -s "https://api.ytapi.dev/v1/videos/VIDEO_ID/basic-info" -H "Authorization: Bearer $YTAPI_API_KEY"
# 1 credit: full record (description, views, likes, comment count, publish
# date, tags, chapters, live status, links, hashtags, music, related videos)
curl -s "https://api.ytapi.dev/v1/videos/VIDEO_ID/video-info" -H "Authorization: Bearer $YTAPI_API_KEY"
Check basic-info first when unsure whether a video has captions in a
language: available_languages lists each track with kind manual or asr.
video-info also returns YouTube's own ai_summary when YouTube shows one,
and related (up to 20 suggested videos) for finding more on a topic. A
scheduled stream or premiere has is_upcoming: true and scheduled_start
(Unix time); it has no transcript until it airs.
Comments (1 credit per page)
# Top comments (or sort=newest), about 20 per page
curl -s "https://api.ytapi.dev/v1/videos/VIDEO_ID/comments?sort=top" -H "Authorization: Bearer $YTAPI_API_KEY"
# Replies to one comment: pass its replies_cursor, then each page's next_cursor
curl -s -G "https://api.ytapi.dev/v1/videos/VIDEO_ID/comments/replies" --data-urlencode "cursor=REPLIES_CURSOR" -H "Authorization: Bearer $YTAPI_API_KEY"
Each comment has text, author.name, like_count, reply_count,
published_text ("3 years ago") and is_pinned / is_hearted. Like counts
and the total comment_count are YouTube's rounded figures. Pass
cursor=NEXT_CURSOR for the next page and stop when you have enough. A
video with comments turned off returns 404 comments_disabled, free. Quote
comments briefly; they are other people's words.
Most replayed moments (1 credit)
curl -s "https://api.ytapi.dev/v1/videos/VIDEO_ID/heatmap" -H "Authorization: Bearer $YTAPI_API_KEY"
YouTube's "most replayed" graph: most_replayed, up to five peaks and a
20-part curve, each with start_seconds and an intensity from 0 to 1
relative to the video's own peak. Ignore the first seconds, which are high
on almost every video. Many videos have no graph: 404 heatmap_unavailable,
free. Link a moment as https://www.youtube.com/watch?v=VIDEO_ID&t=SECONDS.
Search (1 credit per page)
curl -s -G "https://api.ytapi.dev/v1/search" \
--data-urlencode "q=QUERY" -d type=video -d limit=20 \
-H "Authorization: Bearer $YTAPI_API_KEY"
| Param | Values |
|---|---|
q |
Search text |
type |
all, video, channel, playlist, shorts, movie |
upload_date |
hour, today, week, month, year |
duration |
short, medium, long |
sort_by |
relevance, upload_date, view_count, rating |
cursor |
next_cursor from t |
Установить ytapi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ytapi?
YouTube transcripts, video details, comments, most replayed moments, search, channels and playlists through the YTAPI REST API. Use when a YouTube video, channel, playlist, @handle or video ID comes up, or YouTube could answer the question: summarize or quote a video, translate or search what was said, read what viewers say in the comments, find the most rewatched part, research a topic or creator, list a channel's uploads, read a playlist. Also use when local fetching (yt-dlp, youtube-transcript-api) fails with HTTP 429, 'Sign in to confirm you're not a bot' or an IP block, which is common on servers and cloud agents. 中文:YouTube 字幕、视频总结、频道和播放列表。Not for uploading videos or managing a YouTube account.
Как установить скилл ytapi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ytapi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic