Integrations & API

Integrations & API


PDF - HOW TO START CRYPTO CURRENCY TRADING


DOWNLOAD NOW


For developers, CryptoShrink.io prepared API which returns responses in JSON or TEXT formats to help you connect CryptoShrink.io to the tools you use every day.

Why Choose CryptoShrink.io API

Boost your productivity

With CryptoShrink.io, there’s no need to interrupt your workflow or add new technologies to the mix. Join tens of thousands of people who leverage the platform to integrate into the apps they already use – and seamlessly manage your campaigns, social media, and customer experience.

Shorten more links with less hassle

Securely shorten and manage millions of links at scale for maximum efficiency. Whether you want to generate links for your website, print, or different user accounts, you can do it with CryptoShrink.io.

Stay safe and secure

CryptoShrink.io’s enterprise-grade security lets you integrate with other technologies with peace of mind. We follow best practices in security solutions to safeguard all of your personal data.

Integrations & API Usage

Currently, there is one method that 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:

https://cryptoshrink.io/api?api=Your-Account-AP -oken&url=yourdestinationlink.com&alias=CustomAlias

You will get a JSON response like the following

{"status":"success","shortenedUrl":""https:\/\/cryptoshrink.io\/xxxxx""}

  1. 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.

https://cryptoshrink.io/api?api=Your-Account-AP I-Token&url=yourdestinationlink.com&alias=CustomAlias&format=text

  1. If you want to use developers API with the interstitial advertising add the below code to the end of the URL

https://cryptoshrink.io/api?api=Your-Account-AP I-Token&url=yourdestinationlink.com&type=1&alias=CustomAlias&format=text

 

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('yourdestinationlink.com');

$api_token = 'Your-Account-AP I-Token;

$api_url = "https://cryptoshrink.io/api?api={$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('yourdestinationlink.com');

$api_token = 'Your-Account-AP I-Token';

$api_url = "https://cryptoshrink.io/api?api={$api_token}&url={$long_url}&alias=CustomAlias&format=text";

$result = @file_get_contents($api_url);

if( $result ) {

 echo $result;

}

 

 

 

 

 


JOIN OUR NEWSLETTER

Become among the most informed on Digital Assets


SPONSORED ADS




EARN WITH US



JOIN OUR NEWSLETTER

Become among the most informed on
Digital Assets

Integrations & API


For developers, CryptoShrink.io prepared API which returns responses in JSON or TEXT formats to help you connect CryptoShrink.io to the tools you use every day.

Why Choose CryptoShrink.io API

Boost your productivity

With CryptoShrink.io, there’s no need to interrupt your workflow or add new technologies to the mix. Join tens of thousands of people who leverage the platform to integrate into the apps they already use – and seamlessly manage your campaigns, social media, and customer experience.

Shorten more links with less hassle

Securely shorten and manage millions of links at scale for maximum efficiency. Whether you want to generate links for your website, print, or different user accounts, you can do it with CryptoShrink.io.

Stay safe and secure

CryptoShrink.io’s enterprise-grade security lets you integrate with other technologies with peace of mind. We follow best practices in security solutions to safeguard all of your personal data.

Integrations & API Usage

Currently, there is one method that 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:

https://cryptoshrink.io/api?api=Your-Account-AP -oken&url=yourdestinationlink.com&alias=CustomAlias

You will get a JSON response like the following

{"status":"success","shortenedUrl":""https:\/\/cryptoshrink.io\/xxxxx""}

  1. 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.

https://cryptoshrink.io/api?api=Your-Account-AP I-Token&url=yourdestinationlink.com&alias=CustomAlias&format=text

  1. If you want to use developers API with the interstitial advertising add the below code to the end of the URL

https://cryptoshrink.io/api?api=Your-Account-AP I-Token&url=yourdestinationlink.com&type=1&alias=CustomAlias&format=text

 

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('yourdestinationlink.com');

$api_token = 'Your-Account-AP I-Token;

$api_url = "https://cryptoshrink.io/api?api={$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('yourdestinationlink.com');

$api_token = 'Your-Account-AP I-Token';

$api_url = "https://cryptoshrink.io/api?api={$api_token}&url={$long_url}&alias=CustomAlias&format=text";

$result = @file_get_contents($api_url);

if( $result ) {

 echo $result;

}