Google launched its URL shortener externally back in September, and today the search giant has launched the goo.gl API in Google Code Labs.
"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. You can shorten and expand URLs using the API, as well as fetch your history and analytics.
You could use these features for a wide variety of apps, enabling behaviors ranging from auto-shortening within Twitter or Google Buzz clients to running regular jobs that monitor your usage statistics and traffic patterns. You can check out the Google APIs console to get started," expalins Google.
Also, Google's working on several usability improvements and to make auto-detection of spammy or malicious content even more robust.