Is it possible to get the number of answers and questions the a user has made through the stack overflow api?
Currently, I have found a hacky way. It consists of getting the json response for user questions (or answers) and then counting the number of items in the array.
However, since that data is paginated, it requires multiple requests to count them all. Id rather find a way to get the count using only a single request.
Im getting my information from https://api.stackexchange.com/docs maby im missing something?
From the Stack Exchange sites page: 74%. This generally includes questions that have at least one upvoted answer and/or an accepted answer.
Pathways to a Just Digital Future. Since 2008, Stack Overflow has over 18 million questions, with over 11 million users and 51 million unique visitors per month.
Answering Questions. Go to https://stackoverflow.com/questions. You can use any web browser, like Chrome or Safari, to visit this site and answer questions. You can sort the questions by newest, active, bountied, unanswered, and more.
Although most questions on StackOverflow are answered in less than an hour, we observe that about 30% of the questions which are not answered within an hour have a response time of more than a day (see Figure 1).
There is an easier way to grab the number of questions or answers posted by a user.
You can use the filter=total
query parameter, as explained in the documentation
The forms presented on the pages below do not indicate it but you can use the parameter with both questions and answers. See the links for examples of querying for the number of answers and questions for my account on stackoverflow:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With