固定利率限制问题 [英] Instagrm Rate limit issue
问题描述
我正在开发一个移动应用程序,该应用程序将请求Instagram服务器搜索带有标签的照片.客户端ID随请求一起传递.
I am developing a mobile application that will request Instagram server for searching photos with the hashtags.Client id is passed with the request.
由于Instagram提供的请求限制为每小时5000个,因此我的问题是:-
Since the request limit provided by Instagram is 5000/hour so my question is:-
考虑通过客户端ID或IP地址通过客户端ID速率限制请求Instagram的api吗?
While requesting api of Instagram via client id rate limit is considered in respect of client id or IP address?
请在同一位置建议我.
我已经阅读了该文档,但是在那儿没有提到.
I have read the doc but it was not mentioned there.
推荐答案
限制要好.如果您发送太多请求的速度太快,我们会 发回503错误代码(服务器不可用).
Limits Be nice. If you're sending too many requests too quickly, we'll send back a 503 error code (server unavailable).
每个access_token每小时只能限制5000个请求或 整体为client_id .实际上,这意味着您应该(如果可能) 对用户进行身份验证,以使限制远远超出用户的权限范围 给定用户.
You are limited to 5000 requests per hour per access_token or client_id overall. Practically, this means you should (when possible) authenticate users so that limits are well outside the reach of a given user.
另请参见"Rate Limit Exceeded Instagram Error" :
我尝试计算自己的喜欢次数,直到遇到超出Rate Limit"错误, 大约有100 – 150张照片,我等了5分钟,并试图 再像一次然后错误消失,直到我达到大约50到60张照片为止, 根据分析,我认为Instagram可以允许100 – 200 每小时的照片..并遵循其60 – 100…
I tried to count my likes until i hit "Rate Limit Exceeded" Error, It came around 100 – 150 Photos, and i waited for 5 mins and tried to like again then the error goes off until i reach some 50 to 60 pics, from the analysis i suppose Instagram is permitting to like 100 – 200 photos Per Hour.. and for Follows its 60 – 100…
这篇关于固定利率限制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!