Please log in or create a free account to start shortening URLs. This helps us provide you with analytics, link management, and security features.
✨ Free accounts get 10 links per month with basic analytics
Shortening your URL...
This link is password protected. Users will need to enter the password to access it.
This link will expire on .
This link will stop working after clicks.
Shorten URLs instantly with our optimized infrastructure
Your links are protected with enterprise-grade security
Track clicks and engagement with detailed analytics
Total Links
Total Clicks
Active Links
Expired Links
Loading your links...
You haven't created any links yet.
Upload a CSV file to create multiple links at once.
Organize your links with tags for better management.
Generate API keys to integrate with your applications.
Total Clicks
Unique Visitors
Click-Through Rate
Enter your email to receive a password reset link
user@example.com
-
Loading...
Loading...
-
Total Links
Total Clicks
Active Links
Once you delete your account, there is no going back. Please be certain.
Loading your API keys...
You haven't created any API keys yet.
Use your API keys to authenticate with our API. All API requests must include your API key in the Authorization header.
curl -X GET \
-H "Authorization: Bearer YOUR_API_KEY" \
https://t.s2u.me/api/links
Create a new short URL.
Get information about a short URL.
Get analytics for a short URL.
Welcome to the LinkShrink API! Our REST API allows you to programmatically create, manage, and track shortened URLs. Get started by obtaining an API key from your dashboard.
http://localhost/linkshrink2/api/
All API requests require authentication using either a Bearer token or API key.
Authorization: Bearer <your-jwt-token>
X-API-Key: <your-api-key>
Create a shortened URL
POST /shorten.php
{
"url": "https://example.com",
"alias": "custom-alias", // Optional
"password": "secret123", // Optional
"expires_at": "2025-12-31", // Optional (YYYY-MM-DD)
"max_clicks": 100, // Optional
"tags": ["marketing", "social"] // Optional
}
{
"success": true,
"data": {
"id": "abc123",
"short_url": "http://localhost/linkshrink2/abc123",
"original_url": "https://example.com",
"alias": "custom-alias",
"password_protected": true,
"max_clicks": 100,
"clicks": 0,
"status": "active",
"created_at": "2025-10-03 10:30:00",
"expires_at": "2025-12-31 23:59:59",
"tags": ["marketing", "social"]
}
}
curl -X POST http://localhost/linkshrink2/api/shorten.php \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-jwt-token" \
-d '{
"url": "https://example.com",
"alias": "my-link"
}'
Retrieve analytics data for your shortened URLs
GET /analytics.php?short_code=abc123
| Parameter | Type | Description |
|---|---|---|
| short_code | string | The short code of the URL |
| period | string | Optional. Time period: 24h, 7d, 30d, 90d |
curl -H "Authorization: Bearer your-jwt-token" \
"http://localhost/linkshrink2/api/analytics.php?short_code=abc123&period=7d"
Generate a QR code for your shortened URL
POST /qr.php
{
"url": "http://localhost/linkshrink2/abc123",
"size": 200, // Optional, default: 150
"format": "png" // Optional, default: png
}
curl -X POST http://localhost/linkshrink2/api/qr.php \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-jwt-token" \
-d '{
"url": "http://localhost/linkshrink2/abc123",
"size": 300
}'
| Tier | Requests per Hour | Features |
|---|---|---|
| Free | 50 | Basic URL shortening |
| Premium | 200 | Custom aliases, analytics |
| Business | 1000 | All features, bulk operations |
| HTTP Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing authentication |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Basic features for personal use
Loading payment history...
No payment history found
Total Users
-
Total URLs
-
Total Clicks
-
Active Users
-
Here's your new API key. Make sure to copy it now - you won't be able to see it again!
Are you sure you want to delete this API key? This action cannot be undone.