Einloggen
URL-Verkürzer
API-Dokumentation
Um unsere API zu nutzen, musst du dich registrieren und einen Authentifizierungstoken generieren.

URL-Liste abrufen

Eine Liste der URL-Adressen abrufen.

Anfrage

GET /api/v1/urls
Authorization: Bearer {token}

Antwort

{
    "data": [
        {
            "id": 1,
            "hash": "S8akS",
            "shortUrl": "http://lnkz.at/S8akS",
            "url": "https://example.com",
            "clicks": 146,
            "expiresAt": "2023-07-04 10:00:00",
        },
        {
            "id": 1,
            "hash": "rnMyK",
            "shortUrl": "http://lnkz.at/rnMyK",
            "url": "https://google.com",
            "clicks": 755,
            "expiresAt": "2023-12-12 13:30:00",
        }
    ]
}

Antwortcode

200

URL-Adresse abrufen

Informationen zu einer bestimmten URL-Adresse abrufen.

Anfrage

GET /api/v1/urls/{id}
Authorization: Bearer {token}

Antwort

{
    "data": {
        "id": 1,
        "hash": "S8akS",
        "shortUrl": "http://lnkz.at/S8akS",
        "url": "https://example.com",
        "clicks": 146,
        "expiresAt": "2023-07-04 10:00:00",
    }
}

Antwortcode

200

URL-Adresse erstellen

Eine neue URL-Adresse erstellen.

Das Feld "expiresAt" ist optional.

Anfrage

POST /api/url
Authorization: Bearer {token}
Content-Type: application/json

{
    "url": "https://www.youtube.com",
    "expiresAt": "2025-12-31 23:59:59"
}

Antwort

{
    "data": {
        "id": 3,
        "hash": "2zKwy",
        "shortUrl": "http://lnkz.at/2zKwy",
        "url": "https://www.youtube.com",
        "clicks": null,
        "expiresAt": "2025-12-31T23:59:59.000000Z"
    }
}

Antwortcode

201

URL-Adresse aktualisieren

Eine vorhandene URL-Adresse aktualisieren.

Das Feld "expiresAt" kann null sein.

Anfrage

PUT /api/v1/urls/{id}
Authorization: Bearer {token}
Content-Type: application/json

{
    "url": "https://example.com",
    "expiresAt": "2025-12-31 23:59:59"
}

Antwort

empty

Antwortcode

200

URL-Adresse löschen

Eine vorhandene URL-Adresse löschen.

Anfrage

DELETE /api/v1/urls/{id}
Authorization: Bearer {token}

Antwort

Empty

Antwortcode

204
Verwandeln Sie lange und unattraktive Links in ansprechende, kurze URLs, die leicht zu merken und nachzuverfolgen sind, mit unserem kostenlosen URL-Verkürzungsdienst. Verkürzen Sie Links problemlos für Social-Media-Plattformen, Blogs, SMS, E-Mails, Werbung und praktisch jeden anderen Ort, an dem Sie sie teilen möchten. Egal ob Twitter, Facebook, YouTube, Instagram, WhatsApp, E-Mails, SMS oder Videos, unser Service deckt alles ab. hebt sich als großartige kostenlose Alternative zu gängigen URL-Verkürzungsdiensten wie bitly und tinyurl hervor.