shorrrt.com

Pro-Tarif

shorrrt.com REST API

Integriere shorrrt.com in deinen Workflow, deine Automatisierung oder deine App. Authentifiziere dich mit Authorization: Bearer <your_api_key>. Nur im Pro-Tarif verfügbar.

Basis-URL

https://shorrrt.com/api/v1

OpenAPI 3.1

Lade die maschinenlesbare API-Spezifikation für Code-Generatoren und API-Clients herunter.

openapi.json ansehen

Endpunkte

  • GET /links — Alle deine Kurzlinks auflisten
  • POST /links — Einen neuen Kurzlink erstellen
  • PATCH /links/:shortId — Titel oder Archivierungsstatus aktualisieren
  • DELETE /links/:shortId — Einen Link per Kurz-ID löschen
  • GET /links/:shortId/stats — Klickanzahl für einen Link abrufen

Authentifizierung

Füge deinen API-Schlüssel bei jeder Anfrage als Bearer-Token ein:

Authorization: Bearer shr_your_api_key_here

Beispiel — Links auflisten

cURL-Anfrage:

curl -H "Authorization: Bearer shr_your_key_here" \
     https://shorrrt.com/api/v1/links

Antwort:

{
  "links": [
    {
      "id": 1,
      "shortId": "abc123",
      "originalUrl": "https://example.com",
      "title": "My link",
      "isCustom": false,
      "archived": false,
      "createdAt": "2025-01-01T00:00:00.000Z"
    }
  ]
}

Beispiel — Link erstellen

curl -X POST \
     -H "Authorization: Bearer shr_your_key_here" \
     -H "Content-Type: application/json" \
     -d '{"originalUrl":"https://example.com","customSlug":"my-link"}' \
     https://shorrrt.com/api/v1/links

Antwort (201):

{
  "id": 2,
  "shortId": "my-link",
  "originalUrl": "https://example.com",
  "shortUrl": "https://shorrrt.com/my-link",
  "createdAt": "2025-01-01T00:00:00.000Z"
}

Rate Limits

60 Anfragen pro Minute pro API-Schlüssel. Bei Überschreitung wird HTTP 429 zurückgegeben.

Bereit zur Integration? Hole dir deinen API-Schlüssel in den Einstellungen.

API-Schlüssel in den Einstellungen holen