Skip to content

Instantly share code, notes, and snippets.

@Godimas
Created January 7, 2017 15:26
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save Godimas/ae8e7c7cbd6236622c777d6bcb7a6748 to your computer and use it in GitHub Desktop.
Save Godimas/ae8e7c7cbd6236622c777d6bcb7a6748 to your computer and use it in GitHub Desktop.
Another webhook tutorial (YouTube to Discord via IFTTT)

Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone in your server to know this, eh?

I'll just start from Step 3. You know where Step 1 and Step 2 is, eh?

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets.

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

  3. You can name the webhook whatever you want, and give it any image; for this tutorial we override them later anyway. Keep track of the URL; we'll need it later.

Step 3 - Make an IF recipe

  1. "My recipes"
  2. "Create a recipe"
  3. Press that underlined huge "this".
  4. (Step 1/7) Search for "YouTube" in the "Search channels" box. Click on it. If it needs you to connect YouTube channel (only first time), just click it, log into Google, and authorize it.
  5. (Step 2/7) "New public video uploaded by you". Please note that it only works on you, not someone you like (For example, Keemstar).
  6. (Step 3/7) Just click "Create trigger".
  7. Press that underlined huge "that".
  8. (Step 4/7) Search for "Maker" in the "Search channels" box. Click on it. Again, it is called Maker, not "http request" or such thing!
  9. (Step 5/7) You only have 1 choice.
  10. (Step 6/7) Here's the important part.

Step 4 - Setup the webhook

Screen Shot 2016-10-23 at 8.00.52 PM.png

  1. Select "Post" in method, and "application/json" in content type.
  2. Paste your webhook URL in the URL box.
  3. Paste the following stuff. Edit it if you want.
{
  "username":"IFTTT YouTube Test",
  "avatar_url":"https://blog.eu.playstation.com/files/avatars/avatar_4364447.jpg",
  "content":"**{{AuthorName}}** uploaded **{{Title}}** at {{CreatedAt}}: {{Url}}"
}

Step 5 - Profit

Now what you have to do is just click "Create Action". It will start to run immediately. You can shut it down using the power button. If there's any error, it'll appear in the log. "Check now" button updates the log in case it is not automatically updated (I think).

I did not test it. As "requested" by @eslachance, I have tested it and it should work. If you have any error, do not hesitate to contact austinhuang#1076 on Discord.

Screen Shot 2016-10-24 at 2.59.07 PM.png

@AHIRAISSHY
Copy link

thank you so much this works

@TheProgenitor
Copy link

Quick question: If you don't want the username and avatar to be overwritten, how would you go about that? Would you simply leave those fields blank?

@fourjr
Copy link

fourjr commented Jan 20, 2018

@TheProgenitor don't include those fields then

@Hey-Holokin
Copy link

side note for those who are viewing this later: IFTTT has had an update. i believe the newer version of Maker is now called Webhooks.

@rmaxi-me
Copy link

rmaxi-me commented Feb 9, 2018

side note for those who are viewing this later: IFTTT has had an update. i believe the newer version of Maker is now called Webhooks.

I can confirm what @Pyrif said. Search for Webhooks instead of Maker.

@Cat5TV
Copy link

Cat5TV commented Nov 27, 2018

This is great, however once authenticated to YouTube, it doesn't seem I can then add a second recipe for a second channel - it only seems to want to use the first one I'd added (my account has several YouTube channels, I want to create a webhook for each of them). Any tips?

Copy link

ghost commented Jan 6, 2019

Twitter URL is broken

@Lokchi2017
Copy link

how do i make the recipe? i mean where

@birbcoo
Copy link

birbcoo commented Jul 2, 2019

how to make an IF recipe?

@SuperAirJacob
Copy link

Yeah, looks like this doesn't work anymore.

@delbertina
Copy link

This still works they just moved the button to create.

Step 3

  1. Click on your picture in the top right.
  2. Click "Create" in the dropdown

@mercy-thuyle
Copy link

How I can separate the in new line. \n didn't work.
I just want to show announcement like this

{"content": " <<< Hello @everyone. \n
Kênh youtube {{AuthorName}} just upload a new video {{Title}} \n
{{Description}} \n
Support Erik!!! {{Url}}>>>"}

@folliejester
Copy link

  1. austinhuang#1076 - no account exists
  2. how do i notify live streams?

@ItsDeedaya
Copy link

  1. austinhuang#1076 - no account exists
  2. how do i notify live streams?

I've been wondering how to do livestreams as well! I tried suggesting them as a feature but haven't heard back yet.

@mediamagnet
Copy link

if you use the webhook action instead of the maker one which is no longer there it should work.

@acollierr17
Copy link

Hello,

If you need further help with this guide or wish to see an updated one, please check out my guide. It's a fork of this one (credit is obviously given): https://gist.github.com/acollierr17/4ca990ab76bc6b2afe95fe77ee82ec37

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