lnkshort API

Integrate lnkshort into your applications with our powerful REST API. Create, manage, and track shortened links programmatically.

Fast & Reliable

99.9% uptime with response times under 100ms globally.

Secure

API key authentication with rate limiting and SSL encryption.

Well Documented

Comprehensive documentation with examples and SDKs.

Getting Started

1. Get Your API Key

Sign up for a Pro account and generate your API key from the dashboard settings.

Base URL: https://api.lnkshort.eu

2. Authentication

Include your API key in the Authorization header of every request:

Authorization: Bearer YOUR_API_KEY

Quick Example

Shorten a URL

curl -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" }'

Response

{ "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" }
}

API Endpoints

POST/v1/shorten

Create a new shortened URL

Parameters: url (required), custom_alias (optional), password (optional), expires_at (optional)
GET/v1/links

Get all your shortened links

Parameters: page (optional), limit (optional), search (optional)
GET/v1/links/{id}

Get details of a specific link

Parameters: id (required)
GET/v1/links/{id}/analytics

Get analytics for a specific link

Parameters: id (required), period (optional)
PUT/v1/links/{id}

Update a shortened link

Parameters: id (required), password (optional), expires_at (optional)
DELETE/v1/links/{id}

Delete a shortened link

Parameters: id (required)

Analytics Example

Get Link Analytics

curl -X GET https://api.lnkshort.eu/v1/links/abc123/analytics \ -H "Authorization: Bearer YOUR_API_KEY"

Analytics Response

{ "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 } }
}

Rate Limits & Support

Rate Limits

Starter Plan:1,000 requests/hour
Pro Plan:10,000 requests/hour

Need Help?

Email: api@lnkshort.eu

Documentation: Full API Docs

Status: API Status Page

';