goo.gl API

Google URL Shortener API Service

On Jan, 10th 2011, Google finally announced their launch of the Google URL Shortener API.  (The service begin back in September 2010, but had no API.)


The Official Announcement from Google:

http://googlecode.blogspot.com/2011/01/google-url-shortener-gets-api.html


The Google URL Shortener which is located at
http://goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends (or FOAF).

You can use the Google URL Shortener API to:  store, share, and manage goo.gl short URLs from anywhere on the Internet.


How to use the Google Shortener API


Getting Started Guide

Authentication

Authentication and Authorization for Google APIs - definitive guide

Provide an auth token of type...
  • OAuth Scope URL = https://www.googleapis.com/auth/urlshortener
  • ClientLogin Service = service=urlshortener


Code Reference
Detailed technical reference of the collections, resources, methods, and authentication requirements for the API.

url.insertPOST /url?key={key}
url.getGET  /url?key={key}&shortUrl={shortUrl}&projection={projection?}
url.listGET  /url/history?key={key}&start-token={startToken?}&projection={projection?}