API documentation

Create and manage short links on a .ie domain from your own code. It's a small JSON REST API: five endpoints, one API key.

Quickstart

  1. Sign in with GitHub — your first sign-in creates a free account.
  2. On your dashboard, click Create API key and copy the key. It's only shown once.
  3. Shorten your first URL:

Terminal

export WEEURL_API_KEY="weeurl_…"   # the key you just copied

curl -X POST https://weeurl.ie/api/v1/links \
  -H "Authorization: Bearer $WEEURL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'

You'll get back a short_url you can share straight away. All requests and responses are JSON; successful responses wrap the result in data, failures return an error message. The full spec is available as OpenAPI 3 YAML for Postman, Insomnia or code generators.

Using Node.js, Bun, Deno or an edge runtime? The official weeurl package wraps every endpoint with types and has no dependencies (source on GitHub). It also works from the terminal:

Terminal

npx weeurl https://example.com

TypeScript

import { WeeURL } from "weeurl";

const wee = new WeeURL({ apiKey: process.env.WEEURL_API_KEY! });
const { short_url } = await wee.links.create({ url: "https://example.com" });

Authentication

Send your API key as a Bearer token on every request:

Authorization: Bearer weeurl_1a2b3c4d5e6f_…
  • Keys are secrets. Call the API from your server or scripts, never from browser or mobile app code where anyone can read the key. Keep keys in environment variables, not in source control.
  • Shown once. We only store a hash of each key, so we can't show it again. If you lose one, create a new key.
  • Revoke leaked keys from your dashboard — they stop working immediately. To rotate a key without downtime: create a new one, deploy it, then revoke the old one. You can have up to 5 active keys.
  • One account, shared limits. Your plan, monthly quota, and burst limit belong to your account, so every key on it shares them. Extra keys are for separating apps or environments, not for extra quota.
  • Free-plan keys need a GitHub account that's at least 30 days old. Pro accounts are exempt.

Rate limits & quotas

There are two separate limits, and both return 429 Too Many Requests:

LimitApplies toError messageWhat to do
Burst
2/sec Free, 10/sec Pro
Every requestRate limit exceeded. Please slow down.Wait the number of seconds in the Retry-After header, then retry.
Monthly quota
100 Free, 5,000 Pro
Successful link creations onlyMonthly quota exceeded. Upgrade or wait until …Don't retry — upgrade, or wait until the reset date in the message.

Quotas reset at 00:00 UTC on the 1st of each month. Only links you successfully create count — failed requests, reads, and updates don't, and disabling a link doesn't give quota back. Call GET /usage to see where you stand.

Endpoints

Base URL: https://weeurl.ie/api/v1. All paths below are relative to it.

Check your plan and quota

GET/usage

Your plan (free or paid — shown as Pro on the site), links created this month, your monthly limit, your burst limit in requests per second, and when the quota resets. Doesn't use any quota, so it's a good way to check a key works.

Request

curl https://weeurl.ie/api/v1/usage \
  -H "Authorization: Bearer $WEEURL_API_KEY"

Response

HTTP/1.1 200 OK

{
  "data": {
    "tier": "free",
    "links_used": 12,
    "links_limit": 100,
    "burst_limit": 2,
    "reset_date": "2026-10-01T00:00:00.000Z"
  }
}

Errors

  • 401 — missing or invalid API key
  • 429 — Burst limit hit
  • 503 — Quota service briefly unavailable — safe to retry

Errors

Every error has the same shape — an HTTP status code plus a human-readable message:

{ "error": "Custom slugs require a paid plan" }
StatusMeaningWhat to do
400The request is invalid — bad JSON, a missing or malformed field, or an unsafe URL.Fix the request; retrying the same one won't help.
401No Authorization header, or the key is malformed, unknown, or revoked (those three get the same message, so a response never reveals whether a key exists).Check the Authorization header and that the key hasn't been revoked.
403Your plan doesn't allow this (custom slugs on Free), or the link is under abuse review.Upgrade, or leave the link disabled.
404The link doesn't exist or isn't yours.Check the slug — slugs are case-sensitive.
409The custom slug is already taken.Pick a different slug.
429Too many requests per second, or the monthly quota is used up.See rate limits below — the message says which.
503A dependency is briefly unavailable.Retry after a few seconds with backoff.

Branch on the status code, not the message text — messages may be reworded. The one exception is 429, where the message tells you which limit you hit.

Plans

FeatureFreePro
Links per month1005,000
Burst limit2 req/sec10 req/sec
Custom slugs—Yes
GitHub account age for keys30+ daysNo minimum
PriceFree€7/mo or €65/yr

Upgrade from your dashboard. If a Pro subscription is cancelled or a payment fails, your account moves back to Free — your links keep working, and new link creation is limited to the Free quota.