Search code examples
google-apiyoutube-apiyoutube-data-api

How do you get a Youtube Channel's links (website) from the youtube/v3/channels API?


Looking at the doc:

https://developers.google.com/youtube/v3/docs/channels/list

I don't see any part to request to get the links or websites of a channel. If you go to any channel "About" page on their normal site outside the API it lists the channel's external websites in a section called "links".

Is there a way to request that google add this?


Solution

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

    I would recommend you to try out my open-source YouTube operational API. Indeed by fetching https://yt.lemnoslife.com/channels?part=about&id=CHANNEL_ID you will retrieve the links of the About section of the given YouTube channel in item["links"].

    Example of YouTube channel (UC9-y-6csu5WGm29I7JiwpnA) having such website URLs in its About tab. My API would return for it:

    {
        "kind": "youtube#channelListResponse",
        "etag": "NotImplemented",
        "items": [
            {
                "kind": "youtube#channel",
                "etag": "NotImplemented",
                "id": "UC9-y-6csu5WGm29I7JiwpnA",
                "countryChannelId": "UC9-y-6csu5WGm29I7JiwpnA",
                "about": {
                    "stats": {
                        "joinedDate": 1239321600,
                        "viewCount": 201152616,
                        "subscriberCount": 2320000
                    },
                    "description": "Videos all about computers and computer stuff. Sister channel of Numberphile.",
                    "title": "Computerphile",
                    "details": {
                        "location": null
                    },
                    "links": [
                        {
                            "url": "http:\/\/www.facebook.com\/computerphile",
                            "title": "Facebook"
                        },
                        {
                            "url": "https:\/\/twitter.com\/computer_phile",
                            "title": "Twitter"
                        }
                    ],
                    "handle": "@Computerphile"
                }
            }
        ]
    }