Game

Get the distribution of one game stat

Returns mean, median, standard deviation, percentiles, and a histogram for a single game stat across the catalog.

Requires Studio tier or higher.

get/v1/game/stat-distribution

Request

  • Base URL: https://api.gunspec.io
  • URL: https://api.gunspec.io/v1/game/stat-distribution
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Query parameters

stat'damage' | 'accuracy' | 'range' | 'fireRate' | 'mobility' | 'recoilControl' | 'reloadSpeed' | 'concealment' required

Which stat to profile

Response

Get the distribution of one game stat

successboolean required

Always true on a successful response. Every error carries false and an error object instead.

Example response

{
  "success": true,
  "data": {
    "stat": "damage",
    "count": 842,
    "mean": 54.31,
    "median": 55,
    "stdDev": 17.62,
    "min": 8,
    "max": 98,
    "percentiles": {
      "p10": 30,
      "p25": 42,
      "p50": 55,
      "p75": 67,
      "p90": 78
    },
    "histogram": [
      {
        "bucket": "50-60",
        "count": 184
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.