Safelink.Asia Tools

1. Quick Link

Everyone can use the shortest way to shorten links with Safelink.Asia. Just copy the link below to address bar into your web browser, change Your API token to Your API token, to destination link/ANY link you want, and press ENTER. Safelink.Asia will redirect you to your shortened link. Copy it wherever you want and get paid. API token&

for example if the destination link is API token&url=


2. Mass Shrinker

Mass Shrinker allows you to shorten up to 100 URLs at a time. Enter up to 100 URLs (one per line) to be shrunk and added to your account.

Note: The 'Mass Shrinker' can be disabled to your account if abused. Only create links that you will actually use.


3. Full Page Script

If you have a website with 100's or 1000's of links you want to change over to Safelink.Asia then please use the script. Pure magic - our full page script will transform all your links into the Safelink.Asia form. Copy the code and paste it to the body section of your HTML code. You can include or exclude the domains that you want to shorten. Easy peasy!

Domains selection type:

Include: Use this option if you want to short only links from the following domains list.
Exclude: Use this option if you wish to short every link on your website but exclude only the links from the following domains list.

Domains: add each domain into a new domain. Also wildcard domains are allowed

Generate: simply click on the button then copy-and-paste the generated code on to your webpage or blog and the links will be updated automatically!

Script format:

<script type="text/javascript">
    var app_url = '';
    var app_api_token = 'Your API token';
    var app_advert = 2;
    var app_exclude_domains = ["Exclude or Include domain"];
<script src='//'></script>

Example script:

<script type="text/javascript">
    var app_url = '';
    var app_api_token = '066a518cab9948e32ee73814066d4d149b2ed123';
    var app_advert = 2;
    var app_exclude_domains = [","];
<script src='//'></script>


4. Developers API

If you know what the API is, you don’t need explanations! For developers Safelink.Asia prepared API which returns responses in JSON or TEXT formats. Currently there is one method which can be used to shorten links on behalf of your account.

All you have to do is to send a GET request with Your API token and URL Like the following: API token&

You will get a JSON response like the following:



If you want a TEXT response just add &format=text at the end of your request as the below example. This will return just the short link. Note that if an error occurs, it will not output anything. API token&

Note: api & url are required fields and the other fields like alias, format & type are optional.


Using the API in PHP

To use the API in your PHP application, you need to send a GET request via file_get_contents or cURL. Please check the below sample examples using file_get_contents

Using JSON Response:

$long_url = urlencode('');
$api_token = 'Your API token';
$api_url = "{$api_token}&url={$long_url}&alias=CustomAlias";
$result = @json_decode(file_get_contents($api_url),TRUE);
if($result["status"] === 'error') {
 echo $result["message"];
} else {
 echo $result["shortenedUrl"];

Using Plain Text Response:

$long_url = urlencode('');
$api_token = 'Your API token';
$api_url = "{$api_token}&url={$long_url}&alias=CustomAlias&format=text";
$result = @file_get_contents($api_url);
if( $result ){
 echo $result;


5. Referrals / Affilation

The Safelink.Asia referral program is a great way to spread the word of this great service and to earn even more money with your short links! Refer friends and receive 25% of their earnings for life!

Affilation: Banners

In the “referrals” tab we’ve prepared promotional banners that you can use on your website, blog or forum. All you have to do is copy the banner code and paste it into your HTML code. Easy peasy! Now the money will start to flow!

Affilation: Manually

Sharing your short links is not the only way to earn money with Safelink.Asia. You can also invite new users. For each invited user you will receive 25% of their earnings. Go to the “referrals” tab, copy and share your referral link - on Facebook, Twitter, G+, www or anywhere you want!