Locknex API

Die öffentliche Locknex API ermöglicht den Zugriff auf Container-, Link- und Statusinformationen per JSON. Die API wird kontinuierlich erweitert und künftig um weitere Funktionen ergänzt.

REST-ähnliche API
Live-Statusdaten
API Version v1
Zentrale Statusprüfung

API-Host

https://locknex.com

Format

JSON / UTF-8

Statussystem

online / partial / offline / unknown

Öffentliche Endpunkte
Container-Status abrufen
GET
/api/v1/public/container/{public_id}/status

Gibt den aktuellen Status eines Containers inklusive Linkstatistiken und letztem Prüfzeitpunkt zurück.

Antwort (JSON):
{
  "success": true,
  "container_id": "iiom6uw3pn7",
  "title": "Ubuntu Linux Collection",
  "status": "online",
  "created_at": "2026-05-07 15:35:17",
  "last_checked": "2026-05-10 14:06:41",
  "container_size": 3,

  "hosts": [
    "rapidgator.net",
    "ddownload.com"
  ],

  "stats": {
    "online": 3,
    "offline": 0,
    "unknown": 0
  }
}
Beispiel mit curl:
curl "https://locknex.com/api/v1/public/container/iiom6uw3pn7/status"
Kompatibilität

Die Locknex API unterstützt sowohl neue alphanumerische Container-IDs als auch ältere numerische Container-IDs.

Dadurch bleiben bereits veröffentlichte Containerlinks weiterhin vollständig kompatibel.

Neue Container-ID:
/api/v1/public/container/k5otrg3x3oe/status
Ältere numerische Container-ID:
/api/v1/public/container/7541014/status
API-Key Authentifizierung

Einige API-Endpunkte benötigen einen persönlichen API-Key.

Deinen persönlichen API-Key findest du im Benutzerbereich:

/apip

API-Keys können jederzeit neu generiert werden.

Container per API erstellen
POST
/api/v1/container/create

Erstellt automatisch einen neuen Locknex-Container inklusive Links und optionalem Passwortschutz.

Die Authentifizierung erfolgt über einen persönlichen API-Key.

Authentifizierung:
X-API-Key: DEIN_API_KEY
JSON Request:
{
  "title": "Linux ISOs",
  "password": "123",
  "links": [
    "https://ddownload.com/file/abc",
    "https://rapidgator.net/file/xyz"
  ]
}
Antwort (JSON):
{
  "success": true,
  "container_id": "k5otrg3x3oe",
  "title": "Linux ISOs",

  "container_url":
    "https://locknex.com/container/k5otrg3x3oe",

  "status_api":
    "https://locknex.com/api/v1/public/container/k5otrg3x3oe/status",

  "unlock_api":
    "https://locknex.com/api/v1/container/unlock",

  "badge_svg":
    "https://locknex.com/s/k5otrg3x3oe.svg",

  "badge_webp":
    "https://locknex.com/s/k5otrg3x3oe.webp",

  "container_size": 2,

  "created_at": "2026-05-12 13:15:00"
}
Beispiel mit curl:
curl -X POST "https://locknex.com/api/v1/container/create" \
-H "Content-Type: application/json" \
-H "X-API-Key: DEIN_API_KEY" \
-d '{
  "title":"Linux ISOs",
  "password":"123",
  "links":[
    "https://ddownload.com/file/abc",
    "https://rapidgator.net/file/xyz"
  ]
}'
Erweiterte Container-Statistiken
GET
/api/v1/public/container/{container_id}/stats

Liefert erweiterte Statistiken zu einem öffentlichen Container.

Die API gibt unter anderem Klickzahlen, Monatsstatistiken und die beliebtesten Referrer-Domains zurück.

Unterstützte Container-IDs: Antwort (JSON):
{
  "success": true,
  "container_id": "k5otrg3x3oe",
  "title": "Linux Collection",

  "clicks": {
    "today": 12,
    "yesterday": 21,
    "this_month": 441,
    "total": 8122
  },

  "top_referrers": [
    {
      "domain": "google.com",
      "clicks": 122
    },
    {
      "domain": "board.example",
      "clicks": 91
    }
  ]
}
Beispiel mit curl:
curl "https://locknex.com/api/v1/public/container/k5otrg3x3oe/stats"
Passwortgeschützte Container entsperren
POST
/api/v1/container/unlock

Mit diesem Endpunkt können passwortgeschützte Container per API entsperrt werden.

Nach erfolgreicher Passwortprüfung liefert die API die echten Containerlinks als JSON zurück.

JSON Request:
{
  "container_id": "k5otrg3x3oe",
  "password": "deinPass"
}
Antwort (JSON):
{
  "success": true,
  "container_id": "k5otrg3x3oe",
  "title": "Linux Collection",
  "links": [
    {
      "url": "https://rapidgator.net/file/...",
      "host": "rapidgator.net",
      "status": "online"
    },
    {
      "url": "https://ddownload.com/file/...",
      "host": "ddownload.com",
      "status": "online"
    }
  ]
}
Beispiel mit PowerShell:
$body = @{
    container_id = "k5otrg3x3oe"
    password     = "deinPass"
} | ConvertTo-Json

Invoke-RestMethod `
    -Uri "https://locknex.com/api/v1/container/unlock" `
    -Method POST `
    -ContentType "application/json" `
    -Body $body
Hinweise
Geplante Erweiterungen