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
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/example-id/stats', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

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