I am trying to upload upload 1000 videos to YouTube through the YouTube Data API directly.
Have tried the YouTube Data Api service, but unable to load more than 7 videos.
The YouTube Data API has a cost based quota. By default when you create your project you are given 10000 quota points to use. If you check the Quota calculator you will find that Video.Insert costs 1600 quota points.
10000 / 1600 = 6,25
So using the default quota you can max upload 6 videos per day.
The solution is to go to google cloud console and request a quota extension. Be patient it can take some time to get approved for your extension.
You may want to just ask for 2 million see what they say.
Related
I want to get the subscriber list of some YouTube accounts, about 100k accounts.
tokens are enough now, and I tried get method like this:
https://www.googleapis.com/youtube/v3/subscriptions?key=xxx&channelId=xxx&maxResults=50&part=snippet
but the quota limits my crawling speed, how can i get rid of this limitation?
The YouTube api has a very limited quota to begin with. You will need to aplly for a quota extension from the Google developer console under the library tab and search for the YouTube Data api.
You will need to be pasent. It takes time to get a quota extension.
I am currently working on an application that manipulates enormous streams of videos and I currently implement a "share on youtube" button so a user ( any user of the application that provided my app with an access token for his youtube account ) can share small parts ( lets say 2 to 7 minutes ) videos on their personal accounts.
In my understanding I require an application from youtube along the user's access key to upload anything. The problem is the application "general" quota is 10k units. Each video upload costs 1605 ( calculated ) units. Meaning that my application can upload up to 6 videos per day because it adds up on the general quota. Is there a way for those units to add up on the per-user quota basis?
If I request an increase to my quota ( lets say 1mil / approved ) that means I can upload ~623 videos.. What would happened if 100 users try to upload a video in their personal accounts ( using my application, thus my application key ) as this response is not reassuring but is also 2 years old.
The code is as straight forward as userSpecificConnection.uploadVideo(video) which creates a userConnection to youtube using the user access token and the application key.
This question seems similar to my question but is 3y/o without a clear answer on the problem that I am currently facing
To clear out my questions :
Is there a way to upload videos on the per-user quota?
As the application is just an intermediate for the users to upload videos to their personal accounts I will not be monitoring how many videos each user uploads to their personal accounts ( as they are personal ) BUT if a user uploads 50 the rest of the users will not be able to upload anything?
Is there a way to avoid this? ( blocking a user from uploading due to an other user reaching the limit ). The users are independent and should not limit each other.
I am not avoiding opening a request for increased quota. Just do not want to start a process that may not help me and will only consume someones time to review my application.
Is there a way to upload videos on the per-user quota?
All quotas are against your main quota. So if one user goes crazy and eats all your quota your other users are going to be stuck. Thats how the quota system works unfortunately its project based and not user based.
As the application is just an intermediate for the users to upload videos to their personal accounts I will not be monitoring how many videos each user uploads to their personal accounts ( as they are personal ) BUT if a user uploads 50 the rest of the users will not be able to upload anything?
You will get an error back stating that they have reached their quota limit for the day. You should just display that to them and let them know the quota will reset at midnight west cost USA time.
Is there a way to avoid this? ( blocking a user from uploading due to an other user reaching the limit ). The users are independent and should not limit each other.
Unless you keep track in your application how many uploads the user has made there is no way for you to know they have reached the limit without just trying to do an upload and getting the quota error. Dont worry to much about getting the quota error google doesn't count that errors like that against you just format it nicely for the user.
I am not avoiding opening a request for increased quota. Just do not want to start a process that may not help me and will only consume someones time to review my application.
My rule of thumb is when i have reached 80% usage daily for a quota i normally apply for extension. The youtube api quota can take time to get extended i have heard as long as six weeks.
i want to be able to fetch all the quotas status related to the google analytics API consumption. One part of it seems to be available via IAM:
First, accessing to these data through an API would be nice..is it possible with the IAM API ?? If so, can i get a sample ?
Next, i need one more data: the google analytics quota consumption PER VIEW (which is limited to 10.000 queries per view per day)..is it also possible to fetch this data, one way or another ?
Cheers,
Clément.
At this time there is no way to programmatically access the quota usage of any Google API.
You will either need to check it manually on the google developer website or you will have to keep a count yourself in your application.
There is no other way of fetching data the Google Analytics data. If you have a 360 account you can have your data extracted into Big Query.
You can only make 10000 requests per view per day. There is also no way to increase this quota.
IAM API is for use with Google cloud and not discovery APIs so no that is not going to help you either.
We have a widget which filters analytics referrer spam in Google Analytics by adding 30+ filters to each property-view.
Google Analytics API has a limit of 500 write operation per day, which sucks, because our widget is used a lot and we need around 35 writes per property-view.
I'm looking for a way to read the current API limit so I can notify users when the limit is reached, because right now I'm showing a message when I get an error message from Google - after the request. Which is annoying.
Google Dev. Console contains the usage per API call and what would be enough for me to know when we reached the limit.
My question: Is there an API which can read out this data for the past 24 hours?
Can I get 50M quota per user if using Access Token(Oauth2) with Youtube Api v3?
Or will it be bound to my Project ApiKey, and therefore I will only get a quota of total 50,000,000 for my application ?
thx! :)
Quota usage for the YouTube API is project based not user account based.
So if I authenticate your application / project and make 10,000,000 requests, then you authenticate application and make 40,000,000 you will have blown the quota out.
There is one quota that is user based Per-user limit 3,000 requests/second/user but this can be gotten around by sending a random quotaUser with all of your request. This tells the API that each request comes from a different user, but I didn't tell you about this.