My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
APIDocumentation  
Updated Jul 3, 2008 by adam%sti...@gtempaccount.com

API Documentation for ur.ly Web Application

Create a New ur.ly

All requests must be made using HTTP GET. The href parameter should be URL-encoded.

HTTP Status Codes

  • 200 - We created (or found, if it already exists) an ur.ly and will display in requested format
  • 302 - Used when redirecting to target HREF
  • 400 - There was a problem with the href parameter.

Lookup an ur.ly

All requests must be made using HTTP GET. The code parameter is 1-6 character alpha-numeric.

HTTP Status Codes

  • 200 - We found the ur.ly and will display in requested format
  • 302 - Used when redirecting to target HREF
  • 404 - We couldn't find the requested ur.ly

ur.ly Formats

ur.ly records can be displayed in HTML, JSON and XML formats.

Examples in JSON and XML formats:

  • JSON:
  • {"code":"1","href":http://www.google.com/"}

  • XML:
  • <urly code="1" href="http://www.google.com/"/>
Comment by Petr.Buben, May 24, 2009

hi, have you considered providing the option to have custom codes, and editable? thanks. Petr Buben

Comment by stephend...@gmail.com, Jul 27, 2009

There ought to be a way to report spam / fraud links, both on the main page and via API. Tough to prevent abuse, but possible. Email verification, require multiple complaints, etc.

POr is such a fraudulent link, signing you up for ringtone services.

Comment by enigmati...@gmail.com, Aug 4, 2009

With the prevalence of people hacking other people's AIM accounts and using them to send phishing or fraudulent links lately, I agree with the poster above. There should be a way to preview the link that you're about to visit, like bit.ly does. Otherwise, it's too easy to get scammed by a link that a friend supposedly sends you via IM (which almost happened to me this morning, and they used ur.ly to do it).

Comment by toastedb...@gmail.com, Sep 1, 2009

You can preview the link using the 'lookup an ur.ly' above. Adding .xml to the link will provide the actual url. Implement that into a program (or a firefox extension), and you're good to go.

Comment by shimanob...@gmail.com, Nov 15, 2009

ur.ly


Sign in to add a comment
Powered by Google Project Hosting