Easylink
Enter your original URL
Extra options
Customize your link
Ready
Your short URL
Statistics page
Thanks for using Easylink!Generate another link

Simple tool for creating short links

To generate just insert your long link into the field above, then press "enter" or the button on the right. In the area below appears a ready-made link and a QR-code for it. As you can see, it's very simple.

Telegram (bot): @easylink_bot

API

Easylink API is very simple to use. Just make POST or GET request to https://el1nk.com/api with parameters "url" and "password". Be careful, you cannot change domain with API.
The answer is JSON string contains 7 values:
  1. error: "false" if everything is OK.
  2. original: your original URL.
  3. short: shorted URL.
  4. qr: QR code address.
  5. password: entered password.
  6. statistics: link to statistics.
  7. private: "true" if password was set.
An example of implementation in PHP:
<?php

/* Using file_get_contents(): */

file_get_contents( 'https://el1nk.com/api?url=example.com' );

/* Using cURL: */

$query = http_build_query( [
    'url' => "example.com",
    'password' => '1234',
] );

$curl = curl_init();

$url = "https://el1nk.com/api";
curl_setopt( $curl, CURLOPT_URL, $url );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_POST, 1 );
curl_setopt( $curl, CURLOPT_POSTFIELDS, $query );

$result = curl_exec($curl);
curl_close($curl);
Answer:
{"error":false,"original":"example.com","short":"https:\/\/el1nk.com\/B","qr":"https:\/\/el1nk.com\/qr\/show\/55268.png","password":"","statistics":"https:\/\/el1nk.com\/stat\/58","private":false}
If there's an error you'll see something like this:
{"error":{"cause":"empty string"}}