YouTube API
youtube.com
YouTube - video search and details, channel info, comments, and suggestions.
- Actions
- 7
- Category
- Social Media
- Login
- Not required
- Output
- JSON
Call the YouTube API
Submit a task, then poll the job until it settles. This example runs yt_channel.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "yt_channel",
"params": {
"channel_id": "UC8butISFwT-Wl7EV0hUK0BQ"
}
}'7 actions on youtube.com
Read
Channel Info
yt_channelread2 credits / callReturns channel details including name, description, avatar, banner, and keywords.
- channel_id
- string · required
Related Videos
yt_relatedread2 credits / callReturns recommended up next videos for a given video.
- video_id
- string · required
Search Suggestions
yt_suggestionsread2 credits / callReturns search autocomplete suggestions for a partial query.
- query
- string · required
Video Comments
yt_commentsread2 credits / callReturns video comments with optional reply walking, up to 10,000 comments.
- video_id
- string · required
- limit
- integer
- include_replies
- boolean
- sort
- string
Video Details
yt_videoread2 credits / callReturns full video details including title, author, views, duration, description, tags, and thumbnail.
- video_id
- string · required
Video Search
yt_searchread2 credits / callReturns videos matching a query with title, channel, views, duration, and thumbnail.
- query
- string · required
- limit
- integer
Video Transcript
youtube_transcriptread2 credits / callGet the transcript of a YouTube video from its captions (uploaded or YouTube's auto-generated), as plain text and timed segments, with the list of caption languages available. Videos without captions return has_transcript false.
- video_url
- string · required
- language
- string
YouTube API questions
- Is there an API for YouTube?
- YouTube does not offer a public data API for this, but Anakin Wire provides 7 maintained endpoints for youtube.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape YouTube data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when youtube.com changes its markup, Anakin updates the action.
- Do I need a YouTube account?
- No. Every YouTube action listed here runs anonymously — no account and no credentials required.
- What does the YouTube API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Social Media APIs
Are.na
Are.na - channels, block search, channel details, and public profiles.
Bear Blog
Bear Blog - trending posts, articles, author blogs, and discover feed.
Cara
Cara artist social and portfolio platform
Public Facebook data: profiles, posts, comments and search.
Public Instagram data: profiles, posts, comments and search.
Public LinkedIn data: profiles, posts, comments and search.