Methods


Shorten

Shorten a long url and returns parameter in the format you want
  • hash
  • string
  • empty
Use to customize the hash.
  • url
  • string
  • empty
  • required
The URL which will be use to shorten.
Important: Must be encoded. (Tool & Documentation in PHP)
  • extention
  • string
  • json
  • xml, json, plain
Plain returs only the url.

Example in PHP

$url = 'http://zipurl.in/api?method=shorten&url=http%3A%2F%2Fgoogle.de&hash=mygoogle&extention=json'
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($ch);
curl_close($ch);
$return = '{"bool":true,"hash":"mygoogle"}'