Skip to content

Get User Statistics

Get user statistics including total users, new users registered today, and top users. Requires authentication.

Endpoint

GET /v1/accounts/user/statistics/

Authentication

Required

Query Parameters

None

Response

Success (200 OK)

{
  "total_users": 150,
  "new_users": 5,
  "top_users": 0
}

Error Responses

Unauthorized (401)

{
  "error": "Missing token on header!"
}

Example Request

curl -X GET "https://api.luxmart.site/v1/accounts/user/statistics/" \
  -H "Authorization: Token your_access_token"

Notes

  • total_users: Total count of all non-deleted users
  • new_users: Count of users registered today (from 00:00:00 to 23:59:59)
  • top_users: Currently returns static value of 0 (placeholder for future implementation)
  • This endpoint does not require pagination parameters
  • All counts are calculated in real-time from the database