Вам достаточно вставить свою ссылку - любой длинны url в поле ниже и нажать на Shorten
Полученную ссылку можно удобно использовать для экономии места по требованию.
Name | Description |
url | This parameter creates a short URL for your URL (site), and will return the following: id (unique id), url (site url), date (date and time) and the short (shortned url) value. |
search | This parameter requests the URL (site) information such as id (unique id), url (site url), alias (alias or custon name), hits (hits from visitors), date (date and time), short (shortned url), and the stats (url stats page) value. |
https://urlchik.com/api.php?url=http://example.com
{ "apiVersion":"1.0", "data":{ "id":"1", "url":"http://example.com", "date":"2012-11-17 06:13:00", "short":"https://urlchik.com/1" } }An example of json decoding would be the following PHP code:
<?php
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("https://urlchik.com/api.php?url=http://example.com");
print_r(json_decode($file));
?>
https://urlchik.com/api.php?search=http://example.com
{ "apiVersion":"1.0", "data":{ "id":"1", "url":"http://example.com", "alias":"pricop", "hits":"1", "date":"2012-11-17 04:10:35", "short":"https://urlchik.com/1", "stats":"http://url.example.com/stats/&url=1" } }An example of json decoding would be the following PHP code:
<?php
header('Content-Type: text/plain; charset=utf-8;');
$file = file_get_contents("https://urlchik.com/api.php?search=http://example.com");
print_r(json_decode($file));
?>
Как использовать поле "Custom URL"?
Тут вы можете написать любой набор символов (те которые на данный момент не заняты).