This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Path Parameters
Asset ID
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{id}/stats \
  --header 'Authorization: Bearer <token>'{
  "success": true,
  "message": "<string>",
  "data": {}
}Retrieve statistics for a specific asset.
curl --request GET \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/asset/{id}/stats \
  --header 'Authorization: Bearer <token>'{
  "success": true,
  "message": "<string>",
  "data": {}
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/asset/example-id/stats', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Asset ID