YouTube API's limits

w1ll

Junior Member
Joined
Feb 23, 2019
Messages
127
Reaction score
53
Howdy BHW members!

I started developing my own YouTube downloader. Why? Cause I wanted a website that:
1) Works on old browsers
2) Is fast
3) That gives me the ability to download thumbnails, avatars, metadata, MP3/MP4/3GP files and so on.

The way it works:
The user is the one that sends the search queries to youtube (so my server doesnt have to intervene).

In some cases (like for thumbnails) we can make it so my apache server doesnt have to touch youtube's servers: the user is able to download the content using client-side scripts only. Cool.

The thing is, we need an access token to be able to send those queries to YouTube. So I made my own token using my google account. Inevitably, while I was developing, I got the following JSON error:
Code:
{
 "error": {
  "errors": [
   {
    "domain": "youtube.quota",
    "reason": "quotaExceeded",
    "message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e."
   }
  ],
  "code": 403,
  "message": "The request cannot be completed because you have exceeded your \u003ca href=\"/youtube/v3/getting-started#quota\"\u003equota\u003c/a\u003e."
 }
}

As you can see, this piece of junk throw an "error 403" at me saying that I exceeded my quota. I filled up the form to get more juice but I doubt they're going to accept my candidature, since im a content ripping site.

Is there any way to generate or get tokens that dont have any quota (or a big quota)?

How are other websites doing it?

Cheers! ;)
 
https://github.com/ytdl-org/youtube-dl/

Or you will need to habe multiple api accounts and rotate them so you don't hit your quotas. You are able to store api keys/domain in your servers and can query youtube using it.

Ah, so, some kind of server-side php script that rotates between the keys. Alright. Maybe I could pass those keys to the user so I dont have to bother with proxies, perhaps?

Interesting. Thanks for the idea!
 
I never understood why anyone would use API for youtube.
You can direct interact/scrape without the api, which means no limits.

So it seems, if you have the skill to write code to interact with the api, then you likely have enough to just build your script to work without the api.
 
  • Like
Reactions: Toz
I never understood why anyone would use API for youtube.
You can direct interact/scrape without the api, which means no limits.

So it seems, if you have the skill to write code to interact with the api, then you likely have enough to just build your script to work without the api.
Nice, thanks for the tip..

Tho, how do you get access to that (I guess, private) API? Are the replies from the server encoded in JSON or do you have to get the values from the page DOM itself?

My goal here is to be able to search for videos client-side and then pass the video ID to my server. Do you think thats possible without using the official API?

Edit: found this thing..

Seems fishy and unreliable tho.. I really want to make this client-side.
 
Last edited:
Nice, thanks for the tip..

Tho, how do you get access to that (I guess, private) API? Are the replies from the server encoded in JSON or do you have to get the values from the page DOM itself?

My goal here is to be able to search for videos client-side and then pass the video ID to my server. Do you think thats possible without using the official API?

Edit: found this thing..


Seems fishy and unreliable tho.. I really want to make this client-side.

Use the git hub thing bro. Just make a django web api and send your requests to it. It direct downloads from youtube for you without using API

https://github.com/ytdl-org/youtube-dl/
 
thanks for this helpful information ...
i have a problem with youtube api quota and i think its a solution for me
but i dont know how to impleement this.
can someone help me plz ?
 
Back
Top