How Tom Scott & Mr. Beast use APIs to update their videos programmatically

preview_player
Показать описание


Note: The background job is on a 5 minute interval, so it won't be very accurate.

Рекомендации по теме
Комментарии
Автор

The background job is on a 5 minute interval, so it won't be very accurate. It should become more accurate as the video gets more views.

Fireship
Автор

plot twist: mr beasts editor actually updates the thumbnail manually

Many_Mirrors
Автор

Great video! Just FYI to anyone who sets this up. Its 50 quota to update a video. and 5 for the snippet and statistics call. If you do this at 5 min intervals with the 10k quota limit you'll run out of quota and start getting rate limit errors.
1440 minutes a day / 5 = 288 daily updates. 55 quota * 288 = 15, 840 quota needed to pull this off. Set your interval to 8 mins and you'll have just enough ;)

rogue.ganker
Автор

Of course the code is the most exciting part to us it's literally our job hahahah

freddzn
Автор

Thank you for showing that code is not dull on screen 🙌🏻

wcandillon
Автор

Jeff, your videos are the best. Watching them makes me want to code, but then I see another of your videos and I want to learn what you have to say in that video before I begin coding! Your presentation style is literally too engaging.

Christopher-ewjw
Автор

0 views, 8 after refreshing. Too cool!

mmmike
Автор

Great video as always Jeff, However I want to share some feedback if that's ok :)

While I really appreciate the educational value of this video, I get the feeling that it is trying to target two mutually exclusive demographics: people who are new to using APIs (and likely, web development in general) and people who are interested in creating a Cloud-based Recurrent video updater using Youtube API.

Someone who needs an introduction to Rest APIs will likely not understand half what you covered in this video, (you skip a lot of explanations a newbie might need to understand things like OAUTH, Cloud functions, Firebase...etc)

On the other hand, someone who's ready to create a Cloud-based video updating micro-service likely knows their way around a REST API. so the whole explanatory part of the video is irrelevant to them.

So, instead of appealing for both levels of programmers, much of content of the video achieves the opposite (by feeling irrelevant, or even alienating)

Of course, I'm not saying you shouldn't try to make content that appeals to users with different levels of experience, I'm just the saying that the introduced subject and the example chosen in this particular video are not a great match.
Just thought I'd give my two cents, Keep the up the good work! :)

abdoufma
Автор

I freaking love the 90s look of your videos, it gives me more interest of the content :)

friize
Автор

Tome Scott makes US' trending tap a little less trashy. His channel is a great entrance into scientific stuff, all of his videos showed us how amazing science in generally is. You're awesome too, you're the one that I always look up to and get inspired from. I hope one day we can get a video of yours that without editing stuff and let us getting to know more about you about journey to JS.

VoxyDev
Автор

“Talk is cheap. Show me the code.” Thank you for showing what actually matters and skipping the rest.

gitziom
Автор

1:53 “The process starts when the client (your application) sends a request to the server”
Backend developers: are we a joke to you?

sodiboo
Автор

this, this is what I was thinking a while ago,
so let YouTube remove the dislike count, we could offer up a free service, which basically does either:
- update the description with total number of dislikes
- even better, have a translucent progressbar kind of bar on top 20 px showing ratio between like and dislikes,

if as a YouTube content creator, if you WANT to use this, you CAN, or you can choose not to :)

I don't think this would cost much to host though, hourly could be even made free and every minute needing to be paid or something to make sure we don't run out of money for servers which host those things.

NishchalGautam
Автор

FYI you are going to run out of API quota, if you update it every 3mins.
As a call to Video Update is 50 quota + 4 for the parts .
1440 mins per day / 3 = 480 calls to the API per day
480*54 = 25920 quota required.
Even with 5min intervals you require 15552 quota

kmcat
Автор

To update the thumbnail dynamically, create an additional script which you can pass a query string to with the number, and in the code draw the number on top of your original image. In PHP, you can use the GD library to easily achieve that. Then in the PUT request you're sending back to YouTube pass the link to the image script with the corresponding query string.

AnimateLogo
Автор

3:47 this is not always correct with YouTube Data API,
As the API can return a 403 out of quota response, which I personally think should be changed, as this overlaps with other requests that do require permission.
Side note: You will also need to verify your GCP account to get YouTube data API quota.

kmcat
Автор

We all love you. You are one of the best youtube content makers that have ever seen.
Always be yours, love from Arjun😄❤️

arjunshinde
Автор

This video is so underrated. Thanks for the information 🙏

badru
Автор

Put it on 0.75 so i can follow what he is saying.
He speaks so damn fast

MusicForHourss
Автор

I found the classic API analogy helpful.
API - the waiter
You - the customer
Server - the kitchen
Buttons on the webpage - menu of options

onceappuonatime