I registered an app and tried to make a couple of requests via Chrome (without actually creating any application yet). The thing that is really confusing is that with making a single request, quota_remaining
decreased by a few thousand.
Details:
- Registered app
- Starting quota 10 000
- Sent request below (only once, via Chrome):
https://api.stackexchange.com/2.2/questions?order=desc&sort=votes&tagged=microservices&site=stackoverflow&filter=!*fZOXQJitmsheGqKd_WMzQ.84jVWfBO.1Sqt*&key=XXXXXX
- In response received
"quota_remaining":7524
, so it already decreased by 2.5k with single request - made request below (again only once, via chrome):
https://api.stackexchange.com/2.2/questions?order=desc&sort=votes&tagged=docker&site=stackoverflow&filter=!*fZOXQJitmsheGqKd_WMzQ.84jVWfBO.1Sqt*&key=XXXXXX
- In response received
"quota_remaining":7463
. It is obviously much better than 2.5k decrease, but still decrease by 100 on single request doesn't make any sense to me
I understand, from the documentation, that each single request should decrease quota by 1 only.
Does anyone know if it is expected behavior? And if it is, how to I avoid depleting quota that fast?
access_token
, the 10K quota limit is shared by everything on your firewall's IP.key
andaccess_token
are very different.key
identifies an app.access_token
identifies a logged-in user of that app. See here for a Q&D example of using anaccess_token
(with the client-side OAuth flow enabled in the app's settings).