CUQ.IN - Free URL Shortener for Your Project
Get started with our FREE API and simplify your link management for your projects, apps, or websites. No cost, no hassle.
API Key Request
CUQ.IN
CUQ.IN is a URL shortening service that simplifies long and complex URLs into easy-to-share, manageable links. Whether you're a developer integrating link shortening capabilities into your app or an individual looking to streamline your link management, CUQ.IN offers a powerful and straightforward solution.
API
CUQ.IN provides an easy-to-use API for developers. You can generate, manage, and retrieve shortened URLs programmatically through the API. Please note, CUQ.IN services are only available via the API and cannot be used manually or through non-API methods.
ALWAYS FREE
The URL shortening service provided by CUQ.IN is and will always remain completely free. There are no hidden fees or limits, making it ideal for both developers and individuals who need a reliable URL shortening solution without cost concerns.
API Information
API Actions
Action | Description | Required Parameters |
---|---|---|
add |
Create a shortened link by sending a long URL. Returns the status, shortCode, and shortened URL. |
apiKey
url
|
update |
Update an existing shortened link with a new long URL. Returns the status. |
apiKey
shortCode
url
|
getAll |
Retrieve all shortened URLs associated with your API key. Returns an array of results. |
apiKey
|
delete |
Delete a shortened URL by its shortCode. Returns the status. |
apiKey
shortCode
|
search |
Search URLs by a keyword or long URL. Returns an array of results matching the query. |
apiKey
query
|
Request Parameters
Parameter | Description | Type | Required |
---|---|---|---|
apiKey |
The API key of the user, required for all actions. | string | Yes |
action |
The action to be performed: add, update, delete, search, or getAll. | string | Yes |
url |
The long URL to be shortened (required for createShortUrl and update actions). | string | Conditional |
shortCode |
The short URL code for delete, update, or search actions. | string | Conditional |
query |
The search keyword or URL for the search action. | string | Conditional |
Response Structure
Field | Description | Type |
---|---|---|
status |
Status of the request (true for success, false for error). | boolean |
message |
Details about the result of the request or any error message. | string |
code |
HTTP status code (e.g., 200 for success, 400 for error). | integer |
shortCode |
The generated short code for the shortened URL (returned for createShortUrl action). | string |
shortUrl |
The full shortened URL (returned for createShortUrl action). | string |
results |
An array of shortened URLs, returned for getAllShortUrls or searchShortUrl actions. | array |
Example API Requests in Different Languages
import requests
url = "https://cuq.in/api"
payload = {
"apiKey": "c40b0c360f3d4959b53b103b25759542",
"action": "add",
"url": "https://www.your-long-url-to-short.com/"
}
response = requests.post(url, json=payload)
print(response.json())
const fetch = require('node-fetch');
const url = 'https://cuq.in/api';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
apiKey: 'c40b0c360f3d4959b53b103b25759542',
action: 'add',
url: 'https://www.your-long-url-to-short.com/'
})
};
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X POST https://cuq.in/api \
-H "Content-Type: application/json" \
-d '{
"apiKey": "c40b0c360f3d4959b53b103b25759542",
"action": "add",
"url": "https://www.your-long-url-to-short.com/"
}'
<?php
$url = 'https://cuq.in/api';
$apiKey = 'c40b0c360f3d4959b53b103b25759542';
$data = [
'apiKey' => $apiKey,
'action' => 'add',
'url' => 'https://www.your-long-url-to-short.com/'
];
$options = [
'http' => [
'header' => "Content-Type: application/json\r\n",
'method' => 'POST',
'content' => json_encode($data),
],
];
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
var_dump(json_decode($result, true));
?>
Frequently Asked Questions
Cuq.in is a free URL shortening service that helps you create short, manageable links from long URLs. It is designed for easy sharing and management of links, and also provides a free API for developers to use in their projects.
To get an API key, follow these simple steps:
- Enter your email address into the input field in the form.
- You will receive a confirmation code (check your spam folder if necessary).
- Once you enter the confirmation code, your API key will be sent to your email address.
Using Cuq.in is simple. Just paste your long URL into the input field and click "Shorten." For developers, you can generate an API key by clicking the "Get API Key" button, which allows you to programmatically shorten links through the API.
Yes, Cuq.in is completely free to use. There are no hidden costs or fees, and the service will remain free in the future.
Yes, each API key can create up to 10,000 shortened links per day. This generous limit ensures smooth usage for both individual users and developers.
There is no set limit on how long a shortened link is stored. However, if a link is not used within a 2-year period, it may be removed to keep the system efficient and clean.
No, Cuq.in does not store any analysis or tracking data. All the information you submit is kept confidential and private unless there is a legal complaint, in which case the data may be subject to review. Otherwise, your data remains secure and will not be accessed or shared.
Cuq.in does not allow links to be shortened that lead to fraudulent activities, illegal content, or any content violating the laws. Such links are monitored and blocked accordingly to ensure a safe and legitimate service.