Telegram | Join our Discord! |
Verwendung der 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.
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
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:
It's even easier to shorten a link with using a hotkey:
Tool by EurenikZ
Free. No Limits. No Ads.
APIStatisticsTerms of UseLink-PreviewCopyright © 2018 EurenikZ