My appllication uses twitter api to post DM. I want to keep a track of the DM's so that i don't exceed the rate limit(1000 DM per-user/per-app). I want to know what time does the twitter resets the count for rate limit so that I can sync it with my application's count if i don't exceed the rate limit for that day.Is the DM rate limit also distributed over the entire day in slots of 15min window as others? If yes what is the distribution for the same?
Generally, there is a 15 minute window. If you exceed a particular rate limit, you must wait 15 minutes for the limit to be reset. However, for posting tweets it's a little different. There is no published rate limit or window. This is to deflect spammers. When you get a 403 error, your best bet is to keep trying at some not-too-short interval until the post succeeds.
Related
I'm implementing STT (Speech-to-Text) with iOS Speech framework.
Apple's official document says.
Be prepared to handle failures caused by speech recognition limits. Because speech recognition is a network-based service, limits are enforced so that the service can remain freely available to all apps. Individual devices may be limited in the number of recognitions that can be performed per day, and each app may be throttled globally based on the number of requests it makes per day. If a recognition request fails quickly (within a second or two of starting), check to see if the recognition service became unavailable. If it is, you may want to ask users to try again later.
Another document says that a device can send 1000 requests per hour.
Then, if one user exceeds 1,000 requests per hour, other users cannot request it?
Or can the user request 1000 times per person?
I looked up the official document or article, but it was not clear.
I wonder if it is a limit of 1000 requests per hour or a limit of 1000 requests per user.
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.
I applied to YouTube for Data API extension/unit increment a while ago. This morning, i got a reply that my request has been granted and my daily units increased to 1,000,000. However, on Google console, my daily quota still reads 10,000 per day. Please how do i effect the increment on my API Client/Project?
How does Socialblade generate the live subscriber count with the youtube api?
It updates every second for each channel. Wouldn't that easily exceed the rate limit?
From their app store description, they state they're pulling from the youtube api:
View your favorite YouTubers live sub counter
and get real-time updates every second direct from YouTube's API.
No more having to wait hours for the number on your channel to update!
It doesn't exceed their ratelimit.
It has a quota cost of 1 point. You can use 30,000 quota units/second/user and 1,000,000 per day. 50M if your application was made before April 20, 2016.
I'm currently working on an app that requires video uploading via youtube. I plan to share the video in app via the the youtube API. According to the documentation to share a video on youtube requires "approximately 16000 units.", with each app having a complementary quota of 5 million allowing aprox. 312 video posts a day.
This app will have thousands of users so the "complementary" quota limit most definitely won't be enough, in the app dashboard when pressing "Request more..." the following message is displayed: "We Are Not Approving Quota Requests."
Obviously there are many apps out there with millions of users such as "Social cam" or "Talking Tom" that would be exceeding the complementary quota.
So my question is how can app increase its quota? If it is paid for what is the pricing structure?
Actually, Now a days the quota cost for uploading videos is about 1600 per video upload. And the quota limit is also decrease by 100000 per day. For uploading 312 videos per day can cost 312*1600=499200. Which is less than 100000 quota limit. But if you want more videos to be uploaded you can increase data limit by little knowledge of php.
$rand_keys = array_rand($num);
$comm=$num[$rand_keys];
Where $num is an array that contains keys, Whatever number you want. Each new request go to the next api key. By making 10 keys you can get 10 times than limit also. Other wise you have to apply for quotas.