curl --request GET \
--url https://api.royalti.io/artist/{id}/splits \
--header 'Authorization: Bearer <token>'{
"message": "Successful",
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "master",
"splits": [
{
"recipientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientType": "user",
"percentage": 50,
"role": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}artist//splits
curl --request GET \
--url https://api.royalti.io/artist/{id}/splits \
--header 'Authorization: Bearer <token>'{
"message": "Successful",
"result": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artistId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "master",
"splits": [
{
"recipientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientType": "user",
"percentage": 50,
"role": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the artist. |
const response = await fetch('https://api.royalti.io/artist/example-id/splits', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);