This page uses default Cashperlink.com free API token intended for guest users. This API token is free to use and without ads. If you are already registered, you will need to login to use your own API token. API/tools on this page are recommended for testing purpose only.
For developers Cash Per Link 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:
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.
If you want to use developers API without advertising add the below code to the end of the URL
That's it :)
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
Using Plain Text Response
If you have a website with 100's or 1000's of links you want to change over to iya.io then please use the script below.
Simply copy-and-paste the code below on to your webpage or blog and the links will be updated automatically!
You can add or remove any domains for the code that you use on your website.
Or if you wish to change every link to iya.io on your website (without stating exactly which domains) please use the following code.
Short links more easily. Click and drag the following link to your links toolbar.
Once this is on your toolbar, you'll be able to make a short link at the click of a button.
Everyone can use the shortest way to shorten links with cashperlink.com.
Just copy the link below to address bar into your web browser, change last part to destination link and press ENTER. cashperlink.com will redirect you to your shortened link.