How webpages like Statigram doesn't exceed Instagram API rate limits

后端 未结 3 1451
渐次进展
渐次进展 2020-12-25 12:29

Well, pretty much what it says on the tin.

I\'m really curious about how pages like Statigram do their search functionality without users authentication and not exc

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-25 13:25

    The only special request you have to send to Instagram is the request to post comments.

    The API limit is 5000 requests per hour per access_token or client_id. Every user has their own access_token, so as long as the requests from the third party application uses each individual access token, they will be hard pressed to exceed 5000 per user per hour.

    That works out to 83 requests per minute and any user interacting with your application is highly unlikely to hit that.

    From the docs:

    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.

    If you are not using user authentication, you will likely hit the limit with just your client_id.

提交回复
热议问题