Extending cm23.tk

The terms of use follow roughly along the lines of the Twitter API, especially the parts about commercial use and spam.

There are no rate limits at the current time.

The Basics

All API calls are done over HTTP GET, and results are returned in JSON format. The base URL of all calls is http://cm23.tk/api/.

The Commands

/api/short/{long url}

Shorten a long URL. Success example:

http://cm23.tk/api/short/http://clarkmoody.com/ --- { "short_url": "http://cm23.tk/1" }

Failure example:

http://cm23.tk/api/short/http://asd,/1.com --- { "error": "Improper URL format." }

/api/long/{short url}

Get the long version of a short URL.

http://cm23.tk/api/long/http://cm23.tk/a --- { "long_url": "http://clarkmoody.posterous.com/my-own-url-shortener-cm23tk", "is_spam": false, "is_inappropriate": false }

The short identifier may also be used, instead of the full short URL:

http://cm23.tk/api/long/6 --- { "long_url": "http://twitter.com/clarkmoody", "is_spam": false, "is_inappropriate": false }

Final Remarks

There are more functions coming soon, such as URL statistics. Until then, please Contact Me with any questions, bugs, comments, or concerns.

Also, you should follow me on Twitter here.