GET
/
api
/
v1
/
realms
/
{realmId}
/
currencies
/
{currencyId}
/
analytics
Get Specific Points Analytics
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
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

currencyId
string
required

Query Parameters

period
enum<string>
default:30d

Time period for analytics data

Available options:
7d,
30d,
90d,
1y
includeTopHolders
boolean
default:false

Include top holders data in response

topHoldersLimit
number
default:10

Number of top holders to return

Required range: 1 <= x <= 100

Response

200
application/json

Default Response

The response is of type object.