Welcome to lil.cx
lil.cx is a free web service that allows people to generate very short URLs from long, not easy to communicate URLs.
This service is free to use and will do the same kind of service than say tinyurl.com: only the generated URL will be even shorter!
An example
The URL:
http://images.google.com/images?hl=en&safe=off&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&um=1&sa=1&q=flowers&btnG=Search+images&aq=f&oq=
Was turned into:
Are you sure you still want to use long URLs?
Hide URL
Another typical use of lil.cx and other similar service like tinyurl.com is the possibility to hid affiliate links or
that people are generally less keen to click on. With lil.cx this will be completely transparent to end users!
API
lil.cx provides two powerful API for web developers.
To use the the tinyurl compatible API, send a GET request to http://lil.cx/api-create.php.
Example: http://lil.cx/api-create.php?url=http://www.google.com
To use the lil.cx complete API, send a POST request to http://lil.cx/api.php.
Example 1: create a simple URL redirection
<request>
<type>ShortenURL</type>
<url>http://www.google.com<url>
<shorturl/>
</request>
A typical server response:
<response>
<result>1</result>
<message>Redirection to http://www.google.com created.</message>
<url>http://lil.cx/Ce8jQnl0</url>
</response>
Example 2: create a URL redirection with custom code
<request>
<type>ShortenURL</type>
<url>http://www.google.com<url>
<shorturlgoog<shorturl>
</request>
A typical accepted server response:
<response>
<result>1</result>
<message>Redirection to http://www.google.com created.</message>
<url>http://lil.cx/goog</url>
</response>
A typical rejected server response (because alias is already taken):
<response>
<result>0</result>
<message>Short URL code goog is not available.</message>
</response>
Example 3: decode a URL (nb: the url tag can be the full lil.cx url or the code alias only).
<request>
<type>DecodeShortURL</type>
<url>http://lil.cx/goog</url>
</request>
A typical accepted server response:
<response>
<result>1</result>
<message>Decoded URL http://lil.cx/goog successfully.</message>
<url>http:www.google.com</url>
</response>
A typical code note found response:
<response>
<result>0</result>
<message>URL http://lil.cx/goog does not exist.</message>
</response>
Contact
For reports, questions, or anything, please contact @nullilfylil.cx