Building a Link Shortener with Laravel and Link-Me API
A step-by-step tutorial on integrating Link-Me's API into your Laravel application.
Read MoreSuper Admin
Author
A comprehensive guide to integrating Link-Me's powerful URL shortening API into your applications.
The Link-Me API allows you to programmatically create, manage, and track shortened URLs. This tutorial will walk you through everything you need to get started.
All API requests require authentication using a Bearer token. You can generate your API key from the dashboard settings.
curl -X POST https://link-me.com/api/v1/urls \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/very-long-url"}'
To create a new short URL, send a POST request to the /api/v1/urls endpoint:
{
"url": "https://example.com/your-long-url",
"custom_slug": "my-custom-slug", // optional
"expires_at": "2025-12-31", // optional
"password": "secret123" // optional
}
Successful responses return JSON with the following structure:
{
"success": true,
"data": {
"id": 12345,
"code": "Ab3xY9k",
"short_url": "https://link-me.com/Ab3xY9k",
"original_url": "https://example.com/your-long-url",
"click_count": 0,
"created_at": "2025-01-15T10:30:00Z"
}
}
Get detailed statistics for any of your shortened URLs:
GET /api/v1/urls/{code}/stats
API requests are rate-limited based on your plan:
We offer official SDKs for popular programming languages:
Check our documentation for complete API reference and examples.
A step-by-step tutorial on integrating Link-Me's API into your Laravel application.
Read MoreJoin thousands of users who trust Link-Me for their URL shortening needs.