YepAPI
YouTube API

Channel Shorts

List shorts from a YouTube channel.

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

Usage

const res = await fetch('https://api.yepapi.com/v1/youtube/channel-shorts', {
  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.data, data.continuation);
curl -X POST https://api.yepapi.com/v1/youtube/channel-shorts \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "UCAuUUnT6oDeKwE6v1NGQxug"}'

Request Body

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

Response

{
  "ok": true,
  "data": {
    "meta": {
      "channelId": "UCAuUUnT6oDeKwE6v1NGQxug"
    },
    "data": [
      {
        "type": "shorts",
        "videoId": "abc123",
        "title": "Quick Tip: Public Speaking",
        "viewCountText": "5M views",
        "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.dataobject[]Array of Shorts objects
data.data[].typestringContent type (typically shorts)
data.data[].videoIdstringUnique YouTube video/Short identifier
data.data[].titlestringShort title as displayed on YouTube
data.data[].viewCountTextstringHuman-readable view count (e.g. 5M views)
data.data[].thumbnailobject[]Thumbnail images at various resolutions
data.continuationstringToken to fetch the next page of results

On this page