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:firstname.lastname@example.org">contact us</a>.</p> </div> </body> </html>
Why is it HTML ?
And how am I supposed to deal with that ?
Retry later ? When ?