Integrate lnkshort into your applications with our powerful REST API. Create, manage, and track shortened links programmatically.
99.9% uptime with response times under 100ms globally.
API key authentication with rate limiting and SSL encryption.
Comprehensive documentation with examples and SDKs.
Sign up for a Pro account and generate your API key from the dashboard settings.
Base URL: https://api.lnkshort.eu
Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEYcurl -X POST https://api.lnkshort.eu/v1/shorten \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/very-long-url", "custom_alias": "my-link", "password": "optional-password", "expires_at": "2024-12-31T23:59:59Z" }'{ "success": true, "data": { "id": "abc123", "short_url": "https://sht.ly/abc123", "original_url": "https://example.com/very-long-url", "clicks": 0, "created_at": "2024-01-15T10:30:00Z", "expires_at": "2024-12-31T23:59:59Z" }
}/v1/shortenCreate a new shortened URL
/v1/linksGet all your shortened links
/v1/links/{id}Get details of a specific link
/v1/links/{id}/analyticsGet analytics for a specific link
/v1/links/{id}Update a shortened link
/v1/links/{id}Delete a shortened link
curl -X GET https://api.lnkshort.eu/v1/links/abc123/analytics \ -H "Authorization: Bearer YOUR_API_KEY"{ "success": true, "data": { "total_clicks": 1247, "unique_clicks": 892, "countries": { "US": 456, "GB": 234, "DE": 178 }, "referrers": { "direct": 567, "google.com": 234, "twitter.com": 123 }, "devices": { "desktop": 678, "mobile": 456, "tablet": 113 } }
}