How to avoid instagram error 429 The maximum numbe

2019-07-08 13:58发布

问题:

I do an application which delete comments on instagram Since saturday 31 october, I get this response when I use API to delete comments {"error_type":"OAuthRateLimitException","code":429,"error_message":"The maximum number of requests per hour has been exceeded...."}}. I see that there did a modification one year ago for the limits of the number of the requests, but I don't have this error during his execution since before their update. How to avoid it please? Is it necessary to retrieve a new token ? or is there an another way to avoid it?

回答1:

Use secure API request to get higher limit, I think u missed this email from Instagram:

When we announced our publishing guidelines for likes/relationship actions, we also introduced a new technique to sign API requests. As part of this announcement we set a deprecation date for the previous signed-headers functionality to Sept 1, 2015.

This email is to let you know that support for signed-headers has now been deprecated. We know that a number of developers (including your company) are still relying on this option, and have whitelisted your client_id for an extended period. Please plan the migration to securing your application with signed-requests as soon as possible. You can learn more about this feature here: https://instagram.com/developer/secure-api-requests/.

The extended support will end on Nov 1 2015. You will see your rate-limits for publishing likes/follows/comments reduced if you haven’t migrated after this date.