0bit.cc

Our API

General Info

We offer an API that allows applications to automatically create short URLs. This is done by simply reading the result returned from:
http://0bit.cc/api/?key=YOUR-API-KEY&url_type=snr&url=SOURCE-URL
YOUR-API-KEY - your personal API Key, taken from profile page.
SOURCE-URL - URL that must be shortened.
url_type - snr (with the No Referrer option) s (without the No Referrer option)
This is URL-encoded string (most programming languages have appropriate function for that, ex. PHP, Perl, Java, JavaScript, etc.)

Result is a JSON-encoded string.

Successful Shortening

If everything is OK, our API returns JSON-encoded string like that:
{
  "status":"OK",
  "url":"http://0bit.cc/s6Bf"
}

Failed Call

In case of any problems, the result will be like that:
{
  "status":"ERROR",
  "message":"Invalid API Key!"
}

Redirection API

http://0bit.cc/api/?key=YOUR-API-KEY&url_type=snr&redirect=yes&url=SOURCE-URL
redirect=yes - Pass this parameter and this will redirect automatically to URL..

Enjoy using our API. :-)