Skip to main content
5 of 5
Adjusted title to better match the use case.; edited body
Steffen Opel
  • 1.4k
  • 8
  • 14

How to calculate a list of users ranked by question view count totals.

The API provides methods to sort and filter individual questions by view count.

In order to calculate the question view count totals per User, some grouping and set operations are required.

e.g.

total_views display_name [user_id]
------------------------------------------
1000 John Doe [12]
900 Joe Snow [431]
. . . etc etc

Post your solution to this use case in the language/library syntax of your choice.

Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60