Skip to main content
GET
/
asset
/
{id}
/
stats
Get asset statistics
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": {}
}
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/asset/example-id/stats', {
  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<uuid>
required

Asset ID

Response

Asset statistics retrieved successfully

success
boolean
Example:

true

message
string
data
object