{API}

Create

Parameters

Name Type Description
api key string your api key
url string Base64 encoded version of your long url. base64_encode() in PHP.

Return values

Name Type Description
url_id int The unique id value of making URL
short_url string Short URL including the domain name.
part_short_url string Short URL without the domain name.
original_url string Original long url
preview_img string preview image
qr_img string qr-code
date_create string Date created. In the format dd.mm.YYYY hh:mm:ss

Example request

jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        var url_long = '<?php echo base64_encode("http://shortila.foxsash.com");?>';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&url='+url_long,function(result,status)
                {
                    alert(result.data.url_id+'||'+
                            result.data.short_url+'||'+
                            result.data.part_short_url+'||'+
                            result.data.original_url+'||'+
                            result.data.preview_img+'||'+
                            result.data.qr_img+'||'+
                            result.data.date_create);		
                },
                "json"
        );
    });
});    
    

Example response

{
   "status":200,
   "data":{
      "url_id":"1",
      "short_url":"http://shortila.foxsash.com/P87Ayv",
      "part_short_url":"P87Ayv",
      "original_url":"http://shortila.foxsash.com",
      "preview_img":"http://shortila.foxsash.com/images/P87Ayv.png",
      "qr_img":"http://shortila.foxsash.com/qrcodes/P87Ayv.png",
      "date_create":"02.05.2024 05:37:05"
   }
}
    
Disable
Name Type Description
api key string your api key
disable_url string Base64 encoded version of your short url. base64_encode() in PHP.

Return values

Name Type Description
url_id int The unique id value of URL
short_url string Short URL including the domain name.
status string Short url status.
date_create string Date created. In the format dd.mm.YYYY hh:mm:ss

Example request

jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        var url_short = '<?php echo base64_encode("http://shortila.foxsash.com/P87Ayv");?>';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&disable_url='+url_short,function(result,status)
                {
                    alert(result.data.url_id+'||'+
                            result.data.status+'||'+
                            result.data.short_url+'||'+
                            result.data.date_create);		
                },
                "json"
        );
    });
});    
    

Example response

{
   "status":200,
   "data":{
      "url_id":"1",
      "status":"disabled",
      "short_url":"http://shortila.foxsash.com/P87Ayv",
      "date_create":"02.05.2024 05:37:05"
   }
}
    
Activate
Name Type Description
api key string your api key
enable_url string Base64 encoded version of your short url. base64_encode() in PHP.

Return values

Name Type Description
url_id int The unique id value of URL
short_url string Short URL including the domain name.
status string Short url status.
date_create string Date created. In the format dd.mm.YYYY hh:mm:ss

Example request

jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        var url_short = '<?php echo base64_encode("http://shortila.foxsash.com/P87Ayv");?>';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&enable_url='+url_short,function(result,status)
                {
                    alert(result.data.url_id+'||'+
                            result.data.status+'||'+
                            result.data.short_url+'||'+
                            result.data.date_create);		
                },
                "json"
        );
    });
});    
    

Example response

{
   "status":200,
   "data":{
      "url_id":"1",
      "status":"enable",
      "short_url":"http://shortila.foxsash.com/P87Ayv",
      "date_create":"02.05.2024 05:37:05"
   }
}
    
Info
Name Type Description
api key string your api key
enable_url string Base64 encoded version of your short url. base64_encode() in PHP.

Return values

Name Type Description
url_id int The unique id value of URL
long_url string The original decoded long url.
short_url string Short url part. (excluding domain name)
create_time string Date created. In the format dd.mm.YYYY hh:mm:ss
clicks int Total visits
preview_img string Link on the preview image
qr_img string Link to image qr-code
favicon string Link to the favicon
status string Short url status.
password bool Whether the url needs a password to access.

Example request

jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        var url_short = '<?php echo base64_encode("http://shortila.foxsash.com/P87Ayv");?>';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&info_url='+url_short,function(result,status)
                {
                    alert(result.data.url_id+"||\n"+
                        result.data.long_url+"||\n"+
                        result.data.short_url+"||\n"+
                        result.data.create_time+"||\n"+
                        result.data.clicks+"||\n"+
                        result.data.preview_img+"||\n"+
                        result.data.qr_img+"||\n"+
                        result.data.favicon+"||\n"+
                        result.data.status+"||\n"+
                        result.data.password);		
                },
                "json"
        );
    });
});    
    

Example response

{
   "status":200,
   "data":{
     "url_id":"1",
        "long_url":"http://shortila.foxsash.com",
        "short_url":"P87Ayv",
        "create_time":"02.05.2024 05:37:05",
        "clicks":"63",
        "preview_img":"http://shortila.foxsash.com/images/shortila.foxsash.com.png",
        "qr_img":"http://shortila.foxsash.com/qrcodes/P87Ayv.png",
        "favicon":"http://shortila.foxsash.com/favicons/shortila.foxsash.com.ico",
        "status":"enable",
        "password":"true"
   }
}
    
List

Parameters

Name Type Description
api key string your api key
list boolean true

Return values

Name Type Description
short_url string Short URL including the domain name.

Example request

jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&list_url=true',function(result,status)
                {
                    alert(result.data.short_url);		
                },
                "json"
        );
    });
});    
    

Example response

{
   "status":200,
   "data":{
      "short_url":{
      		"http://shortila.foxsash.com/P87Ayv",
                "http://shortila.foxsash.com/sdw12v",
                "http://shortila.foxsash.com/P415av"
      		}
   }
}
    
Statistics

Parameters

Name Type Description
api key string your api key
short_url string Base64 encoded version of your short url. base64_encode() in PHP.

Return array

Name Type Description
OS string Information about OS.
browser string Information about Brousew.
city string Information about City
country string Information about Country
countryCode string Information about Country Code
ddate string Date created. In the format dd.mm.YYYY hh:mm:ss
ip string Information about IP.
ref string Information about referal.
region string Information about region.

Example request

    jQuery.noConflict()(function($){
    $(document).ready(function (e) {
        var url = 'http://shortila.foxsash.com/api/v1/api.php';
        var url_short = '<?php echo base64_encode("http://shortila.foxsash.com/P87Ayv");?>';
        $.get
          (
             url,'api_key=e00cf25ad42683b3df678c61f42c6bda&url_stat='+url_short,function(result,status)
                {
                    console.log(result.data);		
                },
                "json"
        );
    });
    });    
    
    

Example response

    {
    "status":200,
    "data":{
      "short_url":{
            "http://shortila.foxsash.com/P87Ayv",
                "http://shortila.foxsash.com/sdw12v",
                "http://shortila.foxsash.com/P415av"
            }
    }
    }