Skip to main content
GET
/
consumers
/
distribution
cURL
curl --request GET \
  --url https://admin.fanfare.io/api/consumers/distribution \
  --header 'Authorization: Bearer <token>'
{
  "buckets": [
    {
      "maxValue": "<string>",
      "minValue": "<string>",
      "percentage": 123,
      "range": "<string>",
      "value": 123,
      "x": 123
    }
  ],
  "field": "<string>",
  "stats": {
    "max": "<string>",
    "mean": "<string>",
    "median": "<string>",
    "min": "<string>",
    "stdDev": "<string>"
  },
  "totalCount": 123,
  "cachedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Fanfare secret key. Keep secret credentials on your server.

Response

Distribution calculated successfully

buckets
object[]
required
field
string
required
stats
object
required
totalCount
number
required
cachedAt
string<date-time>