curl --request GET \
--url https://api.royalti.io/asset \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"items": [
{
"title": "Midnight City",
"mainArtist": [
"M83",
"M47"
],
"displayArtist": "M83",
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T1234567890",
"mainGenre": [
"Electronic",
"Mental"
],
"subGenre": [
"Synthwave"
],
"explicit": false,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
}
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 100
}
],
"externalId": "<string>",
"contributors": {
"producers": [
"<string>"
],
"mixers": [
"<string>"
]
}
}
],
"total": 123,
"page": 123,
"limit": 123
}
}Retrieve a paginated list of assets. Supports filtering, sorting, and searching.
curl --request GET \
--url https://api.royalti.io/asset \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"items": [
{
"title": "Midnight City",
"mainArtist": [
"M83",
"M47"
],
"displayArtist": "M83",
"type": "Audio",
"version": "Album Version",
"isrc": "USRC17607839",
"iswc": "T1234567890",
"mainGenre": [
"Electronic",
"Mental"
],
"subGenre": [
"Synthwave"
],
"explicit": false,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"artists": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"type": "primary"
}
],
"split": [
{
"user": "550e8400-e29b-41d4-a716-446655440002",
"share": 100
}
],
"externalId": "<string>",
"contributors": {
"producers": [
"<string>"
],
"mixers": [
"<string>"
]
}
}
],
"total": 123,
"page": 123,
"limit": 123
}
}| Parameter | Type | Description |
|---|---|---|
| search | string | Search term to filter assets |
| type | string | |
| splits | boolean | |
| artist | string | filter by artist uuids |
| statistics | boolean | include assets stats |
| sort | string | Field to sort by (default: ‘createdAt’) |
| order | string | Sort order (‘asc’ or ‘desc’, default: ‘desc’) |
| attributes | string | Comma-separated list of attributes to include |
| size | number | Items per page (default: 10) |
| page | number | Page number (default: 1) |
| product | string | Include product id to filter assets |
const response = await fetch('https://api.royalti.io/asset', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Search term
Asset type
Include splits
Filter by artist uuids
Include assets stats
Field to sort by (default: 'createdAt')
Sort order ('asc' or 'desc', default: 'desc')
Comma-separated list of attributes to include
Items per page
Page number
Items per page