Javascript required
Skip to content Skip to sidebar Skip to footer

How to Programmatically Read My List of Subscribed Channels on Youtube C#

YouTube Subscribe Button: How to Get People to Subscribe to Your Channel From a Link

Did you know yous can prompt people to subscribe when they visit your channel?

Here is what this volition look like to someone who clicks the link on a laptop or desktop computer:

freeCodeCamp_org_-_YouTube
YouTube will bear witness a Confirm channel subscription bulletin.

And don't worry – if someone is already a subscriber to your aqueduct when they click this link, they will just run into your channel like normal, without the subscription confirmation message.

The Two Methods of Getting People to Subscribe to Your YouTube Aqueduct Directly

There are two main methods you can use to reach this goal of getting people to subscribe to your channel straight:

  1. A YouTube Subscribe link you can utilise anywhere – including social media sites and messaging tools.
  2. A YouTube Subscribe push you can employ anywhere where you tin embed JavaScript, such as your personal website.

YouTube has a feature where you lot can only add together the ?sub_confirmation=ane parameter to your YouTube channel URL.

Over again, this is perfect for linking to your YouTube channel from social media or another identify where you don't take the ability to insert code for a proper subscribe push.

In that location are two types of channels on YouTube:

  1. Channel Channels
  2. Users Channels

In practice, there is no major divergence between these types of channels. They each only utilise a slightly different URL structure.

You tin tell your aqueduct uses the "aqueduct" structure by visiting your channel and seeing whether it has the discussion "aqueduct" in the address bar.

Here'southward an example:

                https://www.youtube.com/aqueduct/freecodecamp              

Meet the discussion "aqueduct" here? So in this case, you tin apply this construction for your link:

                https://world wide web.youtube.com/channel/<YOUR Channel ID>?sub_confirmation=i              

You lot would merely replace the <YOUR CHANNEL ID> in this URL with your channel's ID, which you can find by going to your YouTube aqueduct.

It will either be a custom name (in this instance, freecodecamp) or information technology will be a string of base-64 characters similar this: UC0syIz79dzjMXIf5VdJ65EA

In one case you add your channel ID to that link, y'all'll be good to become. The people who click that link will not merely be taken to your channel, just they'll also see the subscription confirmation prompt.

Some older channels are still gear up as users rather than channels. You can tell your channel uses the "user" structure by visiting your channel and seeing whether it has the word "user" in the address bar.

Here's an example:

                https://www.youtube.com/user/thenewboston              

This channel is gear up as a user.

In this case, you would employ this construction:

                https://world wide web.youtube.com/user/<YOUR Aqueduct ID>?sub_confirmation=1              

You would just replace the <YOUR Channel ID> in this URL with your channel'due south ID. It volition either be a custom name (in this case, thenewboston) or it will be a cord of base-64 characters similar this: UC0syIz79dzjMXIf5VdJ65EA

In one case you add your channel ID to that link, you'll be practiced to go.

How to Brand Your Own YouTube Subscribe Push button

All right – here is the fun function. YouTube gives you a fashion to embed subscribe buttons direct into your website.

Here is what one of these buttons looks similar:

Configure_a_Button_-_-_YouTube_Subscribe_Button_-_-_Google_Developers
This is a static image that leads to a subscribe prompt.

And hither's the embed-able HTML code you would add together to your weblog. Note that this code will import Google'due south platform.js JavaScript library in order to dynamically prove the push and your current subscriber count.

                <script src="https://apis.google.com/js/platform.js"></script>  <div class="1000-ytsubscribe" data-channelid="<YOUR Aqueduct ID>" data-layout="full" data-theme="dark" data-count="default"></div>              

Yous tin embed this lawmaking. Be certain to replace <YOUR CHANNEL ID> with the channel ID you see when you visit your page.

If you have a custom YouTube channel URL like https://www.youtube.com/freecodecamp you may exist able to use that as your aqueduct ID, but I find it more than reliable to use the full channel 24-character ID.

How to Customize Your YouTube Subscribe Button

There are 2 other ways yous tin customize your subscribe push button.

How to Show Your Channel Name and Logo in your Subscribe Push button

Y'all can change data-layout to be either default or total (which will testify your channel name and icon).

Here is what this looks similar when y'all set data-layout="default":

Configure_a_Button_-_-_YouTube_Subscribe_Button_-_-_Google_Developers-1
This is a static image that would pb to a subscribe prompt.

And here's what this looks like when you fix data-layout="full":

Configure_a_Button_-_-_YouTube_Subscribe_Button_-_-_Google_Developers
This is a static prototype that leads to a subscribe prompt.

You can also ready the theme to dark with data-theme="dark".

And you can hibernate your subscriber count completely with information-count="hidden". If you only take a handful of subscribers, y'all may desire to hide this for a few months while yous build up a k subscribers or more, to avoid "negative social proof".

There are several reasons why I recommend using the link approach instead of these dynamic buttons.

  1. Advert blockers, firewalls, and browser plugins may block the button from rendering correctly or from working correctly. This push does involve pulling a JavaScript file from Google's CDNs, which means it won't return in China, for example, where Google is currently blocked.
  2. Information technology is hard to control the styling of these buttons, and they may end up looking bad on a mobile device.
  3. These buttons may lead to accessibility bug. The link, on the other hand, is just a link, and is piece of cake for people to apply in screen readers or other assistive tools.

Simply Google does support these YouTube subscription buttons as well, so it's up to y'all whether you desire to use them.

Google has an official tool for customizing these YouTube subscribe buttons. You can access it hither. Annotation that yous will still demand to accept access to the HTML of the page you desire to embed these buttons into.

Thanks for reading this guide, and I promise it has helped yous understand how these YouTube subscribe links and buttons piece of work, and how you can use them to get more than people to subscribe to your channel.

If y'all desire more tips on being a successful YouTube creator in general, you tin learn from our nonprofit's v+ years of experimentation that has helped united states get the largest programming aqueduct on YouTube.

Here's our free YouTube handbook, which besides includes a i hour video course. We designed information technology with software-focused creators in mind, but many of the techniques can be applied to other subject field domains. I hope information technology's helpful for you.

Cheers.

– Quincy



Learn to code for complimentary. freeCodeCamp's open source curriculum has helped more than than 40,000 people become jobs as developers. Get started

currhaptiotnohns.blogspot.com

Source: https://www.freecodecamp.org/news/youtube-subscribe-button-link/