FixBro ShortlinkShorten a Link

FixBro Shortlink API

Integrate our URL shortening service into your own application.

Back to Home
Simple API (GET Request)
The easiest way to shorten a URL without any complex setup.

HTTP Request

GET
/api/shorten?url=<YOUR_URL>

Query Parameters

url (string, required): The URL you want to shorten. Make sure it's URL-encoded.

Example Usage (JavaScript)

fetch('https://s.fixbro.in/api/shorten?url=https://your-long-url.com')
  .then(res => res.json())
  .then(data => console.log(data.shortUrl));
Advanced API (POST Request)
For more control, including setting custom aliases for your links.

HTTP Request

POST
/api/shorten

Request Body (JSON)

originalUrl (string, required): The URL you want to shorten.

customAlias (string, optional): A custom alias for your short link.

Example Usage (JavaScript)

fetch('https://s.fixbro.in/api/shorten', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    originalUrl: 'https://example.com/my-super-long-url-to-shorten',
    customAlias: 'my-cool-link' // optional
  }),
})
.then(res => res.json())
.then(data => console.log(data));

Example Success Response

{
  "shortUrl": "https://s.fixbro.in/my-cool-link",
  "originalUrl": "https://example.com/my-super-long-url-to-shorten",
  "shortCode": "my-cool-link"
}