Saturday, September 5, 2009

Yes, There Is Now An API For Thumbfight

It has been a while since you have heard from us, dear friends. Suffice to say there has been quite a lot going on. Sorry if you have been lonely.

We now have an API so you can easily integrate Thumbfight results right into your application. It is really easy, just a single JSON call.

Here is a simple example using curl with a single term:


$ curl "http://www.thumbfight.com/fight.json?challenger1=apple"


which returns the following JSON:

{"challenger1":{"score":"3 thumbs up","title":"apple"}}


Here is an example using curl with two terms:

$ curl "http://www.thumbfight.com/fight.json?challenger1=apple&challenger2=microsoft"


which returns the following JSON:

{"challenger2":{"score":"undecided","title":"microsoft"},"challenger1":{"score":"3 thumbs up","title":"apple"}}


Anyhow, enjoy, and we look forward to seeing what people come up with.