API StackOverFlow, "quota_max"

2

Hello, I'm using a collector to fetch data from all stackoverflow forum users through the API. But I am suffering from the "quota_max" that are only 300 searches per day. I've tried the Sleep function, put the sink to sleep for up to 300 seconds per search, and even then it fills in the quotas and stops coming back. Can anyone know a way to search the api without stopping (if possible) or how replenishment of quotas works?

    
asked by anonymous 18.08.2014 / 23:57

2 answers

3

You need an API key to be able to expand this number. In this answer you will see that with a key you can have up to 10,000 requests while the limit will continue 300 if not to own. Of course, you can even pick up information from non-key users, but it will have to be 300 per day.

To use it, just pass it in the query string. Like, if you're doing it:

http://api.stackexchange.com/2.2/users?
page=1&order=desc&sort=reputation&site=p‌​t.stackoverflow

You'll get to do:

http://api.stackexchange.com/2.2/users?
page=1&order=desc&sort=reputation&site=p‌​t.stackoverflow
&key=sua_chave

(line breaks added for readability; obviously, there are no line breaks in URLs)

    
13.04.2017 / 14:25
1

If you want all users, you might want to download the site dump via bittorrent . There, the complete list of users will be available as an XML file.

    
22.08.2014 / 16:16