YouTube Data API v3 check if a Video/Song has explicit lyrics

42 Views Asked by At

So, I am working with the YouTube Data API v3, specifically working on getting data from YouTube Music songs. On YouTube music and the actual youtube player, it tells you whether or not a video has explicit lyrics.

bottom of video player with parental advisory

I know this data is somewhere but I cannot find anywhere in the API support how to get this information.

I have tried using video.list() and can't find anything that will tell me whether or not the lyrics are explicit. Is this possible?

1

There are 1 best solutions below

3
Benjamin Loison On

One more time YouTube Data API v3 doesn't provide a basic feature.

I recommend you to try out my open-source YouTube operational API. Indeed by fetching https://yt.lemnoslife.com/videos?part=explicitLyrics&id=VIDEO_ID, you will get the boolean you are looking for in item["explicitLyrics"].

With the video id PvM79DJ2PmM you would get:

{
    "kind": "youtube#videoListResponse",
    "etag": "NotImplemented",
    "items": [
        {
            "kind": "youtube#video",
            "etag": "NotImplemented",
            "id": "PvM79DJ2PmM",
            "explicitLyrics": true
        }
    ]
}