{"id":21613,"date":"2025-07-18T18:55:05","date_gmt":"2025-07-18T09:55:05","guid":{"rendered":"https:\/\/84office.jp\/?p=21613"},"modified":"2025-07-18T18:55:06","modified_gmt":"2025-07-18T09:55:06","slug":"googlesheets-gas-youtube-data-api","status":"publish","type":"post","link":"https:\/\/84office.jp\/en\/googlesheets-gas-youtube-data-api\/","title":{"rendered":"Google Sheets YouTube API: Retrieve and List 500+ Videos with Apps Script"},"content":{"rendered":"<div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5BContact+us+here%5D\">[Contact us here]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B0%5D\">[0]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B3%5D\">[3]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B3%5D\">[3]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B2%5D\">[2]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B2%5D\">[2]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B1%5D\">[1]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B1%5D\">[1]<\/div><div class=\"codoc-evacuations\" style=\"display:none;\" data-shortcode=\"%5B0%5D\">[0]<\/div>\n<p class=\"u-mb-ctrl u-mb-40 has-swl-pale-02-background-color has-background\">The script introduced in this article is a <strong>paid product<\/strong>.<\/p>\n\n\n\n<p>Previously, I shared a free Google Apps Script (GAS) that lets you collect YouTube video data into a Google Sheet.<br>However, the free version is limited to retrieving <strong>up to 500 videos<\/strong> per channel due to YouTube API restrictions.<\/p>\n\n\n\n<p>For those who need to fetch <strong>more than 500 videos<\/strong>, I\u2019ve prepared a <strong>premium version<\/strong> of the Apps script.<br>(<em>Note: Each run can fetch up to 50 videos at a time, just like the free version.<\/em>)<\/p>\n\n\n\n<p>A ready-to-use <strong>Google Sheets template<\/strong> is also included.<\/p>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl u-mb-ctrl u-mb-40\"><div class=\"cap_box_ttl\"><span><span class=\"swl-fz u-fz-l\">Template Features:<\/span><\/span><\/div><div class=\"cap_box_content\">\n<ul class=\"wp-block-list has-swl-pale-03-background-color has-background\">\n<li>Input fields for Channel ID and fetch range (start\/end position) are pre-configured.<\/li>\n\n\n\n<li>The output area is neatly laid out; data will be automatically listed once retrieved.<\/li>\n\n\n\n<li>The Apps script is already linked, so after copying the sheet, you only need to set your API key in the script properties once, and you\u2019re ready to go.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<p>This solution lets you <strong>automatically retrieve YouTube video data in bulk, list it in your spreadsheet, and instantly use it for management or analysis<\/strong>.<br>If you want to <strong>save time<\/strong> and <strong>manage YouTube channels efficiently<\/strong>, this tool is for you!<\/p>\n\n\n\n<h2 class=\"wp-block-heading u-mb-ctrl u-mb-30\">Differences Between the Free and Paid Scripts<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large u-mb-ctrl u-mb-50\"><img decoding=\"async\" width=\"1024\" height=\"254\" src=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-1024x254.png\" alt=\"\" class=\"wp-image-16863\" srcset=\"https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-1024x254.png 1024w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-300x74.png 300w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-768x191.png 768w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-1536x381.png 1536w, https:\/\/84office.jp\/wp-content\/uploads\/2024\/12\/image-97-2048x509.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl u-mb-ctrl u-mb-40\" data-colset=\"col1\"><div class=\"cap_box_ttl\"><span><strong><span class=\"swl-fz u-fz-l\">Limitations of the Free Version (Up to 500 Videos)<\/span><\/strong><\/span><\/div><div class=\"cap_box_content\">\n<p>The free script uses the <strong>search endpoint<\/strong> of the YouTube Data API.<br>However, this endpoint can only retrieve up to <strong>50 videos per request<\/strong>, and even with pagination, it is limited to <strong>a maximum of 500 videos<\/strong> per channel.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl u-mb-ctrl u-mb-40\" data-colset=\"col2\"><div class=\"cap_box_ttl\"><span><strong><span class=\"swl-fz u-fz-l\">Improvements in the Paid Version (Retrieve Over 500 Videos)<\/span><\/strong><\/span><\/div><div class=\"cap_box_content\">\n<p>The paid script utilizes the <strong>playlistItems endpoint<\/strong>, which allows access to the channel\u2019s full list of uploaded videos (the &#8220;Uploads&#8221; playlist).<br>By strengthening the pagination process, the paid version enables you to <strong>retrieve more than 500 videos<\/strong> from a channel.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-accordion u-mb-ctrl u-mb-40\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">What is an \u201cEndpoint\u201d?<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<p>An <strong>endpoint<\/strong> is a specific URL that you interact with when making requests to an API.<\/p>\n\n\n\n<p>The YouTube Data API offers multiple endpoints depending on your goal\u2014for example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>search endpoint<\/strong>: used to search for videos<\/li>\n\n\n\n<li><strong>playlistItems endpoint<\/strong>: used to fetch the list of videos from a channel<\/li>\n<\/ul>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl u-mb-ctrl u-mb-30\"><div class=\"cap_box_ttl\"><span><strong><span class=\"swl-fz u-fz-l\">Example: Think of Endpoints as Website Pages<\/span><\/strong><\/span><\/div><div class=\"cap_box_content\">\n<dl class=\"swell-block-dl\">\n<dt class=\"swell-block-dl__dt\"><br>search endpoint:<\/dt>\n\n\n\n<dd class=\"swell-block-dl__dd\">\n<p>Like using YouTube\u2019s search bar to find videos by keywords.<\/p>\n<\/dd>\n\n\n\n<dt class=\"swell-block-dl__dt\">playlistItems endpoint:<\/dt>\n\n\n\n<dd class=\"swell-block-dl__dd\">\n<p>Like opening the \u201cVideos\u201d tab on a YouTube channel to see the full list of uploaded videos.<\/p>\n<\/dd>\n<\/dl>\n<\/div><\/div>\n<\/div><\/details>\n<\/div>\n\n\n\n<div class=\"swell-block-accordion u-mb-ctrl u-mb-60\">\n<details class=\"swell-block-accordion__item\" data-swl-acc=\"wrapper\"><summary class=\"swell-block-accordion__title\" data-swl-acc=\"header\"><span class=\"swell-block-accordion__label\">What is \u201cPagination\u201d?<\/span><span class=\"swell-block-accordion__icon c-switchIconBtn\" data-swl-acc=\"icon\" aria-hidden=\"true\" data-opened=\"false\"><i class=\"__icon--closed icon-caret-down\"><\/i><i class=\"__icon--opened icon-caret-up\"><\/i><\/span><\/summary><div class=\"swell-block-accordion__body\" data-swl-acc=\"body\">\n<p><strong>Pagination<\/strong> is a way to retrieve additional data, similar to flipping through pages in a book or magazine.<br>Just as you click \u201cNext page\u201d in web search results to see more items, APIs require pagination to fetch the next set of data until you\u2019ve collected everything you need.<\/p>\n<\/div><\/details>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading u-mb-ctrl u-mb-30\">Paid Version: Apps Script for YouTube Video Export<\/h2>\n\n\n\n<p class=\"has-text-align-center\">[Special Pricing Available!]<\/p>\n\n\n\n<div class=\"wp-block-codoc-codoc-block\"><div class=\"codoc-entries\" data-without-body=\"1\" id=\"codoc-entry-KENgVI71VQ\"  data-entry-button-text=\"\u8cfc\u5165\u3059\u308b\" data-support-button-text=\"\u30c1\u30c3\u30d7\u3067\u5fdc\u63f4\u3059\u308b\" data-support-message=\"\u4eca\u5f8c\u3082\u696d\u52d9\u52b9\u7387\u5316\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u63d0\u4f9b\u3057\u3066\u307e\u3044\u308a\u307e\u3059\u3002\u3054\u652f\u63f4\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>[Contact us here] [0] [3] [3] [2] [2] [1] [1] [0] The script introduced in this article is a paid product. Pre [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22423,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","_locale":"en_US","_original_post":"https:\/\/84office.jp\/?p=17977","footnotes":""},"categories":[12],"tags":[],"class_list":["post-21613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12","en-US"],"_links":{"self":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/21613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/comments?post=21613"}],"version-history":[{"count":6,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/21613\/revisions"}],"predecessor-version":[{"id":22506,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/posts\/21613\/revisions\/22506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/media\/22423"}],"wp:attachment":[{"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/media?parent=21613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/categories?post=21613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/84office.jp\/wp-json\/wp\/v2\/tags?post=21613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}