Quickstart
Make a short link in the app first. Then make one with the API.
In the app
- Sign in at linklane.io.
- Open Links. Paste your long URL into Paste a long URL… and click Create.
- Your short link is at the top of the list. Copy it and share it.
- To choose the ending yourself (for example
/launch), click Options (the + button on phones) instead of Create. Fill in Alias (optional) and click Open lane.
Open the link's analytics to see each click: when, from where, and on which device.
Free plan
Free includes 50 new links and 1,000 tracked clicks each month. See Plans and limits.
With the API
You need an API key, which comes with Pro and above. Create one on the API Keys page in the app, then store it in an environment variable:
export LINKLANE_API_KEY="ll_live_..."
Create a link:
- cURL
- JavaScript
- Python
curl -X POST https://api.linklane.io/api/links \
-H "Authorization: Bearer $LINKLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/very/long/path", "custom_alias": "launch"}'
const res = await fetch("https://api.linklane.io/api/links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.LINKLANE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com/very/long/path", custom_alias: "launch" }),
});
const link = await res.json();
console.log(link.short_url);
import os
import requests
res = requests.post(
"https://api.linklane.io/api/links",
headers={"Authorization": f"Bearer {os.environ['LINKLANE_API_KEY']}"},
json={"url": "https://example.com/very/long/path", "custom_alias": "launch"},
)
print(res.json()["short_url"])
Response · 200 OK (trimmed)
{
"id": "6f1c2b9e-1d4a-4c39-9a51-0c7e8b2d4f10",
"code": "launch",
"url": "https://example.com/very/long/path",
"short_url": "https://lny.me/launch",
"clicks": 0,
"created_at": "2026-11-30T10:00:00+00:00"
}
If the alias is taken, you get 409. Pick another or leave custom_alias out to get a random code.
Then read its clicks:
curl "https://api.linklane.io/api/links/6f1c2b9e-1d4a-4c39-9a51-0c7e8b2d4f10/analytics?days=7" \
-H "Authorization: Bearer $LINKLANE_API_KEY"