跳转到主要内容
GET
/
api
/
stats
Chat statistics
curl --request GET \
  --url http://localhost:8080/api/stats \
  --header 'Authorization: Bearer <token>'
{
  "chat_id": 123,
  "total_messages": 123,
  "total_users": 123,
  "messages_today": 123,
  "top_users": [
    {
      "user_id": 123,
      "username": "<string>",
      "message_count": 123
    }
  ]
}

授权

Authorization
string
header
必填

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

查询参数

chat_id
integer
必填

Chat ID

响应

Chat statistics

chat_id
integer

Chat ID

total_messages
integer

Total tracked messages

total_users
integer

Unique users who have sent messages

messages_today
integer

Messages sent today

top_users
object[]

Most active users