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 (7)

  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 #
  3. michael wrote::

    Thank you for this news, I was searching something similar the past week.

    Saturday, March 13, 2010 at 4:47 pm #
  4. michael wrote::

    Very usefull information ,thank you.

    Wednesday, March 17, 2010 at 6:03 pm #
  5. Antoni wrote::

    Great post!I like your job.thnx.

    Thursday, March 18, 2010 at 6:03 pm #
  6. Good job. I’m definitely going to bookmark you!

    Tuesday, May 4, 2010 at 5:26 pm #
  7. Alex wrote::

    Great information. . I work for academic writing service company and me and my co-workers were interested in this url shorteners. We need it for our work. I will show them your blog. Thank you for sharing this information.

    Wednesday, May 5, 2010 at 5:34 am #