GET https://api.luaprotect.dev/v1/scripts/:id/stats

Fetch 24h execution metrics, active users, and place IDs for a specific script.

Query Parameters

Example Request

curl -X GET "https://api.luaprotect.dev/v1/scripts/scr_88192a/stats" \
  -H "Authorization: Bearer LUAP-YOUR_API_KEY_HERE"

Example Response

{
  "stats": {
    "activeConnections": 42,
    "executions24h": 1420,
    "uniqueUsers24h": 680,
    "errorRate": "0.12%",
    "topPlaceIds": [6872274481, 286090429]
  }
}