Shortelinks
  • About
  • Terms
  • Contact
  • Privacy Policy
  • Bookmarklet
  • Api
  • Links

Bookmarklet

Shortelinks Bookmarklet help you generate quick shorturls without leaving your website.

Drag the link below to the bookmarks bar to install the bookmarklet.

Short this link

We use cookies to improve your experience and analyze traffic. By continuing to use this website, you agree to our Privacy Policy.
Shortelinks Logo

 

Developer API

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.


Base Endpoint

https://shortelinks.com/api.php

The API supports GET and POST requests.


Create a Short URL (Basic)

Request

https://shortelinks.com/api.php?url=LONG_URL

Parameters

ParameterRequiredDescription
url✅ YesThe original URL to shorten. Must start with http:// or https://

Example

https://shortelinks.com/api.php?url=https://www.google.com

Response

{ "longurl": "https://www.google.com", "shorturl": "https://shorte.ink/aB3xYz", "stats": "https://shortelinks.com/stats.php?id=aB3xYz" }

Create a Short URL with Custom Alias

Request

https://shortelinks.com/api.php?url=LONG_URL&cust=CUSTOM_ALIAS

Parameters

ParameterRequiredDescription
url✅ YesThe original URL
cust❌ NoCustom alias (letters, numbers, dash - and underscore _ only)

Example

https://shortelinks.com/api.php?url=https://example.com&cust=my-link

Response

{ "longurl": "https://example.com", "shorturl": "https://shorte.ink/my-link", "stats": "https://shortelinks.com/stats.php?id=my-link" }

Create a Password-Protected Short URL

Request

https://shortelinks.com/api.php?url=LONG_URL&pass=PASSWORD

Parameters

ParameterRequiredDescription
pass❌ NoPassword (alphanumeric only)

Example

https://shortelinks.com/api.php?url=https://example.com&pass=123abc

Using POST Requests

You can also send requests using POST with a JSON body.

Example (JSON)

{ "url": "https://example.com", "cust": "myalias", "pass": "123abc" }

Error Responses

If an error occurs, the API will return a JSON response with an error field.

Example

{ "error": "Custom alias already exists." }

Reserved Aliases

The following aliases are reserved and cannot be used:

admin contact tos about api-about 404

Notes

  • 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


Support

If you experience any issues or have questions about the API, please contact us through the Contact page on Shortelinks.