Search code examples
instagraminstagram-apihttp-status-code-422

Instagram API rate limits and taking down the client?


So i recently have submitted my Instagram integration app to market, but I'm concerned about users who repeatedly use the app. If some users do not observe the rate limits, Instagram automatically limits their activity. But my question is whether this may result in Instagram taking down my client? I mean do i have to apply the limits within my app to prevent them from taking down my client? And if so, how can i have a backup client for emergency?

And the other question is some limitations are not clearly stated by Instagram and are just applied, like limited number of follow and unfollow per hour which is independent from API call limits. What is the exact limitations about these staff? And do i have to observe these too? Thanks in advance.


Solution

  • Due to first question I think Instagram API developers assume that you'll handle 429 error code correctly (it'll be returned when you'll exceed hour limit) and you won't spam their API. Moreover, in Instagram doc you can find following statement:

    You may also receive responses with an HTTP response code of 400 (Bad Request) if we detect spammy behavior by a person using your app. These errors are unrelated to rate limiting.

    So I think, if you receive a lot of responses with 400, from Instagram point of view, it's yours app's user fault.

    About rate limits of undocumented endpoints, you should contact instagram support directly