Technorati API 0.9
I'm proud to announce the first public release of the Technorati API, the application programming interface to Technorati's weblog index and search engine
Over the past few months, I've gotten a lot of requests from people who wanted to be able to use the Technorati database for a variety of purposes - everything from social network research to mini-applications that would send them a page or an IM whenever someone posted a link to their website. I created the Technorati API order to help foster these creative ideas and developers. I've also got a whole bunch of other work
going on, so I didn't want to become a bottleneck between you and the data.
One thing to note: This is beta-level software right now. Nothing is set in stone, but the code is working, and a number of people have already given some great feedback that has led to changes in the API that make it significantly more portable and forward-compatible than I originally designed it. I'm planning on adding additional attributes and functions to the API. Things may change again if someone finds an important structural issue or bug, so you may want to wait a bit (until the 1.0 version comes out) to build big enterprise applications with it. :-)
First off, regarding licensing: I'm making API calls free for personal, noncommercial use, and you'd be capped at a certain number of requests per day, currently 500 queries a day. The draft terms of service
is up on the website. This is pretty much what some other folks are doing with their API.
I would also like to get some attribution added that points a hyperlink (and maybe a small picture) back to Technorati
for people who use and republish the information, sort of like a Creative Commons non-commercial and attribution license
. Of course people who pay money will get to use the data without these restrictions. If you're interested in licensing Technorati data for commercial applications, or if you want more than 500 queries per day, please send an email to firstname.lastname@example.org.
Skip the next 3 indented paragraphs if you're not a super-geek, and read on, starting at "So here's the initial API calls that I've built"...
The API calls would be built (at first) with a REST-ful interface - a standard web-browser-like program (curl, wget, lynx, etc)would pull down the info, something like:
http://api.technorati.com/PROCEDURENAME?key=KEY&val1=VAL1&val2=VAL2 and so forth.
If enough people clamor for it, I can do a SOAP
interface, but REST-ful is easier for me to do, and I don't think people need the multiple-way communications channel that something like XML-RPC or SOAP gives them in addition to the REST interface. In other words, each API call will be stateless, AFAICT. Besides, I have never written a WSDL
So here's the initial API calls that I've built:
API call #1: Cosmos
with the variables and values returned in an HTTP POST call.
This returns the Link Cosmos
for the URL you specify.
Set the following variables to get the results you want:
: Set this to the target URL you are searching for.
: Set this to 'link' and you'll get the freshest 20 links to your target URL. Set it to 'weblog' and you'll get a reverse blogroll - the last 20 blogs who linked to the target URL.
: Set this to a number > 0 and you'll get the start+20 freshest items (links or blogs), e.g. set it to 21, and you'll get the second page of rankings - items 21-40.
: This allows you to request an output format. I anticipate we'll have multiple output formats, like XHTML, RSS (different flavors), and whatever else comes along. For now, the only valid format accepted is "xml", which adheres to this DTD. The format variable is optional - if you don't specify it, it will default to "xml".
: This allows you to specify a particular Technorati API version response. Right now, there is only one Technorati API, called version 0.9, but I anticipate newer versions, some of which may not be backwards compatible with earlier versions. By implementing this variable across all Technorati API calls, application developers can feel assured that they will always get reliable results if they specify a particular API version for requests and results. The version variable is optional - if you don't specify it, it will default to the more recent version of the API, which at this time is "0.9".
: Put your Technorati API key in here. You can get your API key by going to: http://www.technorati.com/members/apikey.html
If you're already a Technorati member, just log in and your key information (along with some accounting) is listed for you. If you don't currently have a Technorati account, setting one up is easy and free, just follow the instructions on the signup page
For example: This call
(copy the link location to see thesyntax) will get you the Link Cosmos for the www.sifry.com
website (including my blog, Sifry's Alerts
). That API key is my key, so please don't abuse it, get your own!
API call #2: Bloginfo
POST format (see the cosmos call above for explanation):
Give it any URL and it'll tell you what blog, if any, that URL came from, and all the info it has on that blog, like cosmos stats and RSS feed, etc.
For example: This call
(copy the link location to see the syntax) will tell you information about the weblog that created the following permalink: http://www.sifry.com/alerts/archives/000286.html
(BTW, the answer is Sifry's Alerts
API Call #3: Outbound Blogs
This call will list for you all of the blogs that are pointed to by a blogger (well, most of them anyway). Simply give the URL of the weblog and it will return for you a list of weblogs that are linked to by that blog. (The database is currently a bit old on this one, I'll move it into production status over the next few weeks)
For example, it is a relatively simple call to iterate and get a 2 degrees of separation function from this, which I'm working on... ;-)
Finding out more
The place to go to find out more information on the Technorati API is the api-discuss mailing list.
You can subscribe by sending a message to email@example.com
or by going to the mailing list page above. There is a web site that I created just for developers, called developers.technorati.com
but right now it is pretty sparse. I'm looking for volunteers who would like to keep that site updated. Right now I just don't have time.
If you've gotten this far and you're still interested, come join us
! Subscribe to the api-discuss list. Get an API key
, and start playing around. Leave a comment and let us all know how you're using the API. Have fun!
: The API hasn't been out for a full day yet, and already there exist plugins and drivers for Radio Userland
(Dave Winer), Python (pyTechnorati
(Mark Pilgrim), two different technorati.py's - Phil Pearson's
and Aaron Swartz'
, and at least three Movable Type plugins - Ben Hammersley's
unreleased plugin, Joi Ito's
SSI-based plugin, and Adam Kalsey's
publicly released plugin!
Amazing. So here's my next thought: Dave Winer
brought up the idea of Link Cosmos as trackback - and here's the simple equation that popped into my head:
Technorati Link Cosmos on each of your blog permalinks = instant trackback... Of course, you'd have to pull the information several times a day rather than being event based, but it wouldn't require any agreement between the linker and the linkee, and no messy XML-RPC calls involved...
I'd love to see that in an MT plugin, I'd put it up on my blog!
Posted by dsifry at May 12, 2003 02:28 AM
| View blog reactions