youtube-apiyoutube-data-api

How to detect official artist channel using youtube api?


How to detect is it official artist channel or not, using youtube api? Official channel has special label next to title, like this one https://www.youtube.com/channel/UCBQZwaNPFfJ1gZ1fLZpAEGw, but it doesn't appear in title from api.


Solution

  • 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/channels?part=approval&id=CHANNEL_ID, you will get whether or not the given channel is an official artist in item["approval"] by checking if this value is Official Artist Channel.

    For instance the YouTube channel UC0aMaqIs997ggjDs_Q9UYiw is an official artist channel, with this channel id you would get:

    {
        "kind": "youtube#channelListResponse",
        "etag": "NotImplemented",
        "items": [
            {
                "kind": "youtube#channel",
                "etag": "NotImplemented",
                "id": "UC0aMaqIs997ggjDs_Q9UYiw",
                "approval": "Official Artist Channel"
            }
        ]
    }
    

    Note that for verified channels, such as UCX6OQ3DkcsbYNE6H8uQQuVA, it returns Verified.