whit.me

multiple URL shortening

API services documentation

whit.me provides a set of API services for the integration of URL shortening in your browser, in external Websites, and into any application. Currently, these API services are bookmarklets, HTML embedding, and JSON Web services.

Table of Contents

  1. Browser bookmarklets
  2. HTML embedding
  3. JSON Web services

Browser bookmarklets

The simplest way of using whit.me outside the Website itself is by using our bookmarklets (i.e., bookmarks with "smart functiontality"). To begin using them, you just need to bookmark them in your browser - preferably by dragging them to you bookmarks bar. Head up to Wikipedia for more info about bookmarklets. We currently support the following bookmarklets:

HTML embedding

If you use whit.me services in HTML Webpages, you can benefit of automatic URL expansion to present users with the corresponding set of hyperlinks. This can be done just by adding the following snippet of HTML to the <head> element of your Webpage: <script src="http://www.whit.me/scripts/whitme-connector.js" type="text/javascript"></script> Below you can see an example of the resulting script integration:

external link showing whit.me iconexternal link showing menu with whit.me URL expansion

A working example is also available.

JSON Web services

We provide a simple HTTP-based API that allows developers to interact with whit.me's URL shortening service. All API requests must be based on the following URL pattern: http://www.whit.me/api/operation?parameters

All operations support the Accept: application/json HTTP header to ensure that all responses are encapsulated into JSON objects.

This API also supports the JSONP pattern, by appending a callback=? parameter form to whit.me's API URLs, for seamless integration with cross-domain Javascript client-side technologies. In this parameter, replace ? with an appropriate Javascript function name.

Currently, we support the following services:

URL shortening

URL expansion