YouTube Subscriber Counter for Smart Clocks - n8n Workflow

Use this n8n workflow to automatically fetch your YouTube subscriber count hourly and display it instantly on an AWTRIX smart clock or dashboard. This n8n template is essential for creators.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

YouTube Creators and content managers who want passive, real-time metrics display.
Users of AWTRIX, Ulanzi Smart Clocks, or similar IoT display devices.
Developers needing an example of an n8n template for API data aggregation and specialized device communication.
Anyone looking to utilize an n8n node for advanced data formatting and scheduling.

Overview

For creators monitoring growth, having metrics constantly visible is highly valuable. This n8n workflow solves the problem of needing to manually check YouTube Analytics by automating the data retrieval and display process.

This robust n8n template is triggered hourly and ensures that your AWTRIX device always shows the most up-to-date subscriber count, formatted cleanly (e.g., '1.5K' instead of '1500'). By combining the power of the n8n schedule trigger with two dedicated HTTP Request n8n node components, you create a seamless connection between a major API service and your physical IoT dashboard.

How it Works

This n8n workflow operates on a simple, efficient schedule:


  1. Schedule Activation: The process begins with the "Every Hour" n8n trigger, ensuring the data refresh happens consistently sixty minutes apart.

  2. Fetch YouTube Data: The workflow immediately proceeds to the "Fetch YT Subscriber Count" n8n node (an HTTP Request). This node calls the YouTube Data API v3, using your provided API key and Channel ID to request the latest statistics part of your channel data.

  3. Process and Format: The data payload, which includes the raw subscriber count, is passed to the final "Send to AWTRIX" n8n node.

  4. AWTRIX Communication: This final n8n node executes a POST request to the custom AWTRIX API endpoint. It utilizes an n8n expression to precisely format the large subscriber number into a compact string (e.g., 100000 becomes 100K) before sending the payload, alongside a specified icon ID, to the AWTRIX device for instant display under the ytsubs custom app name. This completes the hourly cycle for the n8n workflow.

Installation Guide

To successfully implement this n8n template, follow these setup steps:


  1. Import Workflow: Import the provided JSON into your existing n8n instance.

  2. YouTube API Key: You must generate a Google API Key and enable the YouTube Data API v3 service. Replace YOURYOUTUBEAPIKEY in the "Fetch YT Subscriber Count" n8n node configuration.

  3. Channel ID: Find and replace YOURYOUTUBECHANNELID with the unique ID of the YouTube channel you wish to monitor.

  4. AWTRIX Configuration: In the "Send to AWTRIX" n8n node, update the URL with your device's specific IP address (e.g., http://192.168.1.50/api/custom).

  5. Icon ID: Replace YOURICONID with the numeric ID of the icon you want to display on the AWTRIX clock.

  6. Activate: Save and activate the n8n workflow to start hourly executions.

Node Details

This n8n workflow relies on three core nodes:

Every Hour (n8n trigger - Schedule Trigger):
Function: Acts as the starting point, initiating the entire n8n workflow on a fixed time interval.
Key Configuration: Set to execute every hour, ensuring frequent data updates.

Fetch YT Subscriber Count (n8n node - HTTP Request):
Function: Responsible for connecting to the external YouTube Data API to retrieve the necessary channel statistics.
Key Configuration: Uses the GET method. Requires three query parameters: id (Channel ID), key (API Key), and part (statistics).

Send to AWTRIX (n8n node - HTTP Request):
Function: Handles the final communication with the local AWTRIX device, sending the formatted data for display.
* Key Configuration: Uses the POST method targeting the /api/custom endpoint. Crucially, the text body parameter uses an n8n expression (Intl.NumberFormat) to automatically format the subscriber count concisely, optimizing it for the small display.

Related n8n Workflows

Free

Nodes: 2 Nodes
Updated: December 26 2025
View all
Created by
Faisal F Rafat
Faisal F Rafat

Featured*