Using the API "https://api.twitter.com/1.1/application/rate_limit_status.json" doesn't retrieve any info about posting direct message API (https://api.twitter.com/1.1/direct_messages/events/new.json) rate limit, even when using this (https://api.twitter.com/1.1/direct_messages/events/new.json) none of the twitter rate limit headers exists (x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset)
So how we can retrieve this API rate limit????
Those headers only apply to read-only endpoints, not for HTTP POST calls. This is not an API rate limit, it is an account limit. Twitter accounts have a maximum number of Direct Messages they can send each day.
The current technical limits for accounts are:
Direct Messages (daily): The limit is 1,000 messages sent per day.
Additionally, there are adaptive limits to enable conversations to occur more easily that do not count to these limits, but are on a per-message basis:
Accounts may send up to 5 messages via the API in reply to a message they have received within 24 hours. Each message received resets this threshold.
So, this is not something that you can get from the API, you have to keep track of these yourself in your code.
Related
YouTube Data API v3
Quota: Queries per day
Current limit: 10,000
How can I increase the quota of my API?
The screenshot says it all: You are already using the maximum allowed daily API calls allowed by your subscription plan. If you still need more than that, you need to pay for an upgrade of your subscription.
If you have reached the max quota you can request additional quota. by submitting the YouTube API Services - Audit and Quota Extension Form
You can read all about this in the YouTube Data API - Quota and Compliance Audits documentation page.
Just make sure to click extension request at the top.
Intro to YouTube API and cost based quota.
I am working for a news channel which uploads 50 videos per day. I have integrated youtube api on the website for the same purpose. There seems to be a quota limit of 6 videos per day. Is there any way I can purchase or get more quota limit? What is the process and charges for increasing the quota limit.
The only way of obtaining a quota extension for your application is that of addressing Google directly.
There's this form that you'll have to fill in. Than wait for response -- which, according to the experience of users of this forum, doesn't arrive shortly.
I haven't worked with uploading videos but you should be able to ask for additional quotas for google apis on the IAM & ADMIN console view under Quotas (there should be a link from the developer dashboard under Quotas. Once there just select the quota you would like to change and submit a request.
Having said that, I have no experience with this process, so I don't know what is the involved in approving such a requests nor what kind of costs be involved.
What is the Maximum number of requests per user for Youtube Data API? Is there a way to increase the maximum number?
My application uses Playlists: insert and PlaylistItems: insert. I know about maximum number of requests for Youtube Data API. but these api returns RATE_LIMIT_EXCEEDED even though the request limit has not been reached.
So I changed my account and ran the APIs, it worked.
The problem can be avoided by preparing multiple accounts, but it is not solved fundamentally.
Is there a way to increase the maximum number of Youtube Data API requests per user?
somedays ago i contacted Google about the same problem you have, and they answered me saying my API key was out of compliance.I think your case is the same, but until now I didn't realized what I did for The API being out of compliance. if someone knows the answer I appreciate.
I just want to know how long it takes for Google YouTube Data API to review a request for quota increase. I only got an email saying my request was submitted, but I have no idea when it'll respond back. I have emailed requests to google before and was never heard back. I am anxious to know if my request will be approved or looked at.
So I'm trying to figure out if Twitter increases the rate limit for my app if I had users sign-in - and keeps the rate increase - even if users signed in 1 year ago. Meaning, does just the act of signing in increase the pool your app is allowed of requests? And what am I using if this is so, the app token without using the user token? Does the app token "benefit". Of if I have 10 users from a year ago with 150 requests allowed per 15 minutes, to make use of the 1500 requests, would I only be able to 'get it' if user token is included with the request?
From the Twitter.com page on rate limits...
Rate limiting of the API is primarily on a per-user basis — or more
accurately described, per user access token. If a method allows for 15
requests per rate limit window, then it allows 15 requests per window
per access token.
Each user/token gets their own allocation of requests; there's not a single set of requests shared by all users.