NightDev Community Forums

Latest Youtube Video Urlfetch Custom API

I’m trying to make a !newvid command for Twitch and Discord that links the most recent YouTube video. I am not familiar with custom APIs and I’ve tried this one: $(urlfetch https://beta.decapi.me/youtube/latest_video?id=ChannelName) It seems to have worked with the example channel “MonstercatMedia” but not the YouTube channel I need. I have also tried adding json to see if it was a character length issue, but It gives the same error of retrieving YouTube videos from the channel. Is there anything else I need to do or is there another option?

Try https://decapi.me/youtube/latest_video?user=ChannelName