YouTube API Endpoints Documentation

Endpoint 1: Thumbnails

URL: https://redwanul.site/api/v1/thumbnails?url=YouTube Video URL

Description: Retrieves thumbnails of various qualities from a YouTube video.

Usage Example: https://redwanul.site/api/v1/thumbnails?url=https://youtu.be/YiSQ_db-Dcw

Live Test: click here

Response (JSON):

{
    "default": "https://img.youtube.com/vi/VIDEO_ID/default.jpg",
    "medium": "https://img.youtube.com/vi/VIDEO_ID/mqdefault.jpg",
    "high": "https://img.youtube.com/vi/VIDEO_ID/hqdefault.jpg",
    "standard": "https://img.youtube.com/vi/VIDEO_ID/sddefault.jpg",
    "maxResolution": "https://img.youtube.com/vi/VIDEO_ID/maxresdefault.jpg"
}
Endpoint 2: Retrieves Video Links with Info

URL: https://redwanul.site/api/v1/videos?url=YouTube Video URL

Description: Retrieves video links with information for a single YouTube video.

Usage Example: https://redwanul.site/api/v1/videos?url=https://youtu.be/71hi9H6fZuc

Live Test: click here

Response (JSON):

{
  "videoId": "VIDEO_ID",
  "title": "VIDEO_TITLE",
  "description": "VIDEO_DESCRIPTION",
  "tags": [
    "TAG_1",
    "TAG_2",
    "TAG_3",
    // More tags...
  ],
  "duration": "VIDEO_DURATION",
  "views": "VIDEO_VIEWS",
  "uploadDate": "VIDEO_UPLOAD_DATE",
  "category": "VIDEO_CATEGORY",
  "uploader": {
    "name": "UPLOADER_NAME",
    "channelId": "CHANNEL_ID",
    "channelUrl": "CHANNEL_URL",
    "handleId": "HANDLE_ID",
    "newChannelHandle": "NEW_CHANNEL_HANDLE"
  },
  "formats": [
    {
      "itag": ITAG,
      "container": "CONTAINER",
      "qualityLabel": "QUALITY_LABEL",
      "bitrate": "BITRATE",
      "width": VIDEO_WIDTH,
      "height": VIDEO_HEIGHT,
      "fps": FPS,
      "videoCodec": "VIDEO_CODEC",
      "audioCodec": "AUDIO_CODEC",
      "size": "VIDEO_SIZE",
      "url": "VIDEO_URL",
      "hasVideo": HAS_VIDEO,
      "hasAudio": HAS_AUDIO,
      "isLive": IS_LIVE,
      "isHLS": IS_HLS,
      "isDashMPD": IS_DASH_MPD
    },
    // Other video streams...
  ]
}
Endpoint 3: Retrieves Audio Links with Info

URL: https://redwanul.site/api/v1/audio?url=YouTube Video URL

Description: Retrieves audio links with information for a single YouTube video.

Usage Example: https://redwanul.site/api/v1/audio?url=https://youtu.be/71hi9H6fZuc

Live Test: click here

Response (JSON):

{
  "videoId": "VIDEO_ID",
  "title": "VIDEO_TITLE",
  "description": "VIDEO_DESCRIPTION",
  "tags": [
    "TAG_1",
    "TAG_2",
    "TAG_3",
    // More tags...
  ],
  "duration": "AUDIO_DURATION",
  "views": "VIDEO_VIEWS",
  "uploadDate": "VIDEO_UPLOAD_DATE",
  "category": "AUDIO_CATEGORY",
  "uploader": {
    "name": "UPLOADER_NAME",
    "channelId": "CHANNEL_ID",
    "channelUrl": "CHANNEL_URL",
    "handleId": "HANDLE_ID",
    "newChannelHandle": "NEW_CHANNEL_HANDLE"
  },
  "formats": [
    {
      "itag": ITAG,
      "container": "CONTAINER",
      "bitrate": "BITRATE",
      "audioCodec": "AUDIO_CODEC",
      "size": "AUDIO_SIZE",
      "url": "AUDIO_URL",
      "hasAudio": HAS_AUDIO,
      "isLive": IS_LIVE,
      "isHLS": IS_HLS,
      "isDashMPD": IS_DASH_MPD
    },
    // Other audio streams...
  ]
}
Endpoint 4: Retrieves Captions Links with Info

URL: https://redwanul.site/api/v1/captions?url=YouTube Video URL

Description: Retrieves captions links with information from YouTube Video.

Usage Example: https://redwanul.site/api/v1/captions?url=https://youtu.be/71hi9H6fZuc

Live Test: click here

Response (JSON):

{
  "captions": [
    {
      "fullLanguageName": "LANGUAGE_NAME_1",
      "languageCode": "LANGUAGE_CODE_1",
      "trackUrl": "TRACK_URL_1"
    },
    {
      "fullLanguageName": "LANGUAGE_NAME_2",
      "languageCode": "LANGUAGE_CODE_2",
      "trackUrl": "TRACK_URL_2"
    }
    // More caption tracks...
  ]
}
Endpoint 5: Full Playlist Calculation with Playback speeds

URL: https://redwanul.site/api/v1/totalcalc?url=YouTube Playlist URL

Description: Calculates total information for a YouTube playlist, including playback speeds.

Usage Example: https://redwanul.site/api/v1/totalcalc?url=https://www.youtube.com/playlist?list=PLyfPcUoivAtZxH4OldLYK3wYZLhFCyAS6

Live Test: click here

Response (JSON):

{
  "totalVideos": "10 (excluding unavailable or hidden videos)",
  "totalDuration": "2 Hours, 30 Minutes, 15 seconds",
  "playbackSpeeds": [
  "1.25x : 1 Hour, 12 Minutes, 12 seconds",
  "1.50x : 1 Hour, 0 Minutes, 30 seconds",
  // Other playback speeds...
  ]
}
Endpoint 6: Specific Video Range Calculation with Playback speeds

URL: https://redwanul.site/api/v1/rangecalc?url=YouTube Playlist URL&start=Start Video Number&end=End Video Number

Description: Calculates information for a specified range of videos in a YouTube playlist.

Usage Example: https://redwanul.site/api/v1/rangecalc?url=https://www.youtube.com/playlist?list=PLyfPcUoivAtZxH4OldLYK3wYZLhFCyAS6&start=23&end=65

Live Test: click here

Response (JSON):

{
  "totalVideos": 43,
  "totalDuration": "1 Hour, 15 Minutes, 30 seconds",
  "playbackSpeeds": [
  "1.25x : 1 Hour, 0 Minutes, 24 seconds",
  "1.50x : 50 Minutes, 20 seconds",
  // Other playback speeds...
  ]
}
Endpoint 7: Custom Speeds

URL: https://redwanul.site/api/v1/customspeed?url=YouTube Playlist URL&speeds=Speed 1,Speed 2,...

Description: Calculates information for a YouTube playlist at custom playback speeds.

Usage Example: https://redwanul.site/api/v1/customspeed?url=https://www.youtube.com/playlist?list=PLyfPcUoivAtZxH4OldLYK3wYZLhFCyAS6&speeds=1.25,1.85

Live Test: click here

Response (JSON):

{
  "playlistUrl": "https://www.youtube.com/playlist?list=PLAYLIST_ID",
  "totalVideos": 10,
  "totalDuration": "2 Hours, 30 Minutes, 15 seconds",
  "playbackSpeeds": [
  "1.25x : 1 Hour, 12 Minutes, 12 seconds",
  "1.85x : 0 Hour, 45 Minutes, 30 seconds",
  // Other playback speeds...
  ]
}
Endpoint 8: Playlist Videos Information

URL: https://redwanul.site/api/v1/playlistvideosinfo?url=YouTube Playlist URL

Description: Retrieve information about videos in a YouTube playlist.

Usage Example: https://redwanul.site/api/v1/playlistvideosinfo?url=https://www.youtube.com/playlist?list=PLKsfKSQdxlQsuQhGjsTDbwhJM5GFaRGqL

Live Test: click here

Response (JSON):

[
  {
  "videoNumber": 1,
  "title": "Video Title 1",
  "duration": "10 Minutes, 30 Seconds",
  "views": 1000,
  "uploadDate": "January 1, 2024",
  "uploader": {
    "name": "Uploader Name 1",
    "channelUrl": "CHANNEL_URL"
    }
  },
  // Results for other videos...
]
Endpoint 9: Multiple Playlists Information

URL: https://redwanul.site/api/v1/playlistscalc?urls=YouTube Playlist URL 1,YouTube Playlist URL 2,...

Description: Multiple YouTube playlists information.

Usage Example: https://redwanul.site/api/v1/playlistscalc?urls=https://www.youtube.com/playlist?list=PLyfPcUoivAtZxH4OldLYK3wYZLhFCyAS6,https://www.youtube.com/playlist?list=PLKsfKSQdxlQsuQhGjsTDbwhJM5GFaRGqL

Live Test: click here

Response (JSON):

[
{
  "playlistUrl": "https://www.youtube.com/playlist?list=PLAYLIST_ID_1",
  "totalVideos": 10,
  "totalDuration": "2 Hours, 30 Minutes, 15 seconds",
  "averagePerVideo": "15 Minutes, 1 second",
  "playbackSpeeds": [
    "1.25x : 1 Hour, 12 Minutes, 12 seconds",
    "1.50x : 1 Hour, 0 Minutes, 30 seconds",
    // Other playback speeds...
  ]
},
  // Results for other playlist URLs...
]
Endpoint 10: Video Information

URL: https://redwanul.site/api/v1/videosinfo?urls=YouTube URL 1,YouTube URL 2,...

Description: Retrieves information for multiple YouTube videos.

Usage Example: https://redwanul.site/api/v1/videosinfo?urls=https://youtu.be/71hi9H6fZuc,https://youtu.be/YiSQ_db-Dcw

Live Test: click here

Response (JSON):

[
{
  "videoNumber": 1,
  "videoId": "VIDEO_ID",
  "title": "Video Title 1",
  "description": "Video description goes here.",
  "tags": ["Tag1", "Tag2", "Tag3"],
  "duration": "1 Hour, 30 Minutes, 15 seconds",
  "views": 10000,
  "uploadDate": "Thu Jan 06 2022",
  "category": "VIDEO_CATEGORY",
  "uploader": {
    "channelId": "CHANNEL_ID",
    "channelUrl": "CHANNEL_URL",
    "handleId": "HANDLE_ID",
    "newChannelHandleUrl": "NEW_CHANNEL_HANDLE_URL"
  }
},
  // Results for other video URLs...
]
Copied to clipboard !