Integrate ShortURL into your applications with our REST API.
All API requests require authentication using an API key. Include your API key in the request header:
X-API-Key: your_api_key_here
To get your API key:
Note: Keep your API key secret. Do not share it in public repositories or client-side code.
API requests are rate-limited based on your plan:
| Plan | Requests/Hour |
|---|---|
| Free | 100 |
| Starter | 500 |
| Professional | 2,000 |
| Business | 10,000 |
| Enterprise | Unlimited |
https://quklnk.com/api/v1
/links
Create a new short URL.
{
"url": "https://example.com/very-long-url",
"title": "My Link", // optional
"custom_alias": "my-link", // optional
"password": "secret123", // optional
"expires_at": "2024-12-31" // optional
}
{
"data": {
"id": 123,
"short_code": "abc123",
"short_url": "https://quklnk.com/abc123",
"original_url": "https://example.com/very-long-url"
}
}
/links
List all your short URLs.
| page | Page number (default: 1) |
| limit | Items per page (default: 20, max: 100) |
| search | Search by URL or title |
/links/{id}
Get details of a specific short URL.
/links/{id}
Update an existing short URL.
/links/{id}
Delete a short URL.
/analytics/{link_id}
Get analytics for a specific link.
| days | Number of days (default: 30, max: 365) |
/analytics
Get account-wide analytics summary.
/account
Get your account information, plan details, and usage statistics.
The API returns standard HTTP status codes:
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid API key |
| 403 | Forbidden - Plan limit exceeded |
| 404 | Not Found |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error |
We're online! Reply within minutes We're currently offline
Hi! How can we help you today?
We'll get back to you at your email as soon as possible.
Connecting...