GunSpec

GameStats

Resource class for interacting with the GunSpec Game Stats Snapshots API. Wraps all /v1/game-stats endpoints. Instantiated internally by the GunSpec client and exposed as client.gameStats.

Authentifizierung erforderlichBuilder+

Get a single firearm's game stats from a specific snapshot version.

getFirearm(version: string, id: string): Promise<APIResponse<GameStatsSnapshotEntry>>
GET/v1/game-stats/versions/{version}/firearms/{id}

  • stringHeadererforderlich

    Ihr API-Schlüssel. Authorization: Bearer <key> wird ebenfalls akzeptiert.

  • stringerforderlich

    Snapshot version

    Akzeptiert
    matching ^[a-z0-9][a-z0-9.\-]*$
    Beispiel
  • stringerforderlich

    Firearm slug

    Akzeptiert
    a lowercase slug: letters, digits and hyphens
    Beispiel

  • GameStatsSnapshotEntry

    The response payload

  • string

    Slug of the firearm this row is about.

  • string

    Display name at the time the snapshot was taken.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • integer | null

    Editorial game statistic as it stood in this snapshot, 0-100.

  • 400VALIDATION_ERRORValidation error
  • 401UNAUTHORIZEDAPI key required
  • 403FORBIDDENValid key, not permitted
  • 404NOT_FOUNDResource not found
  • 429RATE_LIMITEDRate limit exceeded
  • 500INTERNAL_ERRORUnexpected server error

Mindeststufe
Builder+
Monatskontingent
25,000/mo
Anfragerate
60/min
Tageslimit
2,000

Die Werte gelten für die Mindeststufe dieses Endpunkts. Höhere Stufen erhöhen alle Limits.