Test mode: ads are placeholders and payouts are simulated. No real money moves.

API

Shorten links from your own scripts, apps or plugins. Get your key from the dashboard. The request and response formats are the same ones most shortener plugins already use, so tools built for other paid shorteners usually work by changing only the domain and key.

Shorten a link

GET https://shrinkbux.com/api?api=YOUR_KEY&url=https://example.com/page

Response:

{"status":"success","shortenedUrl":"https://shrinkbux.com/AbC123"}

On failure:

{"status":"error","message":"invalid API key"}

Options

Good to know

Examples

# curl
curl "https://shrinkbux.com/api?api=YOUR_KEY&url=https://example.com/page"

# PHP
$r = json_decode(file_get_contents("https://shrinkbux.com/api?api=YOUR_KEY&url=" . urlencode($long)));
echo $r->shortenedUrl;

# Python
import requests
r = requests.get("https://shrinkbux.com/api", params={"api": "YOUR_KEY", "url": long_url}).json()
print(r["shortenedUrl"])