YepAPI
YouTube API

YouTube Shorts Feed

Get a shorts sequence/feed for infinite scroll.

POST/v1/youtube/shorts
$0.01/call

Usage

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

Request Body

ParameterTypeRequiredDescriptionDefault
paramsstringYesContinuation token from previous response

Response

{
  "ok": true,
  "data": {
    "data": [
      {
        "type": "shorts",
        "videoId": "abc123",
        "title": "Wait for the ending...",
        "viewCountText": "1.2M 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.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. 1.2M views)
data.data[].thumbnailobject[]Thumbnail images at various resolutions
data.continuationstringToken to continue fetching the next batch of Shorts

On this page