Free & Anonymous URL Shortner
No Ads. No Tracking.

Recent URLs

API

You can use these REST APIs to Shorten URLs programmatically for your hobby projects or demos. The API is free to use and unlimited*. You can also use the API to bulk shorten URLs.

* Unlimited but rate-limited to prevent abuse
Service endpoint: https://devy.in/api/url-shortner/v1/shorten

GET
Parameters:
url
Fully qualified URL. Maximum characters in the url is 1024
Examples
🔴🟡🟢
cURL
curl "https://devy.in/api/url-shortner/v1/shorten?url=https://www.google.com"
🔴🟡🟢
Javascript

type ShortenedURLResponse = {
  url: string;
  shortUrl: string
}
  
async function shortenURL(url: string): Promise<ShortenedURLResponse> {
    const response = await fetch("https://devy.in/api/url-shortner/v1/shorten?url="+url);
    const data = await response.json() as ShortenedURLResponse;
    ...
    console.log(data);
    return data
}

shortenURL("https://www.google.com");
                
Response
StatusStatus DescriptionResponseRemarks
200OK
{
  "url": "https://www.google.com",
  "shortUrl": "https://devy.in/o/bBMvGld"
}
A JSON is received with below fields:
url
Original fully qualified URL
shortUrl
Shortened URL
429Too many requests
429 | Too many requests
rate-limit-hit
Only 10 GET requests can be made within 10 seconds. Sign up or upgrade to premium account to increase this limit.
413Payload too large
413 | Payload too large
very-long-url
When url exceeds 1024 char limit
POST
Parameters:
urls
An array of urls to be shortened. Maximum URL length is 1024. Maximum number of URLs per request is 10
Examples
🔴🟡🟢
cURL
curl POST -H 'Content-Type: application/json' -d '{"urls":["https://www.google.com", "https://www.facebook.com", "https://www.yahoo.com"]}' "https://devy.in/api/url-shortner/v1/shorten"
🔴🟡🟢
Javascript

const headers = new Headers();
headers.append("Content-Type", "application/json");

const payload = JSON.stringify({
  "urls": [
    "https://www.google.com",
    "https://www.yahoo.com",
    "https://www.facebook.com"
  ]
});

const requestOptions = {
  method: "POST",
  headers,
  body: payload,
  redirect: "follow"
};

try {
  const response = await fetch("http://devy.in/api/url-shortner/v1/shorten", requestOptions);
  const result = await response.json();
  console.log(result)
} catch (error) {
  console.error(error);
};
                
Response
StatusStatus DescriptionResponseRemarks
200OK
[
  {
    "url": "https://www.google.com",
    "shortUrl": "https://devy.in/o/bBMvGld"
  },
  {
    "url": "https://www.yahoo.com",
    "shortUrl": "https://devy.in/o/u0dWylB"
  },
  {
    "url": "https://www.facebook.com",
    "shortUrl": "https://devy.in/o/YTqRjgY"
  }
]
A JSON Array is received with below fields:
url
Original fully qualified URL
shortUrl
Shortened URL
429Too many requests
429 | Too many requests
rate-limit-hit
Only 2 POST requests can be made within 10 seconds. Sign up or upgrade to premium account to increase this limit.
413Payload too large
413 | Payload too large
very-long-url or too-many-urls
When any one url exceeds 1024 char limit OR
When any request body contains more than 10 urls
Frequently Asked Questions (FAQs)
Why use a URL shortner?
URL shorteners take long, clunky website addresses and condense them into shorter, more manageable links. This makes sharing easier on platforms with character limits, improves readability, and can even help track how often your links are clicked. They're also useful for branding (using custom short domains) and sometimes offer a bit of extra security by hiding the full destination URL.
How is different from any other URL shortner out there?
✔️ Its simple
✔️ Its Free
✔️ No Ads
✔️ No Tracking
✔️ Free QR Code
✔️ Free & Unlimited API
Is it totally free?
Yes,💯%. Its 100% free for you, no strings attached. Although it does cost me 5 USD each month to keep up with the server bills. If you like what you see, please do consider to buy me a coffee. It would really help me keep this service free for ever.

Why are you free?
This service was originally intended to be used to generate sharable links for the articles published in this website. I could not find any free alternatives that was reliable and simple. So i implemented my own solution. Also, this domain name is short which makes it great to open it up to the world. You do not go through the struggle I went through.
What are any limitations of this url shortning service?
A few, but i have my reasons.
  1. The links with the below conditions will get deleted after 90days
    1. Links with <100 views in past 90 days
  2. There are some rate limits on how frequently you can call the APIs. This is intentional to prevent abuse.
  3. Links pointing to pornography or illegal content in any country, will be automatically deleted.
Is there a premium version of it
Not yet. But I have plans for them.
Is the url shortner service accessible by API?
Yes, obviously. Please refer to the API section for more details.

/> Devy.in© 2024Made from scratch with ❤️ & 🍵