curl --request GET \
--url https://api.royalti.io/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://api.royalti.io/artist/stats/{id} \
--header 'Authorization: Bearer <token>'{
"assets": 25,
"products": 10,
"totalRoyalties": 5000.5,
"totalPaid": 3000,
"totalDue": 2000.5
}/artist/stats/{id} endpoint retrieves statistical information for a specific artist.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the artist. |
const response = await fetch('https://api.royalti.io/artist/stats/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);