Tell me more ×
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've just started experimenting with the Stack Exchange API today.

I created a small wrapper in C#. When I issue a request (e.g. Retrieve a user's profile) I can retrieve the rate limits from the headers (Maximum and Current). I append an API key so my daily limit is 10K instead of 300.

HTTP Headers

When I execute multiple requests in a row I would expect the current limit (X-RateLimit-Current) to decrement by one for each request until it hits zero.

However, I see that I frequently receive duplicate values.

For example, issuing 10 requests in a row gives me the following results:

Duplicate Limits

Any idea why this is the case? Caching I assume?

share|improve this question
Are you issuing the requests to the same site? – Nathan Osman Sep 20 '11 at 5:43
Yes, it's exactly the same request each time. The above example (screenshot) issues a request which retrieves my profile (/users/{ids}) for StackOverflow. I've just put it in a for-loop to test the rate limits. That's how I noticed this behavior. – Christophe Geers Sep 20 '11 at 14:09

You must log in to answer this question.

Browse other questions tagged