3

In the app management page for a little app I made, the following statement is presented below this key Pw9D)judG8FE4tJR3qjUTA((:

Pass this as key when making requests against the Stack Exchange API to receive a higher request quota.

Based on the "higher request quota" documentation, it's safe to assume that "higher request quota" is the upgrade from 300 to 10,000 requests per day per ip (my users are not authenticating). But, passing the key along with the initial request has had no affect, and I already verified multiple times that the key is correct. Here's the code for that call:

SE.init({
    clientId: 7265,
    key: 'Pw9D)judG8FE4tJR3qjUTA((',
    channelUrl: 'http://damndaniel.site/blank.html',
    complete: function (data) {
        // good to go...
    }
})

How can I get the request quota to be 10,000?

For more information about the call, head over to the site and open the console, the request object is being logged on every request. There you will see that the quota_max property remains at 300.

3

You are using the "Javascript SDK" and that's not how it works. The doc page calls the SDK "small and minimalistic".   The source code states:

This file is provided to API clients to automate various tasks, initially focused on login.

In fact the SDK really only does one thing. It helps you get an access_token if you need to authenticate. It doesn't help with anything else right now, nor has it ever.

To take advantage of your key, you need to pass it in every API call.

For example, compare:

Also, I recommend to use a filter.

  • That simplifies things a bit, doesn't it? Thank you. – m-a-r-c-e-l-i-n-o Jun 30 '16 at 21:00
  • You're welcome; glad to help. – Brock Adams Jun 30 '16 at 21:20

You must log in to answer this question.

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