{"id":720975,"date":"2019-12-18T18:36:22","date_gmt":"2019-12-19T00:36:22","guid":{"rendered":"https:\/\/smashballoon.com\/?p=720975"},"modified":"2023-12-07T15:47:25","modified_gmt":"2023-12-07T21:47:25","slug":"youtube-api-key","status":"publish","type":"doc","link":"https:\/\/smashballoon.com\/doc\/youtube-api-key\/","title":{"rendered":"Guide to Creating and Using a YouTube API Key"},"content":{"rendered":"<p>In addition to using the Smash Balloon App to connect a YouTube account and use an access token and refresh token, you can use your own YouTube API Key. Follow these steps to create a project and get an API Key. For many feed types such as Playlist or Search, an API key is required.<\/p>\n<p>You will need to create and log in to a Google account in order to get an API Key.<\/p>\n<h3 style=\"padding-left: 80px;\"><strong>Note: If you already created an API key &#8230;<\/strong><\/h3>\n<p style=\"padding-left: 80px;\">You will need to create a new project using this URL: <a href=\"https:\/\/console.developers.google.com\/projectcreate\">https:\/\/console.developers.google.com\/projectcreate<\/a>, then you can continue with step #3.<\/p>\n<p style=\"padding-left: 80px;\"><strong>IMPORTANT!: Ensure that you selected the new Project you created from the dropdown:<\/strong><\/p>\n<p style=\"padding-left: 80px;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724132 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f.png\" alt=\"\" width=\"854\" height=\"498\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f.png 854w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-300x175.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-768x448.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-240x140.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-732x427.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-382x223.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-1_f-465x271.png 465w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/p>\n<p><strong>1)<\/strong> Go to\u00a0<a href=\"https:\/\/console.developers.google.com\/apis\/\" target=\"_blank\" rel=\"noopener noreferrer\">console.developers.google.com\/apis<\/a>, if this is your first time using the Google API site, you&#8217;ll be asked to <strong>agree to the Terms of Service<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724133 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f.png\" alt=\"\" width=\"897\" height=\"683\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f.png 897w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-300x228.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-768x585.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-234x178.png 234w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-612x466.png 612w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-351x267.png 351w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-2_f-356x271.png 356w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p><strong>2)<\/strong> Create a project by clicking the <strong>CREATE PROJECT<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724134 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f.png\" alt=\"\" width=\"896\" height=\"375\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f.png 896w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-300x126.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-768x321.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-240x100.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-732x306.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-382x160.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-3_f-591x247.png 591w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p><strong>3)<\/strong> After giving your project a name, click on the <strong>CREATE<\/strong>\u00a0button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724138 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f.png\" alt=\"\" width=\"897\" height=\"481\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f.png 897w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-300x161.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-768x412.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-240x129.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-732x393.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-382x205.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-4_f-505x271.png 505w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p><strong>4)<\/strong> <strong>Important:<\/strong> You&#8217;ll need to enable your API Key for making YouTube API requests. Visit <a href=\"https:\/\/console.developers.google.com\/apis\/api\/youtube.googleapis.com\/overview\" target=\"blank\" rel=\"noreferrer noopener\">this page<\/a> to do so.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724142 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f.png\" alt=\"\" width=\"897\" height=\"373\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f.png 897w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-300x125.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-768x319.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-240x100.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-732x304.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-382x159.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-5_f-591x246.png 591w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p><strong>5)<\/strong> Navigate to the <a href=\"https:\/\/console.developers.google.com\/apis\/credentials\"><strong>Credentials<\/strong><\/a> page and then select <strong>CREATE CREDENTIALS<\/strong>. The type of key needed for this plugin is an <strong>API Key<\/strong>. Select this option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724143 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f.png\" alt=\"\" width=\"897\" height=\"503\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f.png 897w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-300x168.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-768x431.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-240x135.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-732x410.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-382x214.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-6_f-483x271.png 483w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p><strong>6)<\/strong> Copy the <strong>API Key<\/strong> in the pop-up window. You&#8217;ll need this key when configuring the WordPress plugin.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1724145 size-full\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f.png\" alt=\"\" width=\"900\" height=\"596\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f.png 900w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-300x199.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-768x509.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-240x159.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-704x466.png 704w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-382x253.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/new-youtube-api-guide-7_f-409x271.png 409w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><strong>7)<\/strong> Navigate to your WordPress site&#8217;s <strong>admin dashboard<\/strong> and the <strong>YouTube Feed &gt; Settings<\/strong>. Enter the API key in the text field. Save your changes.<\/p>\n<p><a href=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1272549\" src=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44.png\" alt=\"\" width=\"900\" height=\"98\" srcset=\"https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44.png 900w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-300x33.png 300w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-768x84.png 768w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-240x26.png 240w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-732x80.png 732w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-382x42.png 382w, https:\/\/smashballoon.com\/wp-content\/uploads\/2019\/12\/2022-05-30_07-39-44-591x64.png 591w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<p><strong>Please note:<\/strong> It may take up to several minutes for your new API key to start working. If you are seeing an error message related to your API key, wait up to 15 minutes, save your settings on the Configure tab, and try viewing your feed again.<\/p>\n\n\n<div id=\"sb-error-message-block_b4736cfe533d46143b246ead2dcbe13f\" class=\"sb-error-message-wrapper\">\n    <div class=\"sb-error-message-inner\">\n                    <div class=\"sb-error-row sb-faq-item\" id=\"\">\n                <span class=\"sb-fi-arrow\"><svg width=\"13\" height=\"8\" viewBox=\"0 0 13 8\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M10.7931 7.77637L6.20312 3.19637L1.61312 7.77637L0.203125 6.36637L6.20312 0.366368L12.2031 6.36637L10.7931 7.77637Z\" fill=\"#141B38\"><\/path><\/svg><\/span>\n                <p class=\"sb-fiq\">\n                    Note: if you want to restrict the API key &#8230;                <\/p>\n                <div class=\"sb-faq-answer\">\n                    <p>To restrict your Google API, you will want to use the &#8216;Website&#8217; restriction. In the field, enter individually:<\/p>\n<p><strong>Your website URL including the prefix, e.g:<\/strong><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"oDQTGOoIMC\"><p><a href=\"https:\/\/smashballoon.com\/\">Home<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Home&#8221; &#8212; Smash Balloon\" src=\"https:\/\/smashballoon.com\/embed\/#?secret=TuCdvKjOPg#?secret=oDQTGOoIMC\" data-secret=\"oDQTGOoIMC\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\n<strong><br \/>\nAs well as<\/strong><br \/>\nwww.googleapis.com<\/p>\n<p>You can also select the API restriction. In that case select the <strong>YouTube API V3<\/strong><\/p>\n                <\/div>\n            <\/div>\n            <\/div>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In addition to using the Smash Balloon App to connect a YouTube account and use an access token and refresh token, you can use your own YouTube API Key. Follow these steps to create a project and get an API Key. For many feed types such as Playlist or Search, an API key is required. [&hellip;]<\/p>\n","protected":false},"author":13293,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"limit_modified_date":"","last_modified_date":"","om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_categories":[530,341],"class_list":["post-720975","doc","type-doc","status-publish","format-standard","hentry","doc_categories-getting-started","doc_categories-youtube"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/docs\/720975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/users\/13293"}],"replies":[{"embeddable":true,"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/comments?post=720975"}],"version-history":[{"count":33,"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/docs\/720975\/revisions"}],"predecessor-version":[{"id":1724151,"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/docs\/720975\/revisions\/1724151"}],"wp:attachment":[{"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/media?parent=720975"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/smashballoon.com\/wp-json\/wp\/v2\/doc_categories?post=720975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}