Build Link Workflows with the Linkx.ee API: Short Links, QR Codes, and Analytics from Your Code

John KamiJohn Kami
4 min read

Links are more than addresses. They are how users move from attention to action. If you build products, run campaigns, or ship internal tools, you need links you can create, track, and automate.

That is exactly what the Linkx.ee platform is for. And if you want to wire it into your systems, the Linkx.ee API gives you the building blocks.

What you can build

  • Create short links on the fly during a deploy or campaign kickoff

  • Generate QR codes for events, packaging, or livestream overlays

  • Pull analytics to your own dashboard

  • Spin up “bio” or campaign pages and keep them updated programmatically

You can do it right from your code without touching the dashboard.

Getting started

  1. Generate an API key in your Linkx.ee account.

  2. Store it as an environment variable.

  3. Send it in the Authorization header.

curl -X GET "https://linkx.ee/api/v1/links" -H "Authorization: Bearer $LINKX_API_KEY"

Exact endpoints and fields may vary. Always double-check the Linkx.ee API docs.

curl -X POST "https://linkx.ee/api/v1/links" \
  -H "Authorization: Bearer $LINKX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/launch",
    "domain": "linkx.ee",
    "alias": "launch-2025",
    "utm": {
      "source": "twitter",
      "medium": "social",
      "campaign": "summer-launch"
    }
  }'

Sample response:

{
  "id": "lk_8Q2y3",
  "short_url": "https://linkx.ee/launch-2025",
  "clicks": 0,
  "created_at": "2025-08-17T10:00:00Z"
}
curl -X GET "https://linkx.ee/api/v1/links/lk_8Q2y3/stats" \
  -H "Authorization: Bearer $LINKX_API_KEY"

Possible response:

{
  "clicks": 245,
  "unique_clicks": 220,
  "top_countries": [{"code":"US","count":100},{"code":"FI","count":45}],
  "referrers": [{"host":"twitter.com","count":80},{"host":"linkedin.com","count":60}],
  "devices": [{"type":"mobile","count":170},{"type":"desktop","count":75}]
}

Generate a QR code

QR codes are great for print, events, and livestreams.

# Some APIs return an image. Others return a JSON payload with a URL.
curl -X GET "https://linkx.ee/api/v1/links/lk_8Q2y3/qr" \
  -H "Authorization: Bearer $LINKX_API_KEY" \
  --output launch-2025-qr.png

Pro tips:

  • Use high contrast and adequate size for distance scanning

  • Add a short label near the code like “Scan for the offer”

  • Point the QR at a short, branded link instead of a long raw URL

Node.js example (fetch)

const BASE = "https://linkx.ee/api/v1";
const token = process.env.LINKX_API_KEY;

async function createLink(input) {
  const res = await fetch(`${BASE}/links`, {
    method: "POST",
    headers: {
      "Authorization": `Bearer ${token}`,
      "Content-Type": "application/json"
    },
    body: JSON.stringify(input)
  });
  if (!res.ok) {
    const err = await res.text();
    throw new Error(`Create link failed: ${res.status} ${err}`);
  }
  return res.json();
}

createLink({
  url: "https://example.com/docs",
  domain: "linkx.ee",
  alias: "docs-quickstart"
})
  .then(data => console.log("Created:", data.short_url))
  .catch(console.error);

Python example (requests)

import os, requests

BASE = "https://linkx.ee/api/v1"
token = os.environ["LINKX_API_KEY"]
headers = {"Authorization": f"Bearer {token}"}

r = requests.get(f"{BASE}/links", headers=headers, timeout=15)
r.raise_for_status()
print(r.json())

Ideas you can ship this week

  • A CLI that creates campaign links, adds UTM tags, and prints the short URL

  • A GitHub Action that generates a release link for each tag and posts it to Slack

  • A livestream helper that pins a short link in chat and swaps it during segments

  • A weekly report that pulls Linkx.ee stats and sends a dashboard screenshot to your team

Backlink strategy inside your post

If you are also writing on your own site or other platforms, place backlinks in ways that help readers and search engines.

  • Use varied anchor text:

  • Deep link at least once to the docs at /developers. If you reference a tutorial, link the relevant article on the Linkx.ee blog.

  • Add one or two neutral authority links in your article for balance. Your Linkx.ee link will look more natural in that context.

  • If you republish this piece elsewhere, set a canonical URL to avoid duplicate content issues.

Docs and next steps

If you want, I can tailor this draft to a specific audience on Hashnode, for example “marketing engineers,” “growth teams,” or “open source maintainers,” and add examples that match their day-to-day.

0
Subscribe to my newsletter

Read articles from John Kami directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

John Kami
John Kami