First steps towards an API for TunkRank

Posted: 4 April 2009 in Uncategorized
Tags: , , , , , ,

Earlier today, I was checking out the suggested connections provided by re-searchr (by James Ostheimer, @jostheim).  A discussion arose around ranking suggested users and potentially using a measure like TunkRank as a part of that ranking.  The prospect of James having to reimplement TunkRank encouraged me to implement a part of the TunkRank API I had been planning for a while:  fetching a user’s TunkRank score.

Fortunately, Merb is a framework that makes it particularly easy to render a page in different formats without having to add a lot of new code.  The end result is a very simple first step that returns the raw TunkRank score in JSON format.  You can access it via the following RESTful url:

http://tunkrank.com/twitter_users/{username}.json

If the user has not had their TunkRank score calculated yet, the return value will be 0, otherwise it will be a number greater than or equal to one. New users are added to a queue and are ranked at various points throughout the day when usage is low. It’s on my TODO list to make this happen more frequently. I can only blame its neglect on forgetfulness.

Daniel already has a write-up on this fledgling API. I’ve been busy watching the first week of In Treatment on DVD — a show that is turning out to be very intriguing. I realize that has nothing to do with the rest of the post, but I liked the show so much I had to tell someone. :)

About these ads
Comments
  1. [...] has become more than a stand-alone site. It now offers an API so that people can use TunkRank scores in their own applications. Note that the raw TunkRank score [...]

  2. I have one silly question. What is the range of the rank, I mean. The lowest score is 0, what is the maximun, 10? Or the score keeps growing and growing?

  3. Jason Adams says:

    It keeps growing and is bounded only by the amount of influence a user has. 99% of twitterers have less than 10, if that helps. You can compare two scores to say things like user A is x times more influential than user B.

  4. [...] their (and others’) scores. The site has been evolving, and getting slicker. It even has an API for incorporating these scores into other [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s