Introduction

smll.nl has an API to shorten URLs for your own website, projects, or even mobile applications. You can choose the type of API you want to use (plain-text, XML or JSON), and the system will respond accordingly. Below you will find a description of each API, and how to use it.

If you find any errors in one of the APIs, or if you have an idea for another type of API, contact me at Twitter (@thyone).

plain-text API

The plain-text API will return the sm(a)llified URL as plain-text (doh).
For example, the following request: http://api.smll.nl/?url=http://www.google.com/analytics will return: http://smll.nl/7q

XML API

The XML API will return the sm(a)llified URL as XML, without any additional information about it. This API resides at http://api.smll.nl/xml/

. Example request: http://api.smll.nl/xml/?url=http://www.google.com/analytics This returns: <?xml version="1.0" encoding="UTF-8"?>
<url>http://smll.nl/7q</url>

JSON API

Last but not least, we also provide a JSON API for your convenience when programming applications in Java. This could be helpful for (for example) Android programmers. This request: http://api.smll.nl/json/?url=http://www.google.com/analytics returns: { "url":"http://smll.nl/7q" }