Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

According to the answer given to this question, it seems like the API limits requests based on the first one. (Regardless of the presence of a key.)

Can this please be changed? It really hinders development.

Edit: this is quite serious. My mobile site quickly used up its 300 requests - even though it's using a key now.

share|improve this question
By the time your development is serious enough to go through 300 requests in a day you should be using a key on all requests. Its only a hindrance in the first 24 hours if you do so. – Kevin Montrose May 21 '10 at 20:59
@Kevin: Exactly. It's those first hours that are the problem. – Nathan Osman May 22 '10 at 0:24
those first few hours aren't worth the trouble. – Kevin Montrose May 22 '10 at 0:54
@Kevin: They may not be... but I am suffering the consequences right now. – Nathan Osman May 22 '10 at 5:16
up vote 3 down vote accepted

Completely agree.

It seems this could be implemented as a simple check for the key:

if (keyispresent && keyisvalid && currentlimit < keylimit)
    currentlimit = keylimit;

I don't think this would incur much overhead.

share|improve this answer
Ya. Consider this: a user visits a page that makes an API request via AJAX without a key. Suddenly, through no fault of theirs, they are limited to 300. – Nathan Osman May 21 '10 at 17:27
That's why I said "<" – Joel May 21 '10 at 19:04

Actually, you can use it to boost your daily cap to 100000. :-)

Help requests trigger different daily limit, so if your first request for the day is stats?help, you get that limit instead of the API key limit or the no key limit.

share|improve this answer
I don't think that's a viable solution... especially for the end users. – Nathan Osman May 21 '10 at 17:25
I don't expect the end users to be making no key requests. They would be using an already developed app that comes with a key. – Franci Penov May 21 '10 at 17:28
You never know... – Nathan Osman May 21 '10 at 17:34

You must log in to answer this question.

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