Search engine giant Google has announced the availability of an API for URL shortening, the goo.gl API in Google Code Labs.
The new service enables users to takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends.
Announcing the new service in a blog post, Ben D’Angelo of URL shortener team said, "With this API, developers are able to programmatically access all of the fast, sleek goo.gl goodness that we currently provide via the web interface."
He added that, developers can shorten and expand URLs using the API, as well as fetch history and analytics. One could use these features for a wide variety of applications, enabling behaviors ranging from auto-shortening within Twitter or Google Buzz clients to running regular jobs that monitor usage statistics and traffic patterns.
He further added, “We’re continuing to work on several usability improvements and to make our auto-detection of spammy or malicious content even more robust."
Application developers can check the goo.gl API documentation at Google Code Labs.