Shortening a URL with the dcom.me API is very simple, all you need to do is send a get request to the API passing through the URL you wish to shorten.

To shorten http://www.neowin.net/news/windows-7-piracy-check-update-goes-live request:

http://dcom.me/api.php?u=http://www.neowin.net/news/windows-7-piracy-check-update-goes-live

The API will return the shortened URL http://dcom.me/jZ2qi


To retrieve the original URL from the API, all you need to do is send a get request to the API passing through the shortened URL (or the last 5 characters).

To expand http://dcom.me/jZ2qi request:

http://dcom.me/api.php?r=http://dcom.me/jZ2qi
or http://dcom.me/api.php?r=jZ2qi

The API will return the original URL http://www.neowin.net/news/windows-7-piracy-check-update-goes-live

Driphter.com | Shorten | Lookup | API | Terms of Service

Powered by cr0bar Solutions