{"id":6203,"date":"2020-12-12T11:00:00","date_gmt":"2020-12-12T09:00:00","guid":{"rendered":"https:\/\/raspberrytips.com\/?p=6203"},"modified":"2025-06-05T03:24:40","modified_gmt":"2025-06-05T01:24:40","slug":"youtube-api-keys-kodi","status":"publish","type":"post","link":"https:\/\/raspberrytips.com\/youtube-api-keys-kodi\/","title":{"rendered":"How to Use YouTube API Keys with the Kodi add-on?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Kodi is a great tool on Raspberry Pi to watch videos from streaming services like Amazon Prime, YouTube and many others.<br>But it&#8217;s not possible to watch directly YouTube videos on Kodi anymore, you need to create and use the API.<br>As I understand this can be complicated for many of you, I will explain everything in this tutorial, so that you can configure it easily on your Raspberry Pi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How to create and use the YouTube API keys on Kodi?<br><strong>As soon as the YouTube add-on is installed, it will ask to configure the API keys.<br>These keys can be generated in the Google Developers Console, after creating a dedicated application.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In theory, it doesn&#8217;t seem so complicated, but the interface is not intuitive at all if you are not a developer (and even if you are). <br>I have a bit of experience with Google APIs, so I will help you to do this step-by-step, with a picture at each to make sure you complete this tutorial.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);background-color:var(--global-palette7, #EDF2F7);box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap .kb-table-of-content-list{font-size:var(--global-kb-font-size-sm, 0.9rem);font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:before{background-color:var(--global-palette7, #EDF2F7);}<\/style>\n\n\n<h2 class=\"wp-block-heading\" id=\"generate-the-api-keys-to-use-kodi-on-raspberry-pi\">Generate the API keys to use Kodi on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The first step is to access the Developers Console on Google.<br><\/strong>No worry if it&#8217;s your first time, I&#8217;ll explain everything.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-your-project-on-google-developers-console\">Create your project on Google Developers Console<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From your computer, <strong>open the <a data-lasso-id=\"1791\" href=\"https:\/\/console.developers.google.com\/\" target=\"_blank\" rel=\"noopener\">Developers Console website<\/a><\/strong><\/li>\n\n\n\n<li>Log in with your Google account, or create one if needed.<\/li>\n\n\n\n<li>Accept the terms of service if it&#8217;s your first time here:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"585\" height=\"590\" class=\"wp-image-6207\" style=\"width: 585px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-accept.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-accept.jpg 585w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-accept-297x300.jpg 297w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-accept-150x150.jpg 150w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/figure><\/li>\n\n\n\n<li>Once in the console, your only choice is to <strong>create a new project.<\/strong><br>Click on the link at the top of your screen:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"116\" class=\"wp-image-6210\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createproject.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createproject.jpg 600w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createproject-300x58.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Fill the form with a project name and click on &#8220;CREATE&#8221;:<\/strong><br><figure><img loading=\"lazy\" decoding=\"async\" width=\"542\" height=\"399\" class=\"wp-image-6212\" style=\"width: 542px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-newproject.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-newproject.jpg 542w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-newproject-300x221.jpg 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/figure><br>No organization is required, and you can choose the name you want<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">After a few seconds, the project&#8217;s dashboard shows up, and we can now enable the YouTube API for this project.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-the-youtube-api-in-your-project\">Enable the YouTube API in your project<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>So, <strong>click on &#8220;Enable APIs and Services&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"112\" class=\"wp-image-6214\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableAPI.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableAPI.jpg 701w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableAPI-300x56.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li>Type &#8220;YouTube&#8221; in the search engine, and <strong>click on &#8220;YouTube Data API v3&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"200\" class=\"wp-image-6215\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-searchyt.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-searchyt.jpg 786w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-searchyt-300x100.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-searchyt-768x256.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li>Once in it, you can <strong>enable this API by clicking on &#8220;Enable&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"213\" class=\"wp-image-6216\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableyt.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableyt.jpg 664w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-enableyt-300x107.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li>Once done, you need to create credentials to use it.<br><strong>Click on &#8220;Create Credentials&#8221;<\/strong> to move forward:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"566\" height=\"162\" class=\"wp-image-6217\" style=\"width: 566px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials.jpg 566w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials-300x86.jpg 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/figure><\/li>\n\n\n\n<li>A form shows up, where you need to give a bit of information about your API usage (which API you want to use, where you will use it and the type of data you need):<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"633\" class=\"wp-image-6218\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-credentials.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-credentials.jpg 632w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-credentials-284x300.jpg 284w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><br>Once done, <strong>click on &#8220;What credentials do I need?&#8221;<\/strong> and the page will show you your API key:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"408\" class=\"wp-image-6219\" style=\"width: 531px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-display.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-display.jpg 531w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-display-300x231.jpg 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/figure><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The first step is completed, <strong>copy and paste this API key into a text document<\/strong> (or anywhere you want to keep it safe), we&#8217;ll need it later.<br>Click on &#8220;Done&#8221; to exit this screen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"get-your-youtube-keys\">Get your YouTube keys<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We are almost done, but this is not enough, the YouTube add-on require 3 things, and we only have the first one \ud83d\ude42<br><strong>We now need to configure OAuth for the two other parts:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the left menu, <strong>click on &#8220;OAuth consent screen&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"258\" height=\"342\" class=\"wp-image-6220\" style=\"width: 258px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-menu.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-menu.jpg 258w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-menu-226x300.jpg 226w\" sizes=\"auto, (max-width: 258px) 100vw, 258px\" \/><\/figure><br>It&#8217;s the screen that shows up when you want to allow a new app (you get this screen with most Chrome extensions for example).<\/li>\n\n\n\n<li>In our case, it&#8217;s pretty simple, as this app is only for private usage.<br><strong>Click on &#8220;External&#8221; and &#8220;Create&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"452\" class=\"wp-image-6221\" style=\"width: 569px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcreate.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcreate.jpg 569w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcreate-300x238.jpg 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/figure><\/li>\n\n\n\n<li>On the next page, <strong>fill the mandatory fields only<\/strong> (App name, User support email and developer email), we don&#8217;t need the other ones:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"892\" class=\"wp-image-6222\" style=\"width: 472px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthinfos.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthinfos.jpg 472w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthinfos-159x300.jpg 159w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/figure><br><strong>Click on &#8220;Save and continue&#8221; once done.<\/strong><\/li>\n\n\n\n<li>The next screens will ask you for the scopes to enable and the test users, we don&#8217;t need that for the moment, so <strong>you can skip them.<\/strong><br>Most of these options will require a verification of your app by Google, which is a whole different level and imply many other things (website, privacy policy, etc.). <br>I don&#8217;t think it&#8217;s your goal here.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We are almost at the end of the configuration, hold on \ud83d\ude42<br><strong>The last step is to get the keys we still need to configure YouTube on the Raspberry Pi:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Get back to &#8220;Credentials&#8221;<\/strong> in the left menu<\/li>\n\n\n\n<li>Click once again on <strong>&#8220;Create Credentials&#8221;<\/strong><\/li>\n\n\n\n<li>But that time, you&#8217;ll<strong> select &#8220;OAuth client ID&#8221;<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"268\" class=\"wp-image-6223\" style=\"width: 473px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials2.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials2.jpg 473w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-createcredentials2-300x170.jpg 300w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Select the option &#8220;TV and Limited input devices&#8221;<\/strong> for the application type and fill the name field with whatever you want:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"414\" class=\"wp-image-6224\" style=\"width: 570px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcredentials.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcredentials.jpg 570w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthcredentials-300x218.jpg 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/figure><\/li>\n\n\n\n<li>Once done, click on &#8220;Create&#8221;. Finally, <strong>the OAuth IDs are now displayed on your screen<\/strong>:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"488\" height=\"333\" class=\"wp-image-6225\" style=\"width: 488px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthkeys.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthkeys.jpg 488w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-oauthkeys-300x205.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/figure><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Copy them in your notes, with the API key.<\/strong><br>We now have everything we need, and can configure the YouTube App on the Raspberry Pi with these keys.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-youtube-on-raspberry-pi\">Install YouTube on Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If YouTube is already installed in Kodi on your Raspberry Pi, you can skip this step.<br>I&#8217;m just adding it in case you need additional information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The procedure might be slightly different depending on which system you are using, but you&#8217;ll quickly find the alternative.<br>If needed, you can also check my tutorials on <a rel=\"noopener\" href=\"https:\/\/raspberrytips.com\/kodi-guide-osmc\/\" data-type=\"post\" data-id=\"944\" target=\"_blank\" data-lasso-id=\"1792\">how to install OSMC<\/a> (text format) or <a rel=\"noopener\" href=\"https:\/\/www.youtube.com\/watch?v=_0EfuDw4qH0\" target=\"_blank\" data-lasso-id=\"1793\">LibreElec on Raspberry Pi<\/a> (video). I also have <a href=\"https:\/\/raspberrytips.com\/osmc-vs-libreelec\/\" data-type=\"post\" data-id=\"10297\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1794\">a comparison of OSMC and LibreElec<\/a> here if you don&#8217;t know which one to use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is the procedure to install the YouTube add-on on Kodi:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From the Kodi main menu, <strong>go to Settings > Add-on browser<\/strong>.<\/li>\n\n\n\n<li><strong>Choose &#8220;Install from repository&#8221; and &#8220;All repositories&#8221;<\/strong><\/li>\n\n\n\n<li><strong>Go to the &#8220;Video add-ons&#8221; <\/strong>submenu<\/li>\n\n\n\n<li>Look for YouTube in this list. <br>You can use the up arrow key to go faster at the end.<\/li>\n\n\n\n<li>Finally, <strong>click on &#8220;Install&#8221;<\/strong> and accept any missing dependency.<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"338\" class=\"wp-image-6182\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/youtube-osmc.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/youtube-osmc.jpg 800w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/youtube-osmc-300x169.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/youtube-osmc-768x432.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The first step is done, you can now <strong>get back to the main menu and open the YouTube app<\/strong>.<br>It&#8217;s in the Videos add-ons submenu.<\/p>\n\n\n\n<p class=\"has-background wp-block-paragraph\" style=\"background-color:#fadce4\"><strong>Note<\/strong>: Want to see how to customize Kodi with other add-ons and bonus repositories? I have a video on this topic just for community members. <a href=\"https:\/\/raspberrytips.com\/school\/community\/?coupon=IP25CTY&amp;utm_source=raspberrytips&amp;utm_medium=website&amp;utm_campaign=inpost\">Join here to watch<\/a>, and get access to 30+ other lessons for Raspberry Pi along with many other benefits!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-the-api-keys-in-the-youtube-add-on\">Configure the API keys in the YouTube add-on<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">But before watching anything on YouTube, the add-on will remind you that you don&#8217;t have the permission to do this \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"245\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-error-api.jpg\" alt=\"\" class=\"wp-image-6227\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-error-api.jpg 600w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-error-api-300x123.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here is how to fix this now that you have everything to configure it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>In the YouTube app, go to &#8220;Settings&#8221;:<br><\/strong><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"248\" class=\"wp-image-6228\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-settings.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-settings.jpg 800w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-settings-300x124.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-settings-768x317.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Got to the &#8220;API&#8221; tab.<br><\/strong>We&#8217;ll enable the API configuration page, to avoid typing the three keys on the Raspberry Pi directly \ud83d\ude42<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"260\" class=\"wp-image-6229\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-enable-api.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-enable-api.jpg 600w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-enable-api-300x130.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><br>As you can see, the URL of the page is displayed here, but we need to find the port.<\/li>\n\n\n\n<li>To get this, <strong>go to the &#8220;HTTP Server&#8221; tab<\/strong>, and note the port:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"260\" class=\"wp-image-6230\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-http-server.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-http-server.jpg 600w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-http-server-300x130.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So in my case, the configuration page will be http:\/\/&lt;IP&gt;:50152\/api<br>You can get the IP address in Settings &gt; System information if you don&#8217;t know it yet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s put the API keys on the web page now:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Access the API configuration page<\/strong>, whatever your URL is.<\/li>\n\n\n\n<li>A form like this should show up:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"234\" class=\"wp-image-6231\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-apipage.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-apipage.jpg 634w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-apipage-300x117.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n\n\n\n<li><strong>Fill the form with the key, id and secret you noted previously and click on &#8220;Save&#8221;.<\/strong><\/li>\n\n\n\n<li>You&#8217;ll get a confirmation message telling you that the personal API keys are now enabled:<br><figure><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"231\" class=\"wp-image-6232\" style=\"width: 600px;\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-success.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-success.jpg 593w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/googlekeys-success-300x115.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Good job, you can now use YouTube on Kodi and watch my videos on the <a href=\"https:\/\/www.youtube.com\/c\/RaspberryTips\/?sub_confirmation=1\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1795\">RaspberryTips channel<\/a> \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok-1024x576.png\" alt=\"\" class=\"wp-image-6233\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok-1024x576.png 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok-300x169.png 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok-768x432.png 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok-1536x864.png 1536w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/kodi-youtube-ok.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Just kidding, do whatever you want on YouTube, it&#8217;s now working perfectly \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-a-vpn-on-kodi\">Using a VPN on Kodi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before finishing this tutorial,&nbsp;<strong>I just want to recommend you looking for a VPN when you are using Kodi<\/strong>.<br>As a reminder, a VPN is an encrypting technology, allowing you to keep yourself anonymous and protect your data online.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The other benefit is that you can often use it to&nbsp;<strong>watch movies or series that are not available in your country<\/strong>, same thing for services.<br>It\u2019s not mandatory, but it\u2019s a great add-on to improve your experience with Kodi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to give it a try,&nbsp;<strong>I have an in-depth&nbsp;<a href=\"https:\/\/raspberrytips.com\/nordvpn-on-raspberry-pi\/\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1796\">tutorial on how to install NordVPN on Raspberry Pi OS or Kodi<\/a><\/strong>, that will explain step-by-step how to register and configure everything easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Recently, I switched to a cheaper solution, with&nbsp;<a href=\"https:\/\/raspberrytips.com\/dl\/ivacy\" target=\"_blank\" rel=\"noopener\" data-lasso-id=\"1797\">Ivacy VPN<\/a>.<br><\/strong>It\u2019s working very well, you can check your latest offer by clicking here.<br>I\u2019ll share a tutorial very soon on how to install it on your Raspberry Pi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whatever the solution,&nbsp;<strong>there is a 30-day money-back guarantee<\/strong>, so you don\u2019t take any risk by trying one of them now:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a data-lasso-id=\"1798\" href=\"https:\/\/raspberrytips.com\/dl\/nordvpn\" target=\"_blank\" rel=\"noopener\">Download NordVPN<\/a><\/strong><\/li>\n\n\n\n<li><strong><a data-lasso-id=\"1799\" href=\"https:\/\/raspberrytips.com\/dl\/ivacy\" target=\"_blank\" rel=\"noopener\">Download Ivacy VPN<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it, this tutorial is pretty short, but with so many steps, that are non-intuitive at all!<br>Hopefully, it was helpful to you, and that you managed to configure it correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are interested in Kodi, feel free to check my other tutorials on the topic:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a data-lasso-id=\"1800\" href=\"https:\/\/raspberrytips.com\/install-netflix-on-kodi\/\" data-type=\"post\" data-id=\"1438\" target=\"_blank\" rel=\"noopener\">Watch other streaming providers on Kodi<\/a> (Netflix &amp; co)<\/li>\n\n\n\n<li><a data-lasso-id=\"1801\" href=\"https:\/\/raspberrytips.com\/nordvpn-on-raspberry-pi\/\" data-type=\"post\" data-id=\"3057\" target=\"_blank\" rel=\"noopener\">Step-by-step tutorial on how to install NordVPN on Kodi<\/a><\/li>\n\n\n\n<li><a data-lasso-id=\"1802\" href=\"https:\/\/raspberrytips.com\/kodi-guide-osmc\/\" data-type=\"post\" data-id=\"944\" target=\"_blank\" rel=\"noopener\">Kodi installation guide for beginners<\/a><\/li>\n\n\n\n<li><a data-lasso-id=\"1803\" href=\"https:\/\/raspberrytips.com\/install-retropie-on-osmc\/\" data-type=\"post\" data-id=\"4033\" target=\"_blank\" rel=\"noopener\">Kodi and Retropie on the same system?<\/a> It&#8217;s possible, check that link<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Kodi is a great tool on Raspberry Pi to watch videos from streaming services like Amazon Prime, YouTube and many others.But it&#8217;s not possible to watch directly YouTube videos on Kodi anymore, you need to create and use the API.As I understand this can be complicated for many of you, I will explain everything in&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6235,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-6203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-tutorials"],"taxonomy_info":{"category":[{"value":2,"label":"How-To Tutorials"}]},"featured_image_src_large":["https:\/\/raspberrytips.com\/wp-content\/uploads\/2020\/12\/youtube-keys-kodi-raspberry-pi-1024x683.jpg",1024,683,true],"author_info":{"display_name":"Patrick Fromaget","author_link":"https:\/\/raspberrytips.com\/author\/admin\/"},"comment_info":0,"category_info":[{"term_id":2,"name":"How-To Tutorials","slug":"how-to-tutorials","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":228,"filter":"raw","cat_ID":2,"category_count":228,"category_description":"","cat_name":"How-To Tutorials","category_nicename":"how-to-tutorials","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/6203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/comments?post=6203"}],"version-history":[{"count":11,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/6203\/revisions"}],"predecessor-version":[{"id":40538,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/6203\/revisions\/40538"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media\/6235"}],"wp:attachment":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media?parent=6203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/categories?post=6203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/tags?post=6203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}