Shortelinks Bookmarklet help you generate quick shorturls without leaving your website.
Drag the link below to the bookmarks bar to install the bookmarklet.
You can use the Shortelinks API to programmatically create shortened URLs for your websites, apps, or services.
The API is simple, fast, and does not require authentication.
https://shortelinks.com/api.php
The API supports GET and POST requests.
https://shortelinks.com/api.php?url=LONG_URL
| Parameter | Required | Description |
|---|---|---|
url | ✅ Yes | The original URL to shorten. Must start with http:// or https:// |
https://shortelinks.com/api.php?url=https://www.google.com
{
"longurl": "https://www.google.com",
"shorturl": "https://shorte.ink/aB3xYz",
"stats": "https://shortelinks.com/stats.php?id=aB3xYz"
}
https://shortelinks.com/api.php?url=LONG_URL&cust=CUSTOM_ALIAS
| Parameter | Required | Description |
|---|---|---|
url | ✅ Yes | The original URL |
cust | ❌ No | Custom alias (letters, numbers, dash - and underscore _ only) |
https://shortelinks.com/api.php?url=https://example.com&cust=my-link
{
"longurl": "https://example.com",
"shorturl": "https://shorte.ink/my-link",
"stats": "https://shortelinks.com/stats.php?id=my-link"
}
https://shortelinks.com/api.php?url=LONG_URL&pass=PASSWORD
| Parameter | Required | Description |
|---|---|---|
pass | ❌ No | Password (alphanumeric only) |
https://shortelinks.com/api.php?url=https://example.com&pass=123abc
You can also send requests using POST with a JSON body.
{
"url": "https://example.com",
"cust": "myalias",
"pass": "123abc"
}
If an error occurs, the API will return a JSON response with an error field.
{
"error": "Custom alias already exists."
}
The following aliases are reserved and cannot be used:
admin
contact
tos
about
api-about
404
Shortened URLs are generated using https://shorte.ink/
Statistics are available at shortelinks.com
The API does not require authentication
Rate limits may apply in the future
All responses are returned in JSON format
If you experience any issues or have questions about the API, please contact us through the Contact page on Shortelinks.
