Free URL Shortener API & QR Code Generator

URL Shortener API

The URL Shortener API allows you to create short links from long URLs. This API is free and open to use without an API key.

Endpoint

POST https://urllink.site/api/url.php

Request Headers

Content-Type: application/json

Request Body

{
    "url": "https://www.example.com/very/long/url"
}

Example Request

Using JavaScript (fetch):

fetch('https://urllink.site/api/url.php', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        url: 'https://www.example.com/very/long/url'
    })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response

{
    "status": "success",
    "short_url": "https://urllink.site/s/abc123",
    "original_url": "https://www.example.com/very/long/url",
    "created_at": "2025-05-16T08:25:00Z"
}

Usage Notes

QR Code Generator API

The QR Code Generator API allows you to generate QR codes for URLs, text, or other data. This API is free and open to use without an API key.

Endpoint

POST https://urllink.site/api/qrcode.php

Request Headers

Content-Type: application/json

Request Body

{
    "content": "Hello World!!!",
    "size": 200,
    
}

Example Request

Using JavaScript (fetch):

const qrcodeContainer = document.getElementById("qrcodeContainer");
qrcodeContainer.innerHTML = "Loading...";

fetch('https://urllink.site/api/qrcode.php', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        content: inputText,
        size: size
    })
})
.then(res => res.json())
.then(data => {
    qrcodeContainer.innerHTML =  `<img src="${data.image}" alt="QR Code">`;
})
.catch(err => {
    console.error(err);
    qrcodeContainer.innerHTML = "Error generating QR code.";
});


Example Response

{
  "image": "data:image/png;base64,"
}

Usage Notes

Getting Started

To use these APIs, follow these steps:

  1. No sign-up or API key is required; the APIs are free and open.
  2. Use the example requests above to test the APIs.
  3. Contact support at info@urllink.site for assistance.
Blog 1

Which Programming Language is Best for AI? Python vs C++ Explained

Python vs C++ in Artificial Intelligence: strengths, weaknesses, use cases, and the companies that use them.

Read More
Blockchain vs Traditional Database

Blockchain vs Traditional Database: What’s the Difference?

Compare blockchain and traditional databases in terms of structure, security, speed, scalability, and real-world applications.

Read More
Relational vs Non-Relational Database

Relational Database vs Non-Relational Database: Key Differences

Learn how relational and non-relational databases differ in structure, scalability, use cases, and examples like MySQL vs MongoDB.

Read More
Blog 2

Linear Regression vs Logistic Regression: Key Differences

Understand the difference between Linear and Logistic Regression. Learn where each is applied in AI, ML, and predictive modeling.

Read More
Frontend vs Backend Development

Frontend vs Backend Development: Key Differences Explained

Understand the roles of frontend and backend, technologies used, developer skills, and how they work together to build websites and apps.

Read More
Blog 2

1D vs 2D QR Code: What's the Difference? (Simple Guide)

How 1D (linear) barcodes differ from 2D codes like QR—structure, data capacity, scanners, use cases, trends, and how to choose.

Read More