Back to Projects
Server Stats API
Real-time server performance metrics including uptime, memory usage, request counts, and response times. Powered by Bun.
Endpoint
GET/api/stats
Returns current server performance metrics. No authentication required.
Response Schema
responseTimenumber (ms)Average response time over the last minute
memory.heapUsednumber (bytes)Current heap memory usage
memory.heapTotalnumber (bytes)Total heap memory allocated
memory.rssnumber (bytes)Resident Set Size - total memory allocated
requestsPerSecondnumberAverage requests per second over the last minute
uptimenumber (seconds)Server uptime in seconds
timestampstring (ISO 8601)When the stats were collected
🧪 Try It Live
Fetch real-time server statistics from our Bun-powered backend.
Example Request
curl https://beanola.com/api/stats
Example Response
{
"responseTime": 2.45,
"memory": {
"heapUsed": 45678912,
"heapTotal": 67108864,
"rss": 89456640
},
"requestsPerSecond": 12.5,
"uptime": 86400,
"timestamp": "2025-01-25T12:00:00.000Z"
}