Tools     API     Help     About     Sign In with Twitter
(LO.LY is now a private service)

LO.LY API

The LO.LY API allows developers to interact with the LO.LY URL shortening service. The current API version is 1.0

Request URL

All requests use the REST API method to the API subdomain:

http://api.lo.ly

Authentication

All requests require authentication provided as query arguments:

login=twitterScreenName&apiKey=LOLYapiKey

Rate Limiting

LO.LY currently limits API users to no more than five concurrent connections from a single IP address. If you intend to be an extremely high volume user of the API, please contact michael@inblosam.com to make arrangements.

Required Parameters for all calls

Version, in the form of:

version=1.0

Login, in the form of:

login=twitterScreenName

API Key, in the form of:

apiKey=LOLYapiKeyProvidedToAllSignedInUsers

For shorten and expand calls, be sure to include the respective parameters specific to each service.



REST API

/shorten

Parameter: longUrl

A long URL to be shortened. Example: http://thisisalongdomain.com/somedir/somepage.html

Example call:

http://api.lo.ly/shorten?version=1.0&login=twitterScreenName&apiKey=LOLYapiKey&longUrl=http://somelongurl.com



/expand

Parameter: shortUrl or hash

An existing LO.LY short URL or hash to be expanded. Example: shortURL=http://lo.ly/loly or hash=loly

Example call:

http://api.lo.ly/expand?version=1.0&login=twitterScreenName&apiKey=LOLYapiKey&shortUrl=http://lo.ly/loly