ShortGo
FunktionenPreise BlogHilfeAnmelden
REST · JSON · Webhooks

Bauen Sie auf Ihren Links auf

Erstellen Sie Links im eigenen Markendesign, generieren Sie QR-Codes und rufen Sie Statistiken aus Ihren eigenen Apps ab. Vorhersehbare REST-Endpunkte, überall JSON und Webhooks für Echtzeit-Ereignisse.

POST /links
curl -X POST https://shortgo.io/api/v1/links \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/launch","alias":"launch"}'
const res = await fetch("https://shortgo.io/api/v1/links", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://example.com/launch" }),
});
const { short_url } = await res.json();
import requests

r = requests.post("https://shortgo.io/api/v1/links",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"url": "https://example.com/launch"})
print(r.json()["short_url"])
$ch = curl_init("https://shortgo.io/api/v1/links");
curl_setopt_array($ch, [
  CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer $apiKey", "Content-Type: application/json"],
  CURLOPT_POSTFIELDS => json_encode(["url" => "https://example.com/launch"]),
]);
$link = json_decode(curl_exec($ch), true);
201 Created → {"id": 42, "short_url": "https://go.example/launch", …}

Authentifizierung

Create an API key in your dashboard and send it as a Bearer token in the Authorization header. Keys can be read-only or read/write and revoked at any time.

Ratenlimits

Limits depend on your plan (requests per minute). Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers; exceeding the limit returns 429.

Webhooks

Subscribe to link.created, link.clicked, link.deleted and overlay.response events. Payloads are signed with HMAC-SHA256 so you can verify they came from us.

Endpunkte

Basis-URL

https://shortgo.io/api/v1

Alle Anfragen und Antworten verwenden JSON. Fehler liefern eine „error“-Meldung mit einem aussagekräftigen HTTP-Statuscode. Listen-Endpunkte sind mit page und per_page paginiert.

Die vollständige Referenz mit Anfrage- und Antwortschemata finden Sie in Ihrem Dashboard.

MethodeEndpunktBeschreibung
GET/linksList links with search and filters
POST/linksEinen Kurzlink erstellen
GET/links/{id}Einen Link abrufen
PATCH/links/{id}Update destination, alias or options
DELETE/links/{id}Einen Link löschen
GET/links/{id}/statsClicks, countries, devices and referrers
GET/qrQR-Codes auflisten
POST/qrCreate a dynamic QR code
GET/domainsList your branded domains
GET/campaignsKampagnen auflisten
GET/accountCurrent user and plan usage

Webhook-Signaturen prüfen

Jede Zustellung enthält die Header X-ShortGo-Timestamp und X-ShortGo-Signature. Die Signatur ist sha256= gefolgt vom Hex-HMAC-SHA256 von „timestamp.body“ mit Ihrem Webhook-Secret. Vergleichen Sie sie in konstanter Zeit und lehnen Sie alte Zeitstempel ab.

{
  "event": "link.clicked",
  "created_at": "2026-01-01T12:00:00Z",
  "data": {
    "link_id": 42,
    "country": "DE",
    "device": "mobile",
    "referrer": "instagram.com"
  }
}

Wir verwenden essenzielle Cookies, um diese Website zu betreiben. Mehr erfahren