Twitter Api:速率限制-了解我可以做的剩余推文 [英] Twitter Api : Rate limit - know remaining Tweets I can do

查看:490
本文介绍了Twitter Api:速率限制-了解我可以做的剩余推文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Twitter API,有些事情我不理解.

I'm using Twitter API and there is something I don't undestand.

我可以问"rate_limit_status"呼叫可以在许多事情上进行多少次剩余的呼叫. ( https://dev.twitter.com/rest/reference/get/application/rate_limit_status )

I can ask how many remaining calls I can do on a lot of things with the "rate_limit_status" call. (https://dev.twitter.com/rest/reference/get/application/rate_limit_status)

但是它并没有告诉我我可以做多少条推文,或者我可以做多少条收藏夹.

But it doesn't tell me how many tweets I can do or how many favorites I can do.

有没有办法问这个?我找不到这些动作的速率限制.我进行了测试,经过300条推文后,twitter阻止了我,但我无法知道何时可以再次使用API​​进行推文.

Is there a way to ask that ? I don't find the rate limits on theses actions. I made a test, and twitter stopped me after 300 tweets but I have no way to know when I will be able to tweet again with the API.

为什么这些动作与其他动作分开?在哪里可以找到推文和收藏夹上的速率限制?我还有其他的"API调用"吗?

Why are these actions separate from the others ? Where can I find how the rate limit work on tweets and favorites ? Is there an other "API call" that I'm missing ?

推荐答案

tweets上的速率限制没有可从Twitter REST API访问的速率限制.

The rate limits on tweets has no rate limits that you can access from the Twitter REST API.

更新解决方案

您应该遵循以下规则:

每天

2,400条推文.每日更新限制会进一步细分为半小时间隔的较小限制.转推算为推文.

2,400 tweets per day. The daily update limit is further broken down into smaller limits for semi-hourly intervals. Retweets are counted as Tweets.

来源: https://support.twitter.com/articles/15364

或者每30分钟发送50条推文.另外请注意,Twitter可以根据尚未公开的规则进一步限制Tweets的数量.

Or 50 tweets every 30 minutes. In addition please note that Twitter can restrict the number of Tweets further based on rules that have not been made public.

请注意,Twitter可能会发现此活动可疑,并阻止了您的帐户.您可以与他们的支持人员联系,让他们知道您打算做什么.

Please be aware that Twitter will probably find this activity suspicious and block your account. You can let them know about what you intend to do by contacting their support.

收藏夹解决方案关于收藏夹,您将必须基于在每次查询中返回的一些标头.标头通常包含您要查找的信息(包括剩余信息,授权总数和下次刷新前的时间).

Solution For Favourites Regarding the favorites you will have to base yourself on some headers returned in each query you make. The header often contains the information you are looking for (including, remaining, total authorized, and time before next refresh).

提防文档

最后请注意,您所参考的文档不是最新的,并且您应该能够获得比其中指定的更多的RateLimits.

Finally please note that the documentation you are referring to is not up to date and you should be able to get more RateLimits than specified in it.

您可以找到几周前我撰写的有关此文档的帖子:

You can find a post regarding this documentation that I made few weeks ago:

https://twittercommunity.com/t/ratelimits-properties- make-no-sense/65498

这篇关于Twitter Api:速率限制-了解我可以做的剩余推文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆