Telegram Join our Discord!

Verwendung der API




lish.li API


On this page you can find all the information for using the API. There is no API-key needed, anyone can use the API freely.

Shorten a link


Shortening a link with the API is very easy. All you have to do is send a valid POST-request to the following URL using the parameter origlink:

https://lish.li/API/api_post.php

Below is a PHP example using curl how to shorten a link:

$origlink = 'YOUR_LONG_LINK_HERE';

$api = 'https://lish.li/API/api_post.php';
$ch = curl_init($api);

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'origlink='.$origlink);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1); 
curl_setopt($ch, CURLOPT_NOBODY, 0);

$response = curl_exec($ch);
echo $response;

As response you will receive the shortened link. If an error has occurred, you will receive the error message as an answer. A possible positive answer would be:

https://lish.li/SVZQ

Use with ShareX


ShareX is a free open source utility for screenshots, numerous tools and much more. Among other things, it also offers the opportunity to short links. To use lish.li as the interface, follow this steps:

1. Download the config-file lish.li.sxcu.
2. execute the file by double-clicking and confirm the message from ShareX with Yes.
3. By right-clicking on the ShareX logo in the taskbar > Upload > shorten URL you can now enter the long link and shorten it.

It's even easier to shorten a link with using a hotkey:

1. Right-click on the ShareX logo in the taskbar > Hotkey settings > Add in the upper left corner of the new window.
2. In the new window, choose Upload > Shorten URL... as the task above
3. Check Override after upload task and select Copy URL to clipboard from the drop-down menu.
4. Check Overwrite default custom uploader and select lish.li in the drop-down menu.
5. Close the window.
6. Click on the gray box None and set a hotkey.


Tool by EurenikZ

Free. No Limits. No Ads.

APIStatisticsTerms of UseLink-Preview
ImprintPrivacy


Copyright © 2018 EurenikZ