curl --request GET \
--url https://api.royalti.io/product/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Product retrieved successfully",
"product": {
"id": "77339e1c-f962-447c-bf13-8fc047d4f8d2",
"upc": "AB12fdfdg348vvfv67890ff",
"title": "Mavins sabi girl",
"displayArtist": "arya star",
"mainArtist": [
"arya star"
],
"type": "Audio",
"format": "Single",
"releaseDate": "2022-02-01",
"mainGenre": [
"Pop"
],
"subGenre": [
"Electronic"
],
"label": "Example Label",
"status": "Live",
"distribution": "Example Distribution",
"externalId": "product-external-123"
}
}/product/
curl --request GET \
--url https://api.royalti.io/product/{id} \
--header 'Authorization: Bearer <token>'{
"message": "Product retrieved successfully",
"product": {
"id": "77339e1c-f962-447c-bf13-8fc047d4f8d2",
"upc": "AB12fdfdg348vvfv67890ff",
"title": "Mavins sabi girl",
"displayArtist": "arya star",
"mainArtist": [
"arya star"
],
"type": "Audio",
"format": "Single",
"releaseDate": "2022-02-01",
"mainGenre": [
"Pop"
],
"subGenre": [
"Electronic"
],
"label": "Example Label",
"status": "Live",
"distribution": "Example Distribution",
"externalId": "product-external-123"
}
}/product/{id} endpoint retrieves detailed information about a specific product identified by its unique ID.
Method:GET
Path Parameter:
| Parameter | Type | Description |
|---|---|---|
| id | string | The unique identifier of the product. |
const response = await fetch('https://api.royalti.io/product/example-id', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);