Integrate powerful link shortening, analytics, and QR code generation directly into your application with our robust REST API.
The LoomShort API allows you to programmatically shorten URLs, creating custom branded links on the fly. Detailed analytics and bot protection are applied automatically to every link generated via the API.
Note: The API is currently in Public Preview. Some features like advanced analytics retrieval are being rolled out gradually.
LoomShort uses API keys for authentication. You can pass your API key in the request header.
Authorization: Bearer <YOUR_API_KEY>Create a new shortened link. If authenticated, the link will be associated with your account and permanent.
| Parameter | Type | Description |
|---|---|---|
| destination | string | The destination URL you want to shorten. |
| fingerprint | string | A unique client fingerprint (optional for auth users). |
curl -X POST https://loomshort.com/api/public/shorten \
-H "Content-Type: application/json" \
-d '{
"destination": "https://example.com/very/long/url",
"fingerprint": "client-123-unique-id"
}'{
"id": "clq...",
"slug": "xK9s2m",
"destination": "https://example.com/very/long/url",
"expiresAt": null,
"upgrade": false
}