(Use Case) YouTube RSS - Channel Notifications (⭐)

Date of creation
Name
(Use Case) YouTube RSS - Channel Notifications (⭐)
Created by
  • data_popcorn

Prerequisite

Doesn't exist.

Scenario

💡
One line summary
This workflow detects new video uploads via the YouTube RSS feed and notifies a Discord webhook.

1. How it works

This workflow will periodically check your YouTube channel's RSS feed and send a notification via Discord Webhook when a new video is uploaded.

Key steps:

1.
Check the YouTube channel's RSS feed regularly.
2.
Newly uploaded video information is sent as a notification via Discord Webhook.

2. Step Setting

Estimated time : 5–10 minutes
1.
Prepare the Discord Webhook URL and connect it to the Discord node on n8n.
2.
Verify and set up the RSS feed URL for your YouTube channel.

3. Detailed description of the process

Step 1: Triggering RSS Feed Reading

Node : RSS Feed Read Trigger
How to set up :
1.
Add a "RSS Feed Read Trigger" node.
2.
Set the parameters as follows:
Feed URL : Enter the RSS feed URL for your YouTube channel (e.g. https://www.youtube.com/feeds/videos.xml?channel_id=UCGU_CgteEqNSjiXcF0QfaKg ).
Poll Times :
Set the mode to "Every Minute" to check RSS every minute.
Role : Detects new uploads to a YouTube channel.

Step 2: Send Discord Webhook Notifications

Node : Discord
How to set up :
1.
Add a "Discord" node.
2.
Set the parameters as follows:
Authentication : Set to "Webhook".
Content : Format the video information as a Discord message by entering the following text:
={{ $json.pubDate.toDateTime().setZone('Asia/Seoul').format('yyyy-MM-dd T') }} [{{ $json.title }}]({{ $json.link }})
{{ $Json.pubDate }} : Converts the video upload date to Korean time (Asia/Seoul) and displays it.
{{ $Json.title }} : Video title.
{{ $Json.link }} : Video link.
Credentials : Select the Discord Webhook credentials you prepared.
Role : Sends new video notifications to the Discord channel.

How to find Channel ID

If you search for Developer Tools (F12) > Source > channel_id in the channel, you can find an HTML element with the following structure.
https://www.youtube.com/feeds/videos.xml?channel_id=UCGU_CgteEqNSjiXcF0QfaKg ">