Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
DocumentaryTube
automation

How to Schedule a YouTube Playlist Rotation with Node-RED

Node-RED can trigger scheduled playlist changes, but YouTube API calls do the actual inserting and deleting. Set a clear rotation rule, use the right IDs, and handle time zones, OAuth, quota, and errors.

By DocumentaryTube Team 5 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Node-RED to trigger a scheduled flow, then use OAuth-authorized YouTube Data API calls to add or remove playlist items. Node-RED handles timing and orchestration; YouTube’s API performs the playlist changes. The community YouTube node listing documents playlist-reading nodes, but does not establish that it can perform these writes, so verify any node’s write support before depending on it.

Decide what “rotation” means for your playlist

Before building the flow, specify what should happen at each scheduled time. For example, you might add a selected video and remove an older playlist item, or replace the current item according to a sequence you maintain. There is no single universal rotation policy: define the selection rule, whether to add, remove, or both, and what should happen if a target video is already present.

Keep the policy separate from the schedule. A trigger says when the flow runs; your logic determines which video to add and which existing playlist item, if any, to remove.

Choose how the flow will call YouTube

Direct API requests from Node-RED

Calling the YouTube Data API from an authenticated HTTP request in the flow is the documented route for playlist changes. It gives you direct control over request bodies, response handling, and logging, but you must configure OAuth authorization and handle API errors. The official references describe the required operations: playlistItems.insert and playlistItems.delete.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Community YouTube node

The Flow Library listing for node-red-node-youtube shows version 0.0.5 and documents nodes for listing channel, playlist, and playlist-item information. That description does not establish write support for inserting or deleting playlist items, nor does it establish current maintenance status. Use it for this workflow only if you verify the needed write operations, OAuth handling, and error behavior for the version you install.

Schedule the flow with an explicit time zone

A simple timer can work for a basic interval, but a wall-clock schedule needs deliberate time-zone handling. The independently maintained node-red-contrib-cron-plus documents cron and date schedules, dynamic schedule control, time-zone support, and persistent schedule state. Its Flow Library page identifies version 3.2.0; check the package’s current documentation and behavior before relying on a feature in production.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Choose either UTC or a region/area time zone, based on whether the rotation should follow a fixed global time or local clock time. Cron-plus documents that a repeated local time during a daylight-saving transition fires once. If a forward clock change skips the scheduled time, it runs as soon as possible after the transition. Those details matter for schedules intended to run at a specific local hour.

Build the scheduled rotation flow

  1. Configure the scheduler. In Node-RED, install and configure a scheduler such as cron-plus, then set the desired schedule and time zone. Decide whether it should run once at a wall-clock time or at a repeating interval.
  2. Read the target playlist. At each trigger, retrieve the playlist items and retain the playlist ID and each item’s playlist-item ID. The playlist ID identifies the destination playlist; a playlist-item ID identifies the particular entry in it.
  3. Apply your rotation rule. Select the video resource to insert and identify any existing playlist item to remove. Check for conditions such as the video already being in the playlist before issuing a write.
  4. Insert a video when required. Send an OAuth-authorized request to playlistItems.insert with the destination playlist ID and the video resource ID in the request body. Consult Google’s current API reference for the request fields, allowed OAuth scopes, and response format.
  5. Delete an existing entry when required. Send an OAuth-authorized request to playlistItems.delete using the playlist-item ID—not the video ID. Check the current API reference for allowed scopes and response details.
  6. Record what happened. Log the scheduled time, operation, target playlist and item identifiers, response status, and any error. If a request fails ambiguously, inspect the playlist state before retrying; a blind retry can repeat or compound a change.

OAuth, IDs, and API quota to account for

Playlist insert and delete operations require OAuth authorization. The API references list the allowed scopes for each operation; grant only the scope your flow needs and plan for the token setup and renewal behavior in your chosen implementation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Keep the identifiers straight: insertion uses a playlist ID plus a video resource ID, while deletion uses the playlist-item ID. Mixing up the video ID and playlist-item ID is a common source of failed deletion requests.

Google’s YouTube Data API documentation, accessed October 3, 2026, lists a cost of 50 quota units per playlistItems.insert call and 50 per playlistItems.delete call. The API guide reports 10,000 default daily units combined for other endpoints and says the default quota may change. Check the live references and your project’s quota console before deployment: YouTube Data API quota costs.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Make failures visible and recover safely

The API documents authorization failures, missing IDs or resources, duplicate playlist videos, unsupported playlist operations, and maximum-item conditions. Handle errors as explicit flow outcomes rather than assuming every scheduled write succeeds.

  • Authorization error: confirm the OAuth token is valid and that its granted scope permits the operation.
  • Missing or invalid identifier: verify the destination playlist ID and whether you are passing the playlist-item ID for deletion or the video resource ID for insertion.
  • Duplicate video: check the existing playlist state and decide whether the rotation policy should skip, retain, or otherwise handle an already-present video.
  • Unsupported operation or item limit: inspect the API response and playlist state; do not keep retrying an operation the API rejects.
  • Unclear outcome after a timeout: read the playlist again before issuing another write so the flow does not blindly repeat an operation that may have succeeded.

Test with a playlist and schedule you can safely inspect before enabling a recurring production flow. Confirm the trigger time, selected IDs, API response, and resulting playlist state.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Or let it run in the cloud

If the goal is to keep uploaded video playing as a 24/7 YouTube live stream rather than to mutate a playlist on a schedule, StreamNeo is a separate option: upload a recording or build a playlist, add your YouTube stream key once, and go live. The stream runs in the cloud, so nothing has to stay on at home; each slot supports any uploaded quality up to 4K 60fps at one flat price, and automatic recovery helps if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. See StreamNeo or start the free first day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Screening Room

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.