Free & Anonymous URL Shortener
No Ads. No Tracking.
Recent URLs
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 abusehttps://devy.in/api/url-shortner/v1/shortenGET▾
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
| Status | Description | Response | Remarks |
|---|---|---|---|
| 200 | OK | | A JSON is received with below fields:
|
| 429 | Too many requests | |
|
| 413 | Payload too large | |
|
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
| Status | Description | Response | Remarks |
|---|---|---|---|
| 200 | OK | | A JSON Array is received with below fields:
|
| 429 | Too many requests | |
|
| 413 | Payload too large | |
|
This little tool started as a selfish gift to my own publishing workflow: I needed sharable links for articles and could not find a free option that felt both reliable and simple. The domain is short, so I opened the doors. If you want the longer engineering story (Next.js, Firebase, APIs, and how the rate limit thinks), it is all in the post linked below. No struggle required.
Read: How I built this URL shortener with Next.js and Firebase
Why use a URL shortner?▾
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?▾
Why are you free?▾
What are any limitations of this url shortning service?▾
- The links with the below conditions will get deleted after 90 days:
- Links with <100 views in past 90 days
- There are some rate limits on how frequently you can call the APIs. This is intentional to prevent abuse.
- Links pointing to pornography or illegal content in any country, will be automatically deleted.