curl --request GET \
--url https://api.royalti.io/product/{id}/stats \
--header 'Authorization: Bearer <token>'{
"totalRoyalties": 5000.75,
"totalPaid": 3000,
"totalDue": 2000.75,
"totalStreams": 50000,
"totalSales": 1500,
"assetCount": 12
}/product//stats
curl --request GET \
--url https://api.royalti.io/product/{id}/stats \
--header 'Authorization: Bearer <token>'{
"totalRoyalties": 5000.75,
"totalPaid": 3000,
"totalDue": 2000.75,
"totalStreams": 50000,
"totalSales": 1500,
"assetCount": 12
}/product/{id}/stats endpoint retrieves statistical information for a specific product.
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/stats', {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);