The BorURL service is complete with an XML-based API for developers.
You need to send parameters to http://borurl.com/api either via GET or POST. These parameters are:
action: "shorturl" (get short URL for a link), "expand" (get long URL of a shorturl) or "stats" (get stats about your links)url to shortenkeyword for custom short URLsformat: either "json", "xml" or "simple"shorturl to expand (can be either 'abc' or 'http://domain.com/abc')format: either "json", "xml" or "simple"filter: either "top", "bottom" , "rand" or "last"limit (maximum number of links to return)format: either "json" or "xml"<result>
<url>
<id>62019439011</id>
<keyword>shorter</keyword>
<url>http://somereallylongurlyouneedtoshrink.com/</url>
<date>2009-06-23 18:08:07</date>
<ip>127.0.0.1</ip>
</url>
<status>success</status>
<message>http://somereallylongurlyouneedtoshrink.com/ (ID: shorter) added to database</message>
<shorturl>http://borurl.com/shorter</shorturl>
</result>