href.be API

send your request to http://href.be/api?url=<URL>, you will get your short URL in text/plain format.

you should check the HTTP response code for errors:

see for example http://href.be/api?url=http://href.be/.

if you like to gather statistics of the shortened URL, you can query the API using the hash specified in the X-Hash header returned by the API. you can use this hash to get the number of clickthroughs via