Social bookmarking site del.icio.us has exposed a new API providing the top tags and total number of bookmarks for any URL in its system. Yahoo's Developer Network provided a short preview earlier tonight of a soon to be released del.icio.us web badge but currently anyone can request data from the open API. It's a useful feature to provide additional context for a URL, suggest tags, or measure one aspect of a site's popularity.
- endpoint
- http://badges.del.icio.us/feeds/json/url/blogbadge
- parameter
- hash
Simply submit a request to the above API endpoint with a hex MD5 hash of the URL of interest as your hash parameter value. Del.icio.us returns results in JSON key-value pairs. Data includes the total number of del.icio.us users who have tagged the given URL and the top 11 tags (and tag count) used to describe its content.
You can check out a few examples such as the response for del.icio.us, the response for apple.com, or the response for niallkennedy.com/blog. If you need help constructing a MD5 hash you can use Paul Johnson's implementation (del.icio.us uses the same script). You may specify a callback function using the callback parameter.
The API is officially unreleased, may be shut down if not used in full Yahoo-constructed blog sidebar badge form, and may be subject to further terms of service. Hopefully the new set of del.icio.us servers can keep up with demand.
Update: Del.icio.us officially announced Tagometer badges as well as a JSON feed of URL data about 16 hours after this post was published.

9 Comments
Commentary on "del.icio.us API for URL top tags, bookmark count":
Subscribe to new comments
Kevin Burton on December 19, 2006 at 11:07 PM wrote: #
The real sad thing is that Delicious has historically blocked anyone from using their APIs unless you do some magic rain dance.
... which prevented a lot of innovation.
They blocked Technorati sporadically and they just ended giving up.
We (Tailrank) tried to use their API early on for an experiment but they quickly blocked us. We tried to inquire the terms of the API but never received an answer.
We might have been indexing too fast but we were never able to get a straight answer as to *exactly* how fast was too fast.
The only way to figure out if you can really use the Delicious API is to ask the Yahoo groundhog if he saw his shadow that morning. :)
Hopefully they'll publish terms of service or some other details to people can actually use this thing.
Kevin
Joost de Valk on December 20, 2006 at 5:34 AM wrote: #
Cool stuff!
Made a PHP implementation based on this info, quite simple actually, here it is.
Justin Thorp on December 20, 2006 at 6:11 AM wrote: #
Yeah hopefully they get this API out the door soon. I'd love to play with it.
The blogosphere/Web is so huge and there needs to be more innovation in allowing people to create communities and conversations around their content or ideas. Otherwise were just a million talking heads all talking individually.
This del.icio.us API seems like it moves towards doing that.
Joshua Schachter on December 20, 2006 at 2:14 PM wrote: #
Adi Oltean on December 21, 2006 at 3:05 AM wrote: #
Dare Obasanjo on December 21, 2006 at 8:59 AM wrote: #
Niall,
Are you going to post a correction now that has stated explicitly that the JSON endpoint is NOT an officially sanctioned API?
Niall Kennedy on December 21, 2006 at 11:09 AM wrote: #
Dare
I never claimed the del.icio.us JSON feed was an official API, just a data endpoint providing useful data in ways previously reserved for scrapers. From the JSON URL feed page:
FeedBurner is utilizing the JSON URL feed to generate images for inclusion in feed entries (FeedFlare). They are the first external use and were included in the del.icio.us announcement.
Is the del.icio.us JSON URL an application programming interface? Definitely. Turn the data into your own custom web badge, place the data in an image, or you could even turn it into a screensaver. The methods of accessing data are changing, but whether it's JSON, RSS, Atom, SOAP, or XML-RPC, etc., it's still an interface and an envelope to me.
Jonathan on January 1, 2007 at 9:58 PM wrote: #
Ather on October 24, 2008 at 11:41 AM wrote: #
I have noticed when you get tags info after providing hash as a parameter, it ask to open target file as ' in what format?'. and second thing is it possible to get this in xml format. otherwise have to write php code to get these info.
Add a comment
Some comments may be placed in a moderation queue to ensure topical relevancy. You may contact author Niall Kennedy directly if you prefer to comment privately.