curl --request GET \
--url https://api.drip.re/api/v1/realms/{realmId}/currencies/{currencyId}/analytics \
--header 'Authorization: Bearer <token>'
{
"data": {
"pointsSystemId": "<string>",
"pointsSystemName": "<string>",
"totalHolders": 123,
"totalPointsEarned": 123,
"totalPointsSpent": 123,
"averageBalance": 123,
"last30DaysActivity": {
"pointsEarned": 123,
"pointsSpent": 123,
"newHolders": 123,
"transactionCount": 123
},
"distribution": {
"topPercentileHolders": 123,
"medianBalance": 123,
"averageBalance": 123
},
"recentActivity": [
{
"date": "2023-12-25",
"pointsEarned": 123,
"pointsSpent": 123,
"newHolders": 123
}
],
"topHolders": [
{
"userId": "<string>",
"username": "<string>",
"balance": 123,
"rank": 123
}
]
}
}
Get analytics data for a specific points system
curl --request GET \
--url https://api.drip.re/api/v1/realms/{realmId}/currencies/{currencyId}/analytics \
--header 'Authorization: Bearer <token>'
{
"data": {
"pointsSystemId": "<string>",
"pointsSystemName": "<string>",
"totalHolders": 123,
"totalPointsEarned": 123,
"totalPointsSpent": 123,
"averageBalance": 123,
"last30DaysActivity": {
"pointsEarned": 123,
"pointsSpent": 123,
"newHolders": 123,
"transactionCount": 123
},
"distribution": {
"topPercentileHolders": 123,
"medianBalance": 123,
"averageBalance": 123
},
"recentActivity": [
{
"date": "2023-12-25",
"pointsEarned": 123,
"pointsSpent": 123,
"newHolders": 123
}
],
"topHolders": [
{
"userId": "<string>",
"username": "<string>",
"balance": 123,
"rank": 123
}
]
}
}
API Key
Time period for analytics data
7d
, 30d
, 90d
, 1y
Include top holders data in response
Number of top holders to return
1 <= x <= 100
Default Response
The response is of type object
.
Was this page helpful?