Our public API allows you to programmatically shorten URLs. No API key or authentication required.
Send a single object or array of objects to shorten URLs.
{
"domain": "clc.is",
"target_url": "https://example.com",
"slug": "custom", // optional
"expired_url": "https://expired.example.com", // optional
"expired_hours": 48 // optional (0 = no expiration)
}
{
"input": { ... },
"slug": "custom",
"url": "https://clc.is/custom",
"is_generated": false
}
Returns an array of available domains for shortening links.
["clc.is", "alt1.com", "alt2.com"]
409 Conflict
— if the slug is already taken400 Bad Request
— missing or invalid parametersFor submitting up to 5000 URLs at once, use the Bulk page or send an array of entries to /api/links
.