-
Notifications
You must be signed in to change notification settings - Fork 0
URL Shortener API
HyperGaming99 edited this page Jul 13, 2026
·
1 revision
POST /api · Benutzer-API-Key erforderlich
curl -X POST https://0x79.one/api \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"long_url":"https://example.com",
"domain":"0x79.one",
"custom_code":"example",
"password":"optional",
"expires_at":"2026-12-31T23:59",
"max_clicks":25,
"preview_enabled":true
}'| Feld | Typ | Beschreibung |
|---|---|---|
long_url |
string | Ziel-URL, alternativ url
|
domain |
string | Eine konfigurierte Kurzlink-Domain |
custom_code |
string | Optionaler Alias; auch alias oder short_code
|
password |
string | Optionaler Passwortschutz |
expires_at |
datetime | Optionales Ablaufdatum |
max_clicks |
integer | Link nach dieser Anzahl Aufrufe sperren |
preview_enabled |
boolean | Vorschauseite vor Weiterleitung aktivieren |
{
"ok": true,
"long_url": "https://example.com",
"short_code": "example",
"short_url": "https://0x79.one/example",
"domain": "0x79.one",
"expires_at": "2026-12-31T23:59:00+00:00",
"has_password": true,
"click_count": 0,
"max_clicks": 25,
"preview_enabled": true
}GET /api?code=example · öffentlich
curl "https://0x79.one/api?code=example"Geschützte Links können optional direkt mit ?pw=PASSWORD oder ?password=PASSWORD geöffnet werden.