Salient Solutions

wrasslin ones and nones for fun and profit - Sky Sanders' Blog
Get your own ranked flair here
posts - 92, comments - 103, trackbacks - 0

StackOverflow Ranking - feeding your ego

I see a few questions on meta.stackoverflow.com regarding user ranking. There are several existing lists but they are focused primarily on users with higher scores.

So, I wrote a small applet that, each night via a trickle pull, indexes all users for the trilogy and meta down to the 100 rep mark, indexes them in order of appearance.

The 100 rep cutoff seems reasonable. On StackOverflow, the vast majority of users are < 100 and pulling that data seems over the top frivolous.

You may access this data in several ways

INTERACTIVE:
http://skysanders.net/tools/sorep/default.aspx

AUTOGET:
http://skysanders.net/tools/sorep/default.aspx?site=stackoverflow.com&userId=1

JSON:
http://skysanders.net/tools/sorep/SEStats.ashx?site=stackoverflow.com&userId=1

Response:

{
    "userId": 1,
    "userName": "Jeff Atwood",
    "score": 54917,
    "rank": 1,
    "bronze": 181,
    "silver": 106,
    "gold": 8,
    "siteId": 10,
    "site": "meta.stackoverflow.com",
    "totalUsers": 16275
}


JSONP:
http://skysanders.net/tools/sorep/SEStats.ashx?site=stackoverflow.com&userId=1&callback=foo

Response:

foo({
    "userId": 1,
    "userName": "Jeff Atwood",
    "score": 54917,
    "rank": 1,
    "bronze": 181,
    "silver": 106,
    "gold": 8,
    "siteId": 10,
    "site": "meta.stackoverflow.com",
    "totalUsers": 16275
});


userId is your numeric userId

Current values for site:

  • 'meta.stackoverflow.com'
  • 'stackoverflow.com'
  • 'serverfault.com'
  • 'superuser.com'


callback is standard jsonp argument.

Faulty request will generate a 400 Bad Request.

User not found or indexed will generate a 404 Not Found.

Stay tuned for the flair extension.

Print | posted on Wednesday, March 24, 2010 3:24 PM |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 2 and 1 and type the answer here:

Powered by: