YepAPI
YouTube API

Channel Home

Get channel homepage content from YouTube.

POST/v1/youtube/channel
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/youtube/channel', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ id: 'UCAuUUnT6oDeKwE6v1NGQxug' }),
});
const { data } = await res.json();
console.log(data.meta.title, data.data);
curl -X POST https://api.yepapi.com/v1/youtube/channel \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "UCAuUUnT6oDeKwE6v1NGQxug"}'

Request Body

ParameterTypeRequiredDescriptionDefault
idstringYesYouTube channel ID
geostringNoCountry code for geo-specific results
langstringNoLanguage code

Response

{
  "ok": true,
  "data": {
    "meta": {
      "title": "Google for Developers",
      "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
      "channelHandle": "@GoogleDevelopers",
      "description": "Subscribe to join a community of creative developers and learn the latest in Google technology...",
      "subscriberCount": 2620000,
      "subscriberCountText": "2.62M",
      "videosCount": 6300,
      "videosCountText": "6.3K videos",
      "isFamilySafe": true,
      "isUnlisted": false,
      "tabs": ["Home", "Videos", "Shorts", "Live", "Courses", "Playlists", "Posts", "Search"],
      "avatar": [{ "url": "https://yt3.ggpht.com/...", "width": 48, "height": 48 }],
      "banner": [{ "url": "https://yt3.ggpht.com/...", "width": 1060, "height": 175 }]
    },
    "data": [
      {
        "type": "player",
        "videoId": "bc5X2iVyJc0",
        "title": "Add Gemini Live agents to your video conferencing with Fishjam",
        "description": "Adrian from Software Mansion walks through how to connect...",
        "viewCount": "3174",
        "publishedTimeText": "5 days ago"
      },
      {
        "type": "video_listing",
        "title": "AI Tools & Innovations",
        "data": [
          {
            "type": "video",
            "videoId": "zEMXCoqJodE",
            "title": "AI coding with Gemini CLI",
            "lengthText": "38:29",
            "viewCount": "40532"
          }
        ]
      }
    ]
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.metaobjectChannel metadata
data.meta.titlestringChannel display name
data.meta.channelIdstringUnique YouTube channel identifier
data.meta.channelHandlestringChannel handle (e.g. @GoogleDevelopers)
data.meta.descriptionstringChannel description text
data.meta.subscriberCountnumberSubscriber count as a number
data.meta.subscriberCountTextstringFormatted subscriber count (e.g. 2.62M)
data.meta.videosCountnumberTotal number of videos on the channel
data.meta.videosCountTextstringFormatted video count (e.g. 6.3K videos)
data.meta.isFamilySafebooleanWhether the channel is marked as family-safe
data.meta.tabsstring[]Available channel tabs (e.g. Home, Videos, Shorts)
data.meta.avatarobject[]Channel profile picture at various sizes
data.meta.bannerobject[]Channel banner images at various sizes
data.dataobject[]Channel homepage content sections
data.data[].typestringSection type: player, video_listing, shorts_listing
data.data[].titlestringSection or video title
data.data[].videoIdstringVideo identifier (for player type)
data.data[].dataobject[]Nested video items (for video_listing type)

On this page