Skip to main content
GET
/
user
/
{id}
/
stats
Get User Stats
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/user/{id}/stats \
  --header 'Authorization: Bearer <token>'
{
  "artists": 5,
  "assets": 17,
  "products": 7,
  "Royalty_Share": 1135.2762243941013,
  "paid": 100,
  "net": 1135.2762243941013,
  "gross": 1135.2762243941013,
  "due": 1035.2762243941013
}
/user//stats Description:
The /user/{userId}/stats endpoint allows users to retrieve statistical information related to a specific user identified by their unique userId.
Method:
GET
Path Parameter:
ParameterTypeDescription
userIdstringThe unique identifier of the user.
See Sample Response below

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Path Parameters

ParameterTypeInRequiredDescription
idstringpathUser ID

Responses

✅ 200 - Success (NEW) - get user stats

⚠️ 401 - Unauthorized

⚠️ 404 - Not Found

❌ 500 - Internal Server Error

Tags

User

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

User ID

Response

Success (NEW) - get user stats

artists
integer
assets
integer
products
integer
Royalty_Share
number
paid
number
net
number
gross
number
due
number
I