v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📢 Public APIs

Get related videos

The API endpoint returns a list of recommended YouTube videos based on the videoId provided in the path variable.

When accessing this endpoint and passing a valid video ID, you will receive a response containing a list of videos that are related to the current video.

These recommended videos can be displayed in a list view on the right side of the user interface, providing users with relevant and engaging content that complements the video they are currently viewing.

Disclaimer:

Data provided by the API is static and not real-time.

This simplifies the process of developing a YouTube clone, allowing developers to solely focus on UI design and creativity, without worrying about complex API key configuration.

get/public/youtube/related/{videoId}

Query parameters

pagestring
Example:1
limitstring
Example:5

Response

Get related videos

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "currentPageItems": 5,
    "data": [
      {
        "items": {
          "contentDetails": {
            "caption": "false",
            "contentRating": {},
            "definition": "hd",
            "dimension": "2d",
            "duration": "PT1H17M17S",
            "licensedContent": true,
            "projection": "rectangular"
          },
          "id": "zg06ec5arCs",
          "kind": "youtube#video",
          "snippet": {
            "categoryId": "28",
            "channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
            "channelTitle": "Hitesh Choudhary",
            "defaultAudioLanguage": "en",
            "description": "Here is the link to get code files for this video:\nhttps://hitesh.pieces.cloud/?p=a2ac4ab4b3\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
            "liveBroadcastContent": "none",
            "localized": {
              "description": "Here is the link to get code files for this video:\nhttps://hitesh.pieces.cloud/?p=a2ac4ab4b3\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
              "title": "Learn to build file based routing from scratch like Nextjs"
            },
            "publishedAt": "2023-07-12T12:20:42Z",
            "tags": [
              "Programming",
              "javascript",
              "cloud",
              "pieces",
              "nextjs",
              "file based routing",
              "learn react"
            ],
            "thumbnails": {
              "default": {
                "height": 90,
                "url": "https://i.ytimg.com/vi/zg06ec5arCs/default.jpg",
                "width": 120
              },
              "high": {
                "height": 360,
                "url": "https://i.ytimg.com/vi/zg06ec5arCs/hqdefault.jpg",
                "width": 480
              },
              "maxres": {
                "height": 720,
                "url": "https://i.ytimg.com/vi/zg06ec5arCs/maxresdefault.jpg",
                "width": 1280
              },
              "medium": {
                "height": 180,
                "url": "https://i.ytimg.com/vi/zg06ec5arCs/mqdefault.jpg",
                "width": 320
              },
              "standard": {
                "height": 480,
                "url": "https://i.ytimg.com/vi/zg06ec5arCs/sddefault.jpg",
                "width": 640
              }
            },
            "title": "Learn to build file based routing from scratch like Nextjs"
          },
          "statistics": {
            "commentCount": "43",
            "favoriteCount": "0",
            "likeCount": "292",
            "viewCount": "4144"
          }
        },
        "kind": "youtube#videoListResponse"
      },
      {
        "items": {
          "contentDetails": {
            "caption": "false",
            "contentRating": {},
            "definition": "hd",
            "dimension": "2d",
            "duration": "PT13M40S",
            "licensedContent": true,
            "projection": "rectangular"
          },
          "id": "P1xDCeg10FY",
          "kind": "youtube#video",
          "snippet": {
            "categoryId": "28",
            "channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
            "channelTitle": "Hitesh Choudhary",
            "defaultAudioLanguage": "en",
            "description": "https://www.benq.com/en-in/monitor/home/gw3290qt.html?utm_source=youtube.com&utm_medium=social&utm_campaign=lcd-productivity-review-gw3290qt-hitesh-choudhary-youtube-202306&utm_content=review&utm_term=learn-more\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
            "liveBroadcastContent": "none",
            "localized": {
              "description": "https://www.benq.com/en-in/monitor/home/gw3290qt.html?utm_source=youtube.com&utm_medium=social&utm_campaign=lcd-productivity-review-gw3290qt-hitesh-choudhary-youtube-202306&utm_content=review&utm_term=learn-more\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
              "title": "Is this the best monitor for coders? | BenQ GW3290QT | Eye-Care Programming Monitor"
            },
            "publishedAt": "2023-07-09T09:38:56Z",
            "tags": [
              "Programming",
              "coding",
              "monitor for coders",
              "vertical monitor",
              "best coding monitor",
              "true color monitor"
            ],
            "thumbnails": {
              "default": {
                "height": 90,
                "url": "https://i.ytimg.com/vi/P1xDCeg10FY/default.jpg",
                "width": 120
              },
              "high": {
                "height": 360,
                "url": "https://i.ytimg.com/vi/P1xDCeg10FY/hqdefault.jpg",
                "width": 480
              },
              "maxres": {
                "height": 720,
                "url": "https://i.ytimg.com/vi/P1xDCeg10FY/maxresdefault.jpg",
                "width": 1280
              },
              "medium": {
                "height": 180,
                "url": "https://i.ytimg.com/vi/P1xDCeg10FY/mqdefault.jpg",
                "width": 320
              },
              "standard": {
                "height": 480,
                "url": "https://i.ytimg.com/vi/P1xDCeg10FY/sddefault.jpg",
                "width": 640
              }
            },
            "title": "Is this the best monitor for coders? | BenQ GW3290QT | Eye-Care Programming Monitor"
          },
          "statistics": {
            "commentCount": "67",
            "favoriteCount": "0",
            "likeCount": "680",
            "viewCount": "15300"
          }
        },
        "kind": "youtube#videoListResponse"
      },
      {
        "items": {
          "contentDetails": {
            "caption": "false",
            "contentRating": {},
            "definition": "hd",
            "dimension": "2d",
            "duration": "PT41S",
            "licensedContent": true,
            "projection": "rectangular"
          },
          "id": "8KgQEk22sYY",
          "kind": "youtube#video",
          "snippet": {
            "categoryId": "28",
            "channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
            "channelTitle": "Hitesh Choudhary",
            "defaultAudioLanguage": "en",
            "description": "",
            "liveBroadcastContent": "none",
            "localized": {
              "description": "",
              "title": "Here is a hack for developers. @getpieces"
            },
            "publishedAt": "2023-06-22T18:47:51Z",
            "thumbnails": {
              "default": {
                "height": 90,
                "url": "https://i.ytimg.com/vi/8KgQEk22sYY/default.jpg",
                "width": 120
              },
              "high": {
                "height": 360,
                "url": "https://i.ytimg.com/vi/8KgQEk22sYY/hqdefault.jpg",
                "width": 480
              },
              "maxres": {
                "height": 720,
                "url": "https://i.ytimg.com/vi/8KgQEk22sYY/maxresdefault.jpg",
                "width": 1280
              },
              "medium": {
                "height": 180,
                "url": "https://i.ytimg.com/vi/8KgQEk22sYY/mqdefault.jpg",
                "width": 320
              },
              "standard": {
                "height": 480,
                "url": "https://i.ytimg.com/vi/8KgQEk22sYY/sddefault.jpg",
                "width": 640
              }
            },
            "title": "Here is a hack for developers. @getpieces"
          },
          "statistics": {
            "commentCount": "22",
            "favoriteCount": "0",
            "likeCount": "1595",
            "viewCount": "19224"
          }
        },
        "kind": "youtube#videoListResponse"
      },
      {
        "items": {
          "contentDetails": {
            "caption": "false",
            "contentRating": {},
            "definition": "hd",
            "dimension": "2d",
            "duration": "PT22M41S",
            "licensedContent": true,
            "projection": "rectangular"
          },
          "id": "mPpHs5C-Qaw",
          "kind": "youtube#video",
          "snippet": {
            "categoryId": "28",
            "channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
            "channelTitle": "Hitesh Choudhary",
            "defaultAudioLanguage": "en",
            "description": "Use this link to check out:\nhttps://bit.ly/44d2Jux\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
            "liveBroadcastContent": "none",
            "localized": {
              "description": "Use this link to check out:\nhttps://bit.ly/44d2Jux\n\nFacebook: https://www.facebook.com/HiteshChoudharyPage\nInstagram: https://instagram.com/hiteshchoudharyofficial\nhomepage: http://www.hiteshChoudhary.com\n\nDisclaimer:\nIt doesn't feel good to have a disclaimer in every video but this is how the world is right now. \nAll videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.\n\nAll Amazon links are affiliate links (If any).",
              "title": "Future is AI and Low code tools | illa cloud"
            },
            "publishedAt": "2023-06-22T12:45:03Z",
            "tags": [
              "Programming",
              "cloud",
              "illa cloud",
              "low code",
              "artificial intelligence",
              "appwrite",
              "api"
            ],
            "thumbnails": {
              "default": {
                "height": 90,
                "url": "https://i.ytimg.com/vi/mPpHs5C-Qaw/default.jpg",
                "width": 120
              },
              "high": {
                "height": 360,
                "url": "https://i.ytimg.com/vi/mPpHs5C-Qaw/hqdefault.jpg",
                "width": 480
              },
              "maxres": {
                "height": 720,
                "url": "https://i.ytimg.com/vi/mPpHs5C-Qaw/maxresdefault.jpg",
                "width": 1280
              },
              "medium": {
                "height": 180,
                "url": "https://i.ytimg.com/vi/mPpHs5C-Qaw/mqdefault.jpg",
                "width": 320
              },
              "standard": {
                "height": 480,
                "url": "https://i.ytimg.com/vi/mPpHs5C-Qaw/sddefault.jpg",
                "width": 640
              }
            },
            "title": "Future is AI and Low code tools | illa cloud"
          },
          "statistics": {
            "commentCount": "33",
            "favoriteCount": "0",
            "likeCount": "447",
            "viewCount": "17231"
          }
        },
        "kind": "youtube#videoListResponse"
      },
      {
        "items": {
          "contentDetails": {
            "caption": "false",
            "contentRating": {},
            "definition": "hd",
            "dimension": "2d",
            "duration": "PT1H1S",
            "licensedContent": true,
            "projection": "rectangular"
          },
          "id": "RdEmvav6ZpE",
          "kind": "youtube#video",
          "snippet": {
            "categoryId": "28",
            "channelId": "UCXgGY0wkgOzynnHvSEVmE3A",
            "channelTitle": "Hitesh Choudhary",
            "defaultAudioLanguage": "en-US",
            "description": "Welcome to another saturday live for coders. Today I am bringing in Wesley Cope. He is currently at Appwrite, building Next Gen Open Source backend as a service. With so much of experience, post your interesting questions, and I will ask him.",
            "liveBroadcastContent": "none",
            "localized": {
              "description": "Welcome to another saturday live for coders. Today I am bringing in Wesley Cope. He is currently at Appwrite, building Next Gen Open Source backend as a service. With so much of experience, post your interesting questions, and I will ask him.",
              "title": "Saturday live with Wess from Appwrite | 20+ years of code"
            },
            "publishedAt": "2023-06-17T17:05:17Z",
            "tags": [
              "live",
              "coding",
              "appwrite",
              "technology",
              "ai"
            ],
            "thumbnails": {
              "default": {
                "height": 90,
                "url": "https://i.ytimg.com/vi/RdEmvav6ZpE/default.jpg",
                "width": 120
              },
              "high": {
                "height": 360,
                "url": "https://i.ytimg.com/vi/RdEmvav6ZpE/hqdefault.jpg",
                "width": 480
              },
              "maxres": {
                "height": 720,
                "url": "https://i.ytimg.com/vi/RdEmvav6ZpE/maxresdefault.jpg",
                "width": 1280
              },
              "medium": {
                "height": 180,
                "url": "https://i.ytimg.com/vi/RdEmvav6ZpE/mqdefault.jpg",
                "width": 320
              },
              "standard": {
                "height": 480,
                "url": "https://i.ytimg.com/vi/RdEmvav6ZpE/sddefault.jpg",
                "width": 640
              }
            },
            "title": "Saturday live with Wess from Appwrite | 20+ years of code"
          },
          "statistics": {
            "commentCount": "5",
            "favoriteCount": "0",
            "likeCount": "377",
            "viewCount": "5238"
          }
        },
        "kind": "youtube#videoListResponse"
      }
    ],
    "limit": 5,
    "page": 1,
    "totalItems": 58,
    "totalPages": 12
  },
  "message": "Related videos fetched successfully",
  "statusCode": 200,
  "success": true
}