{"id":46,"date":"2020-03-03T19:44:29","date_gmt":"2020-03-03T14:14:29","guid":{"rendered":"https:\/\/ganofins.com\/blog\/?p=46"},"modified":"2020-10-02T18:07:34","modified_gmt":"2020-10-02T12:37:34","slug":"creating-youtube-live-subscriber-count-website","status":"publish","type":"post","link":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/","title":{"rendered":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API"},"content":{"rendered":"\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\">Hey Guys,<br\/>Today I will tell you how you can use\u00a0<a href=\"https:\/\/developers.google.com\/youtube\/\"><strong>YouTube API<\/strong><\/a>\u00a0to display real-time live subscriber count of any YouTube channel. To display the real-time subscribe count of a youtube channel we need to use this\u00a0<strong><a href=\"https:\/\/developers.google.com\/youtube\/\">API<\/a><\/strong> by YouTube.<\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1583651742683\"><strong class=\"schema-how-to-step-name\">Open Google Developer Console<\/strong> <p class=\"schema-how-to-step-text\">Open\u00a0<strong><a href=\"https:\/\/console.developers.google.com\/\">Google Developer Console<\/a><\/strong> and register for Google account, if you don\u2019t have a one. Oh, What I am saying you definitely have a Google account \ud83d\ude42<br\/>Anyways, then create a new project and give it a name whatever you like.<br\/><br\/><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png\" class=\"attachment-full size-full\" alt=\"Google Developer Console\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png 1920w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console-300x169.png 300w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console-1024x576.png 1024w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console-768x432.png 768w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console-1536x864.png 1536w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console-800x450.png 800w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><br\/><br\/>You will see a similar page like above.<br\/><br\/>On the left side you can see a sidebar menu, click on Library menu. That 2nd menu option as like you can see above image.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1583652523692\"><strong class=\"schema-how-to-step-name\">Enable YouTube Data API v3<\/strong> <p class=\"schema-how-to-step-text\">Now here search for YouTube Data API through the Search bar. The one, at the top of the list just click on it.<br\/><br\/><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png\" class=\"attachment-full size-full\" alt=\"YouTube Data API\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png 1920w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api-300x169.png 300w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api-1024x576.png 1024w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api-768x432.png 768w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api-1536x864.png 1536w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api-800x450.png 800w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><br\/><br\/>Now click on that blue Enable button. Then after enabling the YouTube Data API from the library.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1583652644249\"><strong class=\"schema-how-to-step-name\">Create Credentials<\/strong> <p class=\"schema-how-to-step-text\">Now it\u2019s time to create the credentials for the your project. By that I mean to create API key. Using API we will able to get the exact the subscriber count of any YouTube channel. So, for that click on the Credential option (3rd option) on the left sidebar menu.<br\/>After opening the credential page, click on that blue Create Credential button and that will show you a list of options.<br\/>Then click on Create API Key option.<br\/><br\/><img decoding=\"async\" width=\"1920\" height=\"876\" src=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png\" class=\"attachment-full size-full\" alt=\"Google Developer Console API Dialog\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png 1920w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer-300x137.png 300w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer-1024x467.png 1024w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer-768x350.png 768w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer-1536x701.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><br\/><br\/>It will create a API key for your project.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1583654394056\"><strong class=\"schema-how-to-step-name\">Time to Code \u2665\ufe0f<\/strong> <p class=\"schema-how-to-step-text\">Create a simple HTML text file with a input text field and button in it. Like &#8211;<br\/><strong>HTML File (index.html) :-<\/strong><br\/><pre class=\"wp-block-code\"><code>\n&lt;h1 class=\"site_heading\"&gt;Live Sub Counter&lt;\/h1&gt;\n&lt;form class=\"form-inline\"&gt;\n    &lt;input type=\"text\" id=\"channel_id\" placeholder=\"Channel ID (UCC2-EIXX2LSYInLPSR3kxPQ)\"&gt;\n    &lt;input type=\"button\" onclick=\"result(document.getElementById('channel_id').value)\" value=\"Count\"&gt;\n&lt;\/form&gt;\n&lt;div class=\"main_content\"&gt;\n    &lt;span id=\"channel_name\"&gt;&lt;\/span>&lt;\/br&gt;\n    &lt;span id=\"sub_count\"&gt;&lt;\/span&gt;\n&lt;\/div&gt;\n&lt;script&gt;\nfunction result(channel_id)\n{\n\tif (channel_id === \"\")\n\t{\n\t\treturn alert(\"Please enter a Channel ID\");\n\t}\n\tdocument.getElementById(\"channel_id\").value = \"\";\n\t\n\t\/\/for the request\n\trequest_data(channel_id);\n}\n\nfunction request_data(channel_id)\n{\n\tvar xhttp = new XMLHttpRequest();\n\txhttp.onreadystatechange = function()\n\t{\n\t\tif (this.readyState == 4 && this.status == 200)\n\t\t{\n\t\t\tvar output = this.responseText;\n\t\t\toutput = JSON.parse(output);\n\t\t\tdocument.getElementById(\"channel_name\").innerHTML = output.items[0].snippet[\"title\"];\n\t\t\tdocument.getElementById(\"sub_count\").style.display = \"inline\";\n\t\t\tif(output.items[0].statistics[\"hiddenSubscriberCount\"] === true)\n\t\t\t{\n\t\t\t\tconsole.log(\"Subscriber count is hidden by the channel\");\n\t\t\t   \treturn document.getElementById(\"sub_count\").innerHTML = \"N\/A\";\n\t\t\t}\n\t\t\tdocument.getElementById(\"sub_count\").innerHTML = output.items[0].statistics[\"subscriberCount\"];\n\t\t}\n\t\telse if(this.readyState == 4)\n\t\t{\n\t\t\treturn console.log(JSON.parse(this.responseText)[\"error\"][\"message\"]);\n\t\t}\n\t};\n\txhttp.open(\"GET\", \"https:\/\/www.googleapis.com\/youtube\/v3\/channels?part=snippet,statistics&id=\"+channel_id+\"&key=AIzaSyDxF-lYhQOFbcA1qd22DMbmgoVRFzAE3hQ\", true);\n\txhttp.send();\n\tsetTimeout(request_data, 2500);\n}\n&lt;\/script&gt;\n<\/code><\/pre><br\/><strong>CSS File (style.css) :-<\/strong><br\/><pre class=\"wp-block-code\"><code>body{\n\tbackground-color: #e0d5d5;\n}\n\nh1.site_heading{\n\ttext-align: center;\n\tfont-size: 130px;\n}\n\ndiv.main_content{\n\ttext-align: center;\n}\n\nform{\n\ttext-align: center;\n}\n\ninput[type=text]{\n\tborder-radius: 5px;\n\twidth: 450px;\n\theight: 50px;\n\tpadding: 9px;\n\tborder: 1px solid #ccc;\n\tfont-size: 21px;\n}\n\ninput[type=button]{\n\twidth: 100px;\n\theight: 50px;\n\tfont-size: 20px;\n\tborder-radius: 8px;\n\tbackground-color: #007bff;\n\tcursor: pointer;\n\tmargin: 0px;\n\tcolor: white;\n\tborder: 1.5px solid white;\n}\n\ninput[type=button]:hover{\n\tbackground-color: #0033ff;\n}\n\n#channel_name{\n\tfont-size: 40px;\n\tfont-weight: bold;\n}\n\n#sub_count{\n\tmargin-top: 5px;\n\tdisplay: none;\n\tfont-size: 60px;\n\tbackground-color: black;\n\tcolor: white;\n\tborder-radius: 20px;\n\tpadding: 5px 10px;\n}<\/code><\/pre><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1583654394056\"><strong class=\"schema-how-to-step-name\">Time to Run the Code \ud83d\ude42<\/strong> <p class=\"schema-how-to-step-text\">After opening the index.html file in your browser, you will see site like below &#8211; <br\/><br\/><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\" class=\"attachment-full size-full\" alt=\"Live Sub Counter Website preview\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png 1920w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website-300x169.png 300w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website-1024x576.png 1024w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website-768x432.png 768w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website-1536x864.png 1536w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website-800x450.png 800w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><br\/><br\/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1583654394056\"><strong class=\"schema-how-to-step-name\">Worried that anyone can see your Private API Key \ud83d\ude41<\/strong> <p class=\"schema-how-to-step-text\">To not let others use your API key, we will restrict that API&#8217;s use to our site only. In order to do that click on the API Key in your Developer Console.<br\/><br\/><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction.png\" class=\"attachment-full size-full\" alt=\"API Restriction Page\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction.png 1920w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction-300x169.png 300w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction-1024x576.png 1024w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction-768x432.png 768w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction-1536x864.png 1536w, https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-api-restriction-800x450.png 800w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><br\/><br\/>You will see page like above. Like I selected HTTP referrers in Application restrictions. You can select the type of restrictions, you want to restrict your API based on. Then type the website address, only which can use your API Key. After that click on Save button.<\/p><\/li><\/ol><\/div>\n\n\n\n<p><strong><em>I also a created GitHub respository with all codes &#8211; <a href=\"https:\/\/github.com\/Tutorials-with-Ganofins\/Live-Counter\" target=\"_blank\" rel=\"noreferrer noopener\">YouTube Live Subscriber Counter Website<\/a><\/em><\/strong><\/p>\n\n\n\n<p>I also published a video on YouTube which explains how to create a Live YouTube subscriber count website.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Creating a Live Subscriber Count Website in Less than 30 minutes\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/41HyhhQNAsE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>Done. Now you can publish your site. I hope you understood how to create this site. If you have any queries regarding this. Please feel free to ask in the comment section below.<\/strong><\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\"><em><strong>Note &#8211; Since changes in YouTube&#8217;s policy. Now we can only see abbreviated subscriber count of a YouTube channel.<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I also a created GitHub respository with all codes &#8211; YouTube Live Subscriber Counter Website I also published a video on YouTube which explains how to create a Live YouTube subscriber count website. Done. Now you can publish your site&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":118,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,40,38],"tags":[23,26,13,29,28,27,12,22,24,25],"class_list":["post-46","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-tutorials","category-javascript","category-language","tag-create-youtube-live-subscriber-count-site","tag-create-youtube-sub-counter","tag-ganofins","tag-ganofins-blog","tag-live-count-using-youtube-api","tag-live-subscriber-count-using-youtube-api","tag-tutorials-with-ganofins","tag-youtube-api","tag-youtube-live-subscriber","tag-youtube-realtime-subscriber-count-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog<\/title>\n<meta name=\"description\" content=\"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog\" \/>\n<meta property=\"og:description\" content=\"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Ganofins Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-03T14:14:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-02T12:37:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ganofins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ganofins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\"},\"author\":{\"name\":\"ganofins\",\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"headline\":\"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API\",\"datePublished\":\"2020-03-03T14:14:29+00:00\",\"dateModified\":\"2020-10-02T12:37:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\"},\"wordCount\":497,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"image\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\",\"keywords\":[\"create youtube live subscriber count site\",\"create youtube sub counter\",\"ganofins\",\"ganofins blog\",\"live count using youtube api\",\"live subscriber count using youtube api\",\"tutorials with ganofins\",\"youtube api\",\"youtube live subscriber\",\"youtube realtime subscriber count website\"],\"articleSection\":[\"How To Tutorials\",\"JavaScript\",\"Language\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\",\"url\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\",\"name\":\"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\",\"datePublished\":\"2020-03-03T14:14:29+00:00\",\"dateModified\":\"2020-10-02T12:37:34+00:00\",\"description\":\"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber\",\"breadcrumb\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png\",\"width\":1920,\"height\":1080,\"caption\":\"Live Sub Counter Website preview\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ganofins.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ganofins.com\/blog\/#website\",\"url\":\"https:\/\/ganofins.com\/blog\/\",\"name\":\"Ganofins Blog\",\"description\":\"Learn Today Apply Today\",\"publisher\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ganofins.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\",\"name\":\"ganofins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776686253\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776686253\",\"caption\":\"ganofins\"},\"logo\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/\"}},{\"@type\":\"HowTo\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#howto-1\",\"name\":\"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#article\"},\"description\":\"Hey Guys,<br\/>Today I will tell you how you can use\u00a0<a href=\\\"https:\/\/developers.google.com\/youtube\/\\\"><strong>YouTube API<\/strong><\/a>\u00a0to display real-time live subscriber count of any YouTube channel. To display the real-time subscribe count of a youtube channel we need to use this\u00a0<strong><a href=\\\"https:\/\/developers.google.com\/youtube\/\\\">API<\/a><\/strong> by YouTube.\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583651742683\",\"name\":\"Open Google Developer Console\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Open\u00a0<strong><a href=\\\"https:\/\/console.developers.google.com\/\\\">Google Developer Console<\/a><\/strong> and register for Google account, if you don\u2019t have a one. Oh, What I am saying you definitely have a Google account :)<br\/>Anyways, then create a new project and give it a name whatever you like.<br\/><br\/><br\/><br\/>You will see a similar page like above.<br\/><br\/>On the left side you can see a sidebar menu, click on Library menu. That 2nd menu option as like you can see above image.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-3a45589d4bf92eb9fc1d2445a4a3d748\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png\",\"width\":1920,\"height\":1080,\"caption\":\"Google Developer Console\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583652523692\",\"name\":\"Enable YouTube Data API v3\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Now here search for YouTube Data API through the Search bar. The one, at the top of the list just click on it.<br\/><br\/><br\/><br\/>Now click on that blue Enable button. Then after enabling the YouTube Data API from the library.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-34b10e4723d1c17a1098e74aa923e1cd\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png\",\"width\":1920,\"height\":1080,\"caption\":\"YouTube Data API\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583652644249\",\"name\":\"Create Credentials\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Now it\u2019s time to create the credentials for the your project. By that I mean to create API key. Using API we will able to get the exact the subscriber count of any YouTube channel. So, for that click on the Credential option (3rd option) on the left sidebar menu.<br\/>After opening the credential page, click on that blue Create Credential button and that will show you a list of options.<br\/>Then click on Create API Key option.<br\/><br\/><br\/><br\/>It will create a API key for your project.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-ce917cf41a9450e7f2a35a94b7ee1bfb\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png\",\"width\":1920,\"height\":876,\"caption\":\"Google Developer Console API Dialog\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583654394056\",\"name\":\"Time to Code \u2665\ufe0f\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Create a simple HTML site with a input text field and button in it. Like -<br\/><br\/>\"}]}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog","description":"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/","og_locale":"en_US","og_type":"article","og_title":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog","og_description":"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber","og_url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/","og_site_name":"Ganofins Blog","article_published_time":"2020-03-03T14:14:29+00:00","article_modified_time":"2020-10-02T12:37:34+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png","type":"image\/png"}],"author":"ganofins","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ganofins","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#article","isPartOf":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/"},"author":{"name":"ganofins","@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"headline":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API","datePublished":"2020-03-03T14:14:29+00:00","dateModified":"2020-10-02T12:37:34+00:00","mainEntityOfPage":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/"},"wordCount":497,"commentCount":0,"publisher":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"image":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage"},"thumbnailUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png","keywords":["create youtube live subscriber count site","create youtube sub counter","ganofins","ganofins blog","live count using youtube api","live subscriber count using youtube api","tutorials with ganofins","youtube api","youtube live subscriber","youtube realtime subscriber count website"],"articleSection":["How To Tutorials","JavaScript","Language"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/","url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/","name":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API - Ganofins Blog","isPartOf":{"@id":"https:\/\/ganofins.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage"},"image":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage"},"thumbnailUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png","datePublished":"2020-03-03T14:14:29+00:00","dateModified":"2020-10-02T12:37:34+00:00","description":"Today I will tell you how to create a YouTube Live Subscriber Count Website using YouTube Data API v3. Using YouTube Data API we can display live subscriber","breadcrumb":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#primaryimage","url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/live-subscriber-count-website.png","width":1920,"height":1080,"caption":"Live Sub Counter Website preview"},{"@type":"BreadcrumbList","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ganofins.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API"}]},{"@type":"WebSite","@id":"https:\/\/ganofins.com\/blog\/#website","url":"https:\/\/ganofins.com\/blog\/","name":"Ganofins Blog","description":"Learn Today Apply Today","publisher":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ganofins.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db","name":"ganofins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776686253","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776686253","caption":"ganofins"},"logo":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/"}},{"@type":"HowTo","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#howto-1","name":"How to create a YouTube Live Subscriber Count\u00a0Website using YouTube API","mainEntityOfPage":{"@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#article"},"description":"Hey Guys,<br\/>Today I will tell you how you can use\u00a0<a href=\"https:\/\/developers.google.com\/youtube\/\"><strong>YouTube API<\/strong><\/a>\u00a0to display real-time live subscriber count of any YouTube channel. To display the real-time subscribe count of a youtube channel we need to use this\u00a0<strong><a href=\"https:\/\/developers.google.com\/youtube\/\">API<\/a><\/strong> by YouTube.","step":[{"@type":"HowToStep","url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583651742683","name":"Open Google Developer Console","itemListElement":[{"@type":"HowToDirection","text":"Open\u00a0<strong><a href=\"https:\/\/console.developers.google.com\/\">Google Developer Console<\/a><\/strong> and register for Google account, if you don\u2019t have a one. Oh, What I am saying you definitely have a Google account :)<br\/>Anyways, then create a new project and give it a name whatever you like.<br\/><br\/><br\/><br\/>You will see a similar page like above.<br\/><br\/>On the left side you can see a sidebar menu, click on Library menu. That 2nd menu option as like you can see above image."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-3a45589d4bf92eb9fc1d2445a4a3d748","url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/google-developer-console.png","width":1920,"height":1080,"caption":"Google Developer Console"}},{"@type":"HowToStep","url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583652523692","name":"Enable YouTube Data API v3","itemListElement":[{"@type":"HowToDirection","text":"Now here search for YouTube Data API through the Search bar. The one, at the top of the list just click on it.<br\/><br\/><br\/><br\/>Now click on that blue Enable button. Then after enabling the YouTube Data API from the library."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-34b10e4723d1c17a1098e74aa923e1cd","url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/youtube-data-api.png","width":1920,"height":1080,"caption":"YouTube Data API"}},{"@type":"HowToStep","url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583652644249","name":"Create Credentials","itemListElement":[{"@type":"HowToDirection","text":"Now it\u2019s time to create the credentials for the your project. By that I mean to create API key. Using API we will able to get the exact the subscriber count of any YouTube channel. So, for that click on the Credential option (3rd option) on the left sidebar menu.<br\/>After opening the credential page, click on that blue Create Credential button and that will show you a list of options.<br\/>Then click on Create API Key option.<br\/><br\/><br\/><br\/>It will create a API key for your project."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#schema-image-ce917cf41a9450e7f2a35a94b7ee1bfb","url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2020\/03\/api-google-developer.png","width":1920,"height":876,"caption":"Google Developer Console API Dialog"}},{"@type":"HowToStep","url":"https:\/\/ganofins.com\/blog\/creating-youtube-live-subscriber-count-website\/#how-to-step-1583654394056","name":"Time to Code \u2665\ufe0f","itemListElement":[{"@type":"HowToDirection","text":"Create a simple HTML site with a input text field and button in it. Like -<br\/><br\/>"}]}],"inLanguage":"en-US"}]}},"amp_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":2,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions\/274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/media\/118"}],"wp:attachment":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}