Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ytapi

БесплатноБез исполняемых скриптовНе проверен

YouTube transcripts, video details, comments, most replayed moments, search, channels and playlists through the YTAPI REST API. Use when a YouTube video…

ytapiот 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=text or format=markdown (smaller and easier to read). Use segments when you need timestamps, for example to link to a moment: https://youtu.be/VIDEO_ID?t=SECONDS.
  • JSON responses include language and track_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
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить ytapi с