curl --request GET \
--url https://api.royalti.io/user/{id}/artists \
--header 'Authorization: Bearer <token>'[
{
"id": "a5f64f77-6207-46b7-9069-e4493f7cf429",
"artistName": "jhcx jbnx",
"assets": 0,
"products": 3,
"count": 0,
"royalty": 0
},
{
"id": "a93b5bf5-5b82-4662-bf45-e540ae37bd46",
"artistName": "Star Girl",
"assets": 17,
"products": 4,
"count": 8371614,
"royalty": 17203.101640603374
}
]/user//artists
curl --request GET \
--url https://api.royalti.io/user/{id}/artists \
--header 'Authorization: Bearer <token>'[
{
"id": "a5f64f77-6207-46b7-9069-e4493f7cf429",
"artistName": "jhcx jbnx",
"assets": 0,
"products": 3,
"count": 0,
"royalty": 0
},
{
"id": "a93b5bf5-5b82-4662-bf45-e540ae37bd46",
"artistName": "Star Girl",
"assets": 17,
"products": 4,
"count": 8371614,
"royalty": 17203.101640603374
}
]/user/{userId}/artists endpoint allows users to retrieve the list of artists associated with a specific user identified by their unique userId.
Method:| Parameter | Type | Description |
|---|---|---|
| userId | string | The unique identifier of the user. |
const response = await fetch('https://api.royalti.io/user/example-id/artists', {
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
Include statistics data