Skip to content

Instantly share code, notes, and snippets.

@methdev
Last active March 20, 2023 06:18
Show Gist options
  • Save methdev/2e82914189c072231855002ccd21f18c to your computer and use it in GitHub Desktop.
Save methdev/2e82914189c072231855002ccd21f18c to your computer and use it in GitHub Desktop.
Discord notifications for YouTube uploads using webhooks with Zapier

YouTube to Discord Webhook (using Zapier)

Generate a Discord Webhook

  1. Go to your channel settings and click on the 'Webhooks' tab
  2. Make your webhook and copy the link

Webhook Creation

Register for Zapier

  1. Go to https://zapier.com/
  2. Sign up with Google or create an account

Make a Zap

  1. Click on 'Make a Zap' in the top-right

Make a Zap

Set the Zap Trigger

  1. Search for 'YouTube' and select the trigger app
  2. Set the trigger as 'New Video in Channel'

Set Trigger

  1. Connect a YouTube account (this doesn't have to be the account that you're watching for uploads)
  2. Enter the Channel ID to watch for (e.g. 'channel/UCZ5XnGb-3t7jCkXdawN2tkA')

Set Channel

  1. Test the trigger by pressing 'Fetch & Continue'
  2. Press 'View your Video'. It should display the metadata for the most recently uploaded video

Test Trigger

  1. If it all looks good, press 'Continue'

Set the Zap Action

  1. Search for 'Webhooks by Zapier and select the action app
  2. Set the action as 'POST'

Set Action

  1. Set the URL to the Discord Webhook link generated when you set up the webhook
  2. Set the Payload type to 'Json'.
  3. Set the left Data textbox to 'content', and the desired message in the right box. You can use Markdown to format the message.
  4. Use the 'Insert a Field' button on the right to insert information about the uploaded video such as its title, URL and description

Insert Fields

  1. You can also include additional JSON parameters using the '+' button just underneath. Here's a list of valid parameters.
  2. Press 'Continue' and send a test to your server with the most recent video. Use 'Edit Template' on the left to make changes if you aren't happy.
  3. Press 'Finish', give your Zap a name and turn it on!

Finish

@JustMangoou
Copy link

Nice! This is a very helpful page for anyone need a Youtube notifications!

@kotauskas
Copy link

kotauskas commented Mar 28, 2020

Sadly, Zapier webhooks are now premium-only. Using the Discord trigger instead also works.

@Mystik01
Copy link

how do i add embeds? everytime i try i keeping gettting bad request

@iSparsh
Copy link

iSparsh commented Sep 15, 2020

You are a savior. Thank you.

@Dylan-Pro
Copy link

Thanks!!

@ProPrime332
Copy link

:D

@Cyndrome
Copy link

Cyndrome commented Feb 2, 2021

Although the webhook function is premium-only now, It can be done through YT-->Discord connection in Zapier.

@DeffesGT
Copy link

DeffesGT commented Mar 3, 2021

Although the webhook function is premium-only now, It can be done through YT-->Discord connection in Zapier.

Could you explain a bit more how to replace the webhook function?

@Cyndrome
Copy link

Cyndrome commented Mar 4, 2021

Although the webhook function is premium-only now, It can be done through YT-->Discord connection in Zapier.

Could you explain a bit more how to replace the webhook function?

You may check out this tutorial:
https://youtu.be/yqy16s4jXVA

@Purple2ux
Copy link

This is easier than buying premium for a discord bot to get video uploads!

@Shnxxx
Copy link

Shnxxx commented Apr 1, 2021

Is this still works? I just created a Zapier and it works upon testing even the webhook function is premium-only now. I'll just have to wait for the channel to upload something.

Also, does anyone here know how to get notification from a YT channel but must have the specified string/word. Is it possible?

@Vineet-Nijhara
Copy link

Thanks it worked
👯‍♂️

@sayansisodiya
Copy link

Thank you!! Super helpful guide for anyone looking to set up YouTube notifications on Discord or access YouTube data for webhook use in general.

@Vineet-Nijhara
Copy link

Vineet-Nijhara commented Jul 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment