Skip to main content
GET
/
user
/
{id}
/
artists
Get User Artists
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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
  }
]
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/example-id/artists', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

User ID

Query Parameters

stats
string

Include statistics data

Response

Success with Stats

id
string
artistName
string
assets
integer
products
integer
count
integer
royalty
number