curl --request GET \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Artist retrieved successfully",
"artist": {
"id": "2fca1b81-2f97-4b02-92a2-899d17c756b8",
"artistName": "Young Blud",
"signDate": "2022-01-21T00:00:00.000Z",
"label": "Mavins Records",
"externalId": "1rema45"
}
}artist/
curl --request GET \
--url https://api.royalti.io/artist/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Artist retrieved successfully",
"artist": {
"id": "2fca1b81-2f97-4b02-92a2-899d17c756b8",
"artistName": "Young Blud",
"signDate": "2022-01-21T00:00:00.000Z",
"label": "Mavins Records",
"externalId": "1rema45"
}
}/artist/{id} endpoint retrieves detailed information about a specific artist identified by their unique ID.
Method: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', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);