The url shortener goes API

gl·am exposes some of its functionality via an Application Programming Interface (API).

RESTful Resources
The gl.am API attempts to conform to the design principles of Representational State Transfer (REST).

gl.am’s API methods for the url shortener presently supports the following data formats: XML (xml), Json (json) and Plain text (plain)

Examples:

GET Request
http://gl.am/API::shorten?type=plain&url=http://www.google.com/search?q=jack+bauer
Urlencode the url-parameter for accurate results

POST Request
Url: http://gl.am/API::shorten
PostBody: type=plain&url=http://www.google.com/search?q=jack+bauer

Result: http://gl.am/xN2bp5

Comments (2)

  1. loans wrote::

    I want to thank the blogger very much not only for this post but also for his all previous efforts. I found blog.gl.am to be very interesting. I will be coming back to blog.gl.am for more information.

    Wednesday, March 10, 2010 at 3:16 am #
  2. Iolanta wrote::

    You have a great site here!Now i am your reader.

    Friday, March 12, 2010 at 9:20 am #