shlink URL Shortener



Not implemented yet.


Request parameters

  • url: (required) To be truncated URL starting with http://, https:// or ftp://
  • format: (optional)
    • plain (default) Indicates that the output should be as plain text. It will only output the URL or an error text.
    • json (recommended) Indicates output as JSON (JavaScript Object Notation) is to take place. There are status(true), longurl, shortid, shorturl or in case of error status(false), longurl und text
  • callback: (optional)

Example PHP

$shortenedurl = file_get_contents('');

Example Javascript

      $.getJSON('', {
    url: '',
    format: 'json'
}, function (res) {
    if (res.status === true) {