Status API 📊
The Status API provides real-time information about Scare Bot’s performance, uptime, and system metrics.Endpoint
Base URL
Description
This endpoint returns comprehensive status information including:- Performance Metrics: Latency, uptime, and response times
- Bot Statistics: Server count, user count, and command usage
- System Health: Memory usage, CPU utilization, and error rates
- Real-time Data: Live updates of bot performance
Response Format
Success Response
Error Response
Response Fields
| Field | Type | Description | Example |
|---|---|---|---|
stats.timestamp | string | ISO 8601 timestamp of the request | "2025-08-25T06:46:26.513816+00:00Z" |
stats.guilds | integer | Number of Discord servers the bot is in | 1 |
stats.users | integer | Total number of users across all servers | 41 |
stats.channels | integer | Total number of channels across all servers | 10 |
stats.shards | integer | Number of Discord shards | 1 |
stats.latency | integer | Bot’s latency to Discord API in milliseconds | 124 |
stats.uptime | string | How long the bot has been running | "6m 1s" |
stats.commands_used | integer | Total number of commands used | 486 |
stats.shard_stats | object | Detailed information for each shard | See below |
Shard Statistics
| Field | Type | Description | Example |
|---|---|---|---|
id | integer | Shard ID | 0 |
guilds | integer | Number of guilds on this shard | 1 |
users | integer | Number of users on this shard | 41 |
latency | integer | Shard latency in milliseconds | 124 |
status | string | Shard connection status | "online" |
Status Codes
| Code | Description |
|---|---|
200 | Success - Status data returned |
500 | Internal Server Error |
503 | Service Unavailable |
Headers
Request Headers
Response Headers
Examples
cURL Request
JavaScript (Fetch)
Python (requests)
Node.js (axios)
Rate Limiting
- Requests per minute: 60
- Requests per hour: 1000
- Rate limit headers: Included in response
Caching
- Cache-Control:
no-cache - Data freshness: Real-time (no caching)
- Update frequency: Every request
Use Cases
Monitoring Dashboards
- Real-time bot performance monitoring
- Uptime tracking and alerting
- Performance metrics visualization
Health Checks
- Automated health monitoring
- Service availability checks
- Performance benchmarking
Analytics
- Bot usage statistics
- Server growth tracking
- Performance trend analysis
Related Endpoints
Bot Info API
Get detailed bot information and statistics
Commands API
Get list of all available commands
Guilds API
Get information about bot’s guilds
Error Handling
Common Errors
| Error | Description | Solution |
|---|---|---|
ECONNREFUSED | Bot server is not running | Start the bot server |
ETIMEDOUT | Request timed out | Check network connection |
500 | Internal server error | Check bot logs |
Error Response Format
Need help? Join our Support Server for API assistance!