This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Artist ID
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/stats/{id} \
  --header 'Authorization: Bearer <token>'{
  "assets": 25,
  "products": 10,
  "totalRoyalties": 5000.5,
  "totalPaid": 3000,
  "totalDue": 2000.5
}artist/stats/
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/stats/{id} \
  --header 'Authorization: Bearer <token>'{
  "assets": 25,
  "products": 10,
  "totalRoyalties": 5000.5,
  "totalPaid": 3000,
  "totalDue": 2000.5
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/artist/stats/example-id', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Artist ID