2
Hello, I am using a collector to fetch data from all users of stackoverflow forum by API. Except I’m suffering from the "quota_max" which is only 300 searches a day. I already tried with the Sleep function, put the collector to sleep up to 300 seconds per search, and yet it fills the quotas and stops returning. Someone might know a way to search the api non-stop (if possible) or how quota replenishment works?
Can you explain your problem in terms of code? Can’t use any cache? You’re using
access_token
? Read the documentation?– brasofilo
You need an API key to expand this number. In that reply you will see that with a key you can have up to 10,000 requests while the limit will continue to 300 if you do not have it. Sure, you can even get information from users without key, but it will have to be 300 per day.
– Mansueli
My python code collects directly from the api site ranging only from the page number to be searched. Each page returns me 100 users, and I need all users. As much as I try to register to get a key, I don’t know how to use it
– Pythowner
@Pythowner Don’t just pass her on query string? Like, if you’re doing
http://api.stackexchange.com/2.2/users?page=1&order=desc&sort=reputation&site=pt.stackoverflow
you will go on to dohttp://api.stackexchange.com/2.2/users?page=1&order=desc&sort=reputation&site=pt.stackoverflow&key=sua_chave
.– mgibsonbr
@mgibsonbr, you solved my problems, you are God. Thank you very much
– Pythowner