Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I got my first throttle violation error after running in jsfiddle some example code given to me by a library author in response to a question of mine about how to use their library.

This is the error I now get when calling any 2.0 API: { "error_id": 502, "error_name": "throttle_violation", "error_message": "too many requests from this IP" }

Fair enough, but I don't know when I'll be able to use the API again, when my "punishment" will be over.

Would it be too difficult to include in such error messages either a timestamp for when this will be lifted, or perhaps a duration of the time remaining until it's lifted?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

When this class of error is encountered, the number of seconds until the quota rolls over is indicated as part of error_message now.

For example:

{ "error_message": "too many requests from this app/user pair, more requests available in 76400 seconds" }

This is meant for debugging and development purposes only, applications should take care to not actually trip any of the API's throttles. As such the exact format of this message is subject to change at any time.

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .