Instagram API Error: Client request limit reached

*爱你&永不变心* 提交于 2019-12-04 03:49:15

问题


I am getting this error whenever I try to follow someone on Instagram via API no matter how many follows have been done before:

{"meta":{"error_type":"APIError","code":400,"error_message":"Client request limit reached"}}

My app allows authenticated users to follow interesting people. I know that there is a 5000 call/hour limit per authenticated user, but it fails even with new users. Do my app is reaching some kind of client level limit?


回答1:


APIs like follow, unfollow, comment are limited to 350 requests per hour. However sending requests from client side will fix this problem to some extent but it allows the users to see your API token.




回答2:


In this case it looks like it would be beneficial to get some more data from your users. You could use Google analytics to track the "follow" action

https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

This would give you a timestamp and information about user behavior.

Even with an advertised rate of X requests per hour, one user hammering the service with your API key can cause everyone to get throttled. (Not guaranteed, but pretty common practice for companies to keep their services alive)

It might be a good idea to reset your API, its possible (though unlikely) that someone has acquired your key and is using it.



来源:https://stackoverflow.com/questions/20101877/instagram-api-error-client-request-limit-reached

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!