curl --request GET \
--url https://api.royalti.io/artist/{id}/products \
--header 'Authorization: Bearer <token>'[
{
"id": "prod-123",
"upc": "123456789012",
"title": "Album Title",
"isDraft": false,
"splitCount": 3,
"count": 50000,
"royalty": 4500.25,
"Assets": [
{
"id": "asset-456",
"isrc": "USABC1234567",
"title": "Song Title",
"version": "Album Version",
"AssetProducts": {
"Number": 1
}
}
],
"Artists": [
{
"id": "456",
"artistName": "Main Artist",
"type": "primary"
}
]
}
]artist//products
curl --request GET \
--url https://api.royalti.io/artist/{id}/products \
--header 'Authorization: Bearer <token>'[
{
"id": "prod-123",
"upc": "123456789012",
"title": "Album Title",
"isDraft": false,
"splitCount": 3,
"count": 50000,
"royalty": 4500.25,
"Assets": [
{
"id": "asset-456",
"isrc": "USABC1234567",
"title": "Song Title",
"version": "Album Version",
"AssetProducts": {
"Number": 1
}
}
],
"Artists": [
{
"id": "456",
"artistName": "Main Artist",
"type": "primary"
}
]
}
]/artist/{id}/products endpoint retrieves all products associated with a specific artist, including related assets and statistics.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id (required) | string | The unique identifier of the artist. |
| page (optional) | integer | Page number for pagination (default: 1) |
| size (optional) | integer | Number of products per page (default: 10) |
| type (optional) | string | Filter by product type (default: all) |
const response = await fetch('https://api.royalti.io/artist/example-id/products', {
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
Page number for pagination
Number of products per page
Filter by product type
Success
Unique identifier of the product
UPC code of the product
Title of the product
Whether the product is a draft
Number of splits associated with this product
Total play/stream count from ProductStats
Total royalties from ProductStats
Show child attributes
Show child attributes