YepAPI
YouTube API

Channel Videos

List all videos from a YouTube channel.

POST/v1/youtube/channel-videos
$0.01/call

Usage

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

Request Body

ParameterTypeRequiredDescriptionDefault
idstringYesYouTube channel ID
sort_bystringNoSort ordernewest
tokenstringNoPagination token
geostringNoCountry code for geo-specific results
langstringNoLanguage code

Response

{
  "ok": true,
  "data": {
    "meta": {
      "channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
      "title": "TED"
    },
    "data": [
      {
        "type": "video",
        "videoId": "abc123",
        "title": "The most important talk of the year",
        "viewCount": "1200000",
        "viewCountText": "1.2M views",
        "publishedTimeText": "2 weeks ago",
        "lengthText": "15:42",
        "thumbnail": [
          { "url": "https://i.ytimg.com/vi/abc123/hqdefault.jpg", "width": 168, "height": 94 }
        ]
      }
    ],
    "continuation": "4qmF..."
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.metaobjectChannel metadata
data.meta.channelIdstringUnique YouTube channel identifier
data.meta.titlestringChannel display name
data.dataobject[]Array of video objects
data.data[].typestringContent type (typically video)
data.data[].videoIdstringUnique YouTube video identifier
data.data[].titlestringVideo title as displayed on YouTube
data.data[].viewCountstringRaw view count as a numeric string
data.data[].viewCountTextstringHuman-readable view count (e.g. 1.2M views)
data.data[].publishedTimeTextstringRelative publish time (e.g. 2 weeks ago)
data.data[].lengthTextstringVideo duration in H:MM:SS or MM:SS format
data.data[].thumbnailobject[]Video thumbnail images at various resolutions
data.continuationstringToken to fetch the next page of results

On this page