API Reference
Complete API documentation and reference
Get analytics for a specific points system
cURL
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": "<string>", "pointsEarned": 123, "pointsSpent": 123, "newHolders": 123 } ], "topHolders": [ { "userId": "<string>", "username": "<string>", "balance": 123, "rank": 123 } ] } }
API Key
Time period for analytics
7d
30d
90d
1y
Include top holders in the response
Number of top holders to include
1 <= x <= 100
Default Response
The response is of type object.
object
Was this page helpful?