YouTube Data API - "Serving Limit Exceeded" - youtube-api

Over the past 24 hours we had a large number of TubePress users report an error message from YouTube:
Serving Limit Exceeded
Most of our users have their own Google API Key, and our cloud-hosted TubePress installation isn't anywhere close to hitting the daily quota. I can't find any documentation on this particular error message, nor can I understand why it would suddenly present itself on so many sites with different keys.
Could anyone explain what's going on?

Even the reason of failure is about quota, it has nothing to do with the quota because the default limit is largely enough. The problem is the new Youtube anti-spam algorithm deployed at the end of last month. Unfortunately it impacts negatively on the normal users.

This is probably because your "Per-user limit" is set too low. You can up it by going to Google Developer console -> APIs -> Enabled APIs -> <the API that's causing you trouble> -> Quotas and set "Per user limit" higher.

Related

Getting "The user has exceeded the number of videos they may upload" even though we have quota

I'm getting "The user has exceeded the number of videos they may upload" even though we have quota left. Is there a limit to number of video that can be uploaded? It seems like our automation is running into this more recently and we have not changed our automation, it has been running for several months. Thanks
There is indeed another not documented enough limit, in addition to quota:
badRequest (400)
uploadLimitExceeded
The user has exceeded the number of videos they may upload.
Source
As far as I know, we don't have more details, like the number of videos the user may upload...

YouTube DataApi v3 subscription limitations

I am using https://developers.google.com/youtube/v3/guides/push_notifications to continually monitor ~ 2,000 channels for new videos etc.
Up until last week, I wasn't having any problems, with pubnubsubbub, however, for some reason, I am getting 403 when I am trying to access (via curl or requests) https://pubsubhubbub.appspot.com/subscribe saying nothing more than
<p>
<b>403.</b> <ins>That’s an error.</ins>
<p>Your client does not have permission to get URL <code>/subscribe</code> from this server. <ins>That’s all we know.</ins>
</p>
So my questions are:
is there any limit (either IP or time or quota) that is documented somewhere and I am somehow hitting? As xml calls were "unlimited" and i do not see any difference in the official YouTube Data Api documentation
have somebody found a better pub/sub channel (either paid or not) with YouTube DataApi 3
if somebody had a similar situation, how long my "ban" will stay
As suggested by Marco Aurelio, I am adding my solution.
My VPS provider had some bans from Google on their IPv6 network in the data center where I had my server running. Thus by contacting them and fixing my network settings the pubsubhubbub continued working without issues.
So the tip for future debuggers stumbling upon here is trying to curl any other Google API (e.g. a function) that you are 100% sure it works and if you are still getting 403, then your IP address range is blocked for some reason (like data center ban in my case).
If you continue to have the problem and getting the "notification" with a maximum delay of 6 minutes isn't a problem, here is a workaround.
I don't use pubsubhubbub but you can simulate its advantages. Indeed you have 10 000 quota a day, using PlaylistItems: list with the uploads playlist of the channel found with contentDetails in part by using Channels: list.
In that way you can check for new videos for 50 YouTube channels for 1 quota so if you want to check your 2 000 channels you have to spend 40 of quota.
If you want to uniformly check during the day you can so make 250 global checks a day, so every 346 seconds (almost 6 minutes).
Of course you have to store your last videos found for a YouTube channel in order to check if there is any difference during your new global check.
If you just want a boolean response whether or not your current request response is different from the previous one, you can check the etag.

What are good guidelines to avoid getting locked by twitter API with a newly created bot?

I have finished creating a bot and got blocked 1 minute after I finally got it to work. The account is now restricted.
this is what I get on my terminal if I try to run the bot now:
tweepy.error.TweepError: [{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]
I understand Twitter may restrict new bots for several reasons. I have summited my report to try and get my account unrestricted.
What are good do and don'ts for bots?
In my original bot I was replying every 10s was this too much ? Should I had set a different time frame?
https://help.twitter.com/en/rules-and-policies/twitter-limits
Relevant parts:
Tweets: 2,400 per day. The daily update limit is further broken down into smaller limits for semi-hourly intervals. Retweets are counted as Tweets.
These limits include actions from all devices, including web, mobile, phone, API, etc. API requests from all third-party applications are tracked against the hourly API limit. People who use multiple third-party applications with their account will therefore reach the API limit more quickly.
What happens if I hit a limit?
If you do reach a limit, we'll let you know with an error message telling you which limit you've hit. For limits that are time-based (like the Direct Messages, Tweets, changes to account email, and API request limits), you'll be able to try again after the time limit has elapsed.
10 seconds is too much.

youtube data API not resetting quota

since 3 days the youtube Data API v3 keeps returning the same quota exceeded errors. I made some changes to drastically reduce the number of calls to the API yesterday, hoping it would reset at midnight pacific time today, but no such luck. Could somebody please look into this. The project ID is (removed), project number is (removed).
Thank you.
#TotallyFuzzy I am having same issue yesterday and when I looked into quota the daily limit was set to 0 in my google admin console and there was no way edit,
so in the end I removed and recreate the youtube API in developer console
that fixed the problem for me, here is the screenshot of new youtube API quota

Quota limit exceeded but no quota used?

Morning, everyone,
I come here today because I have a problem with the youtube API. I upload every day about 50 videos via the API, but I don't understand why since 3 days no more videos can be uploaded, the error I'm given is an overrun of the allowed quotas, which is strange because in the youtube API console, no quota has been used for 3 days (because of this error no video can be uploaded) ... ?
Thank you for you help
The main problem is youtube changed their API access, now in order to access their API one must apply and get accepted by their API compliance form

Resources