GET
https://spideriq.ai
/
api
/
v1
/
media
/
stats
Get Media Stats
curl --request GET \
  --url https://spideriq.ai/api/v1/media/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "client_id": "cli_abc123",
  "bucket_name": "client-cli-abc123",
  "public_url_base": "https://media.spideriq.ai/client-cli-abc123",
  "storage": {
    "total_files": 42,
    "total_size_bytes": 15728640,
    "total_size_mb": 15.0
  },
  "videos": {
    "total_videos": 3,
    "total_duration_seconds": 1800,
    "total_views": 156
  },
  "channel": {
    "channel_id": 45,
    "channel_name": "client_cli_abc123"
  }
}
Get storage usage and video statistics for your dedicated SpiderMedia resources.

Response

success
boolean
Whether the request succeeded
client_id
string
Your client identifier
bucket_name
string
Your SeaweedFS bucket name
public_url_base
string
Base URL for your public files
storage
object
File storage statistics
videos
object
Video statistics
channel
object
PeerTube channel info

Example

curl "https://spideriq.ai/api/v1/media/stats" \
  -H "Authorization: Bearer cli_abc123:sk_xxx:secret_xxx"
{
  "success": true,
  "client_id": "cli_abc123",
  "bucket_name": "client-cli-abc123",
  "public_url_base": "https://media.spideriq.ai/client-cli-abc123",
  "storage": {
    "total_files": 42,
    "total_size_bytes": 15728640,
    "total_size_mb": 15.0
  },
  "videos": {
    "total_videos": 3,
    "total_duration_seconds": 1800,
    "total_views": 156
  },
  "channel": {
    "channel_id": 45,
    "channel_name": "client_cli_abc123"
  }
}