{"id":1454077,"date":"2025-01-15T13:00:16","date_gmt":"2025-01-15T13:00:16","guid":{"rendered":"https:\/\/rankmath.com\/?post_type=ht_kb&#038;p=1454077"},"modified":"2025-06-26T17:41:51","modified_gmt":"2025-06-26T17:41:51","slug":"how-to-get-a-youtube-api-key","status":"publish","type":"ht_kb","link":"https:\/\/rankmath.com\/ja\/kb\/how-to-get-a-youtube-api-key\/","title":{"rendered":"How to Get a YouTube API Key"},"content":{"rendered":"<p>Rank Math PRO allows you to automatically <a href=\"https:\/\/rankmath.com\/kb\/auto-detect-and-fetch-video-data\/\">fetch data from YouTube videos<\/a> to use in Video Schema and Video Sitemap. The data is fetched using YouTube&#8217;s Public API, which works well for most users.<\/p>\n\n\n\n<p><span style=\"margin: 0px;padding: 0px\">However, if you notice any discrepancies, such as incorrect titles, descriptions, or no thumbnails, we recommend generating a\u00a0<strong>YouTube Data API key<\/strong>\u00a0for more accurate results.<\/span><\/p>\n\n\n\n<p class=\"takeaway yellow\"><strong>\u30ce\u30fc\u30c8\uff1a<\/strong> YouTube&#8217;s Data API is free but has a daily quota. You can fetch data of up to 100 videos per day, which should be sufficient for most users.<\/p>\n\n\n\n<p>In this tutorial, we will walk you through the steps to get an API key for yourself and use it with Rank Math.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"number\">1<\/span>  Configure Rank Math&#8217;s Video Sitemap <a href=\"https:\/\/rankmath.com\/ja\/pricing\/\" class=\"pro-badge\" target=\"_blank\" style=\"vertical-align:\" title=\"Rank Math\u30d7\u30ec\u30df\u30a2\u30e0\u30d7\u30e9\u30f3\"><span class=\"label\">\u30d7\u30ed<\/span><\/a><\/h2>\n\n\n\n<p>To use this advanced feature, you must first ensure that Rank Math&#8217;s Video Sitemap module is enabled from <strong>WordPress Dashboard \u2192 Rank Math SEO \u2192 Dashboard \u2192 Modules<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"924\" height=\"351\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Video-Sitemap.png\" alt=\"\u30d3\u30c7\u30aa\u30b5\u30a4\u30c8\u30de\u30c3\u30d7\" class=\"wp-image-1454974\" \/><\/figure>\n\n\n\n<p>Now, when you head over to <strong>Rank Math SEO \u2192 Sitemap Settings \u2192 Video Sitemap<\/strong>, you should see the <strong>YouTube API Key<\/strong> \u5206\u91ce\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1014\" height=\"1005\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/YouTube-API-Key.png\" alt=\"YouTube API Key\" class=\"wp-image-1454965\" \/><\/figure>\n\n\n\n<p class=\"takeaway yellow\">If you <span style=\"margin: 0px;padding: 0px\">don&#8217;t see this option,&nbsp;<a href=\"https:\/\/rankmath.com\/kb\/switch-from-easy-to-advanced-mode\/\" target=\"_blank\">switch to&nbsp;<\/a><\/span><a href=\"https:\/\/rankmath.com\/kb\/switch-from-easy-to-advanced-mode\/\">\u30a2\u30c9\u30d0\u30f3\u30b9\u30c8\u30e2\u30fc\u30c9<\/a> Rank Math\u3067\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"number\">2<\/span>  Login to Google&#8217;s Cloud Console<\/h2>\n\n\n\n<p>\u8a2a\u554f <a href=\"https:\/\/console.cloud.google.com\/\" target=\"_blank\" rel=\"noopener\">Google&#8217;s Cloud Console<\/a>. If you haven&#8217;t already created a project, you will need to create a new one. If you already have a project created, then you can proceed to the next step.<\/p>\n\n\n\n<p>To create a new project, click the <strong>CREATE PROJECT<\/strong> option that appears on the screen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1271\" height=\"332\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Create-Project-in-Google-Cloud-Console.png\" alt=\"Create New Project in Google Cloud Console\" class=\"wp-image-1454079\" \/><\/figure>\n\n\n\n<p>Next, enter the project details and click the <strong>CREATE<\/strong> \u30dc\u30bf\u30f3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1007\" height=\"426\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Project-details.png\" alt=\"Project Details\" class=\"wp-image-1454080\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"number\">3<\/span>  Create API Key<\/h2>\n\n\n\n<p>Once you&#8217;ve created a project, click the <strong>Credentials<\/strong> tab in the left menu.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1269\" height=\"459\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Visit-Credentials-Tab.png\" alt=\"Visit Credentials tab\" class=\"wp-image-1454081\" \/><\/figure>\n\n\n\n<p><span style=\"margin: 0px;padding: 0px\">On the Credentials page, click the&nbsp;<strong>Create Credentials<\/strong>&nbsp;optio<\/span>n, and from the dropdown, choose <strong>API\u30ad\u30fc<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1238\" height=\"600\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Create-Credentials-and-API-key.png\" alt=\"Create Credentials and API Key\" class=\"wp-image-1454083\" \/><\/figure>\n\n\n\n<p>Wait for a few moments for the API key to be created. Then, copy the generated API Key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1233\" height=\"674\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Copy-API-Key.png\" alt=\"Copy API Key\" class=\"wp-image-1454087\" \/><\/figure>\n\n\n\n<p>Paste it into the <strong>YouTube API Key<\/strong> field in the Rank Math Settings, and click the <strong>\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58<\/strong> \u4e0b\u56f3\u306e\u3088\u3046\u306b\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"765\" height=\"422\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Save-changes.png\" alt=\"\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58\" class=\"wp-image-1454967\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"number\">4<\/span>  Enable the YouTube Data API<\/h2>\n\n\n\n<p>Google, by default, doesn&#8217;t enable the YouTube Data API for all the projects. <\/p>\n\n\n\n<p>So, we still need to head over to the <strong>Enabled APIs &amp; services<\/strong> tab in the Cloud console menu and choose <strong>ENABLE APIS AND SERVICES<\/strong> option, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1272\" height=\"730\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Enable-APis-services.png\" alt=\"Enable APIs &amp; services\" class=\"wp-image-1454088\" \/><\/figure>\n\n\n\n<p>From the API Library, search for <strong>YouTube Data API v3<\/strong> and select it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1271\" height=\"482\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/YouTube-Data-API-v3.png\" alt=\"YouTube Data API v3\" class=\"wp-image-1454090\" \/><\/figure>\n\n\n\n<p>Then, <strong>ENABLE<\/strong> the YouTube Data API as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1272\" height=\"469\" src=\"https:\/\/rankmath.com\/wp-content\/uploads\/2025\/01\/Enable-YouTube-Data-API.png\" alt=\"Enable YouTube Data API\" class=\"wp-image-1454091\" \/><\/figure>\n\n\n\n<p>Now that you&#8217;ve enabled the YouTube Data API, you can start using it within Rank Math PRO.<\/p>\n\n\n\n<p>And that&#8217;s it. <span style=\"margin: 0px;padding: 0px\">If you have any questions about Rank Math or facing any issues with the setup, feel free to get in touch with our&nbsp;<a href=\"https:\/\/rankmath.com\/support\/\" target=\"_blank\">support team here<\/a>, and our support team will always be happy to assist you.<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Rank Math PRO allows you to automatically fetch data from YouTube videos to use in Video Schema and Video Sitemap. The data is fetched using YouTube&#8217;s Public API, which works well for most users. However, if you notice any discrepancies, such as incorrect titles, descriptions, or no thumbnails, we recommend generating a\u00a0YouTube Data API key\u00a0for more accurate results. Note: YouTube&#8217;s Data API is free but has a daily quota. You can fetch data of up to 100 videos per day, which should be sufficient for most users. In this tutorial, we will walk you through the steps to get an API key for yourself and use it with Rank Math. [&hellip;]<\/p>","protected":false},"author":460240,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[155],"ht-kb-tag":[],"class_list":{"0":"post-1454077","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-schema"},"_links":{"self":[{"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb\/1454077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/users\/460240"}],"replies":[{"embeddable":true,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/comments?post=1454077"}],"version-history":[{"count":3,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb\/1454077\/revisions"}],"predecessor-version":[{"id":1551682,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb\/1454077\/revisions\/1551682"}],"wp:attachment":[{"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/media?parent=1454077"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb-category?post=1454077"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/rankmath.com\/ja\/wp-json\/wp\/v2\/ht-kb-tag?post=1454077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}