|
The LO.LY API allows developers to interact with the LO.LY URL shortening service. The current API version is 1.0
All requests use the REST API method to the API subdomain:
http://api.lo.ly
All requests require authentication provided as query arguments:
login=twitterScreenName&apiKey=LOLYapiKey
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.
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.
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
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