curl --request GET \
--url https://api.royalti.io/user/{id}/stats \
--header 'Authorization: Bearer <token>'{
"artists": 5,
"assets": 17,
"products": 7,
"splits": 10,
"Royalty_Share": 1135.2762243941013,
"paid": 100,
"net": 1135.2762243941013,
"gross": 1135.2762243941013,
"due": 1035.2762243941013
}/user//stats
curl --request GET \
--url https://api.royalti.io/user/{id}/stats \
--header 'Authorization: Bearer <token>'{
"artists": 5,
"assets": 17,
"products": 7,
"splits": 10,
"Royalty_Share": 1135.2762243941013,
"paid": 100,
"net": 1135.2762243941013,
"gross": 1135.2762243941013,
"due": 1035.2762243941013
}/user/{userId}/stats endpoint allows users to retrieve statistical information related to a specific user identified by their unique userId.
Method:| Parameter | Type | Description |
|---|---|---|
| userId | string | The unique identifier of the user. |
See Sample Response below
const response = await fetch('https://api.royalti.io/user/example-id/stats', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
User ID
Success (NEW) - get user stats
Number of artists associated with the user
Number of assets associated with the user
Number of products associated with the user
Number of splits/shares assigned to the user
Total royalty share amount
Amount already paid to the user
Net earnings
Gross earnings
Amount currently due to the user