简体   繁体   English

Twitter API V2 - 增加速率限制并获取速率限制状态

[英]Twitter API V2 - Increase Rate Limit and Get Rate Limit Status

I'm using following Twitter APIs我正在使用以下 Twitter API

  1. https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets https://developer.twitter.com/en/docs/twitter-api/tweets/manage-tweets/api-reference/post-tweets
  2. https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/api-reference/post-users-id-retweets https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/api-reference/post-users-id-retweets
  3. https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/post-users-source_user_id-following https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/post-users-source_user_id-following

The rate limit for these APIs are https://developer.twitter.com/en/docs/twitter-api/rate-limits here.这些 API 的速率限制是https://developer.twitter.com/en/docs/twitter-api/rate-limits

Twitter API Rate Limit Image Twitter API 速率限制图

The solutions I needed:我需要的解决方案:

  1. How can I increase the APIs rate limit?如何提高 API 速率限制?
  2. I'm using https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status API to get the APIs usage status, but it's returning same value in limit and remaining field. I'm using https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status API to get the APIs usage status ,但它在限制和剩余字段中返回相同的值。 How can I get the exact usage details of APIs?如何获取 API 的准确使用详情?
  3. How I can get the daily API APP limits?如何获得每日 API APP 限制? The API seems to be returning 15 minutes limits, but I need to know how much app limit quota is remaining. API 似乎返回了 15 分钟的限制,但我需要知道剩余的应用程序限制配额。

The post limits (Tweets, retweets, Direct Messages etc) are per-user quota.帖子限制(推文、转发、直接消息等)是每个用户的配额。 You can find out more about them from Twitter's help pages .您可以从Twitter 的帮助页面了解更多关于它们的信息。

The current technical limits for accounts are:当前帐户的技术限制是:

  • Direct Messages (daily): The limit is 1,000 messages sent per day.直接消息(每日):限制为每天发送 1,000 条消息。
  • Tweets: 2,400 per day.推文:每天 2,400 条。 The daily update limit is further broken down into smaller limits for semi-hourly intervals.每日更新限制进一步细分为半小时间隔的较小限制。 Retweets are counted as Tweets.转推算作推文。

These limits are shared across all of the apps a user might use within a day.这些限制在用户可能在一天内使用的所有应用程序中共享。 There is no API endpoint or header that shows what the current quota is - you have to account for this in your code.没有显示当前配额是多少的 API 端点或 header - 您必须在代码中考虑这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM