The API specifies error codes, and messages. It also specifies a "backoff" parameter.
But, even while respecting the backoff and stopping at errors, and even when waiting a long time between requests (180ms), I get this answer as HTML:
<html> <head> <title>Too Many Requests - Stack Exchange</title> </head> <body style="font-family:Arial,Helvetica,sans-serif;"> <div style="margin: 0 auto; width: 960px;"> <h2 >We're sorry...</h2> <p>There are an unusual number of requests coming from this IP address.</p> <p>To protect our users, we can't process any more requests from this IP address right now.</p> <p>We'll restore access as quickly as possible, so try again soon.</p> <p>If you believe you have reached this page in error, <a href="mailto:email@example.com">contact us</a>.</p> </div> </body> </html>
Why is it HTML ?
And how am I supposed to deal with that ?
Retry later ? When ?
Related: What's the proper way to fetch the score of all answers of SO?
quota_remaining=9281, I just got this error
503 Service Unavailable"Too Many Requests - Stack Exchange". That's really confusing.