Social Media

YouTube API

youtube.com

YouTube — search videos, get video details with tags and description, view channel info, read top comments, and get search suggestions.

Actions
6
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": "<channel_id>"
    }
  }'

6 actions on youtube.com

Read

  • Channel Info

    yt_channelread1 credit / call

    Returns YouTube channel details — name, description, avatar, banner, and keywords.

    channel_id
    string · required
  • Related Videos

    yt_relatedread1 credit / call

    Returns recommended "Up next" videos for a given YouTube video.

    video_id
    string · required
  • Search Suggestions

    yt_suggestionsread1 credit / call

    Returns YouTube search autocomplete suggestions for a partial query.

    query
    string · required
  • Search Videos

    yt_searchread1 credit / call

    Returns YouTube videos matching a search query with title, channel, views, duration, and thumbnail.

    query
    string · required
    limit
    integer
  • Video Comments

    yt_commentsread1 credit / call

    Returns top comments on a YouTube video with author, text, likes, and pin status.

    video_id
    string · required
    limit
    integer
  • Video Details

    yt_videoread1 credit / call

    Returns full video details — title, author, views, duration, description, tags, and thumbnail.

    video_id
    string · required

YouTube API questions

Is there an API for YouTube?
YouTube does not offer a public data API for this, but Anakin Wire provides 6 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

All Social Media sites