Game

Get a roster for a gameplay role

Returns the firearms best suited to a gameplay role, scored against that role weighting of the game stats.

Requires Builder tier or higher.

get/v1/game/role-roster

Request

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

Query parameters

role'sniper' | 'assault' | 'tank' | 'support' | 'stealth' | 'speedster' required

Gameplay role

countinteger

How many to return

Response

Get a roster for a gameplay role

successboolean required

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

Example response

{
  "success": true,
  "data": [
    {
      "id": "m4a1",
      "name": "M4A1",
      "roleScore": 78.2,
      "stats": {
        "damage": 72,
        "accuracy": 64,
        "range": 58,
        "fireRate": 70,
        "mobility": 55,
        "recoilControl": 48,
        "reloadSpeed": 60,
        "concealment": 30
      }
    }
  ]
}

Changes

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