> ## Documentation Index
> Fetch the complete documentation index at: https://docs.granuleux.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Player Stats

> Totals and rates over the player's rounds, filtered. KAST counts assists only where assists are known.



## OpenAPI

````yaml /openapi.json get /v1/players/{steamid}/stats
openapi: 3.1.0
info:
  title: Granuleux
  description: >-
    Pro CS2 match data: matches, rounds, kills, per-hit damage, grenades, bomb
    events, sub-second player state and tick-level parquet downloads. Guides:
    see the docs site.
  version: 1.0.0
servers:
  - url: https://api.granuleux.com
security:
  - bearerAuth: []
paths:
  /v1/players/{steamid}/stats:
    get:
      tags:
        - players
      summary: Player Stats
      description: >-
        Totals and rates over the player's rounds, filtered. KAST counts assists
        only where assists are known.
      operationId: player_stats_v1_players__steamid__stats_get
      parameters:
        - name: steamid
          in: path
          required: true
          schema:
            type: string
            title: Steamid
        - name: map
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Map
        - name: tournament_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Tournament Id
        - name: date_from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Date From
        - name: date_to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: Date To
        - name: side
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(CT|T)$
              - type: 'null'
            title: Side
        - name: include_incomplete
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Include Incomplete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/One_PlayerStats_'
        '400':
          description: Bad or unknown parameter
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '401':
          description: Missing or invalid key
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Rate limit or daily quota reached; see Retry-After
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    One_PlayerStats_:
      properties:
        data:
          $ref: '#/components/schemas/PlayerStats'
        meta:
          $ref: '#/components/schemas/Meta'
      type: object
      required:
        - data
        - meta
      title: One[PlayerStats]
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          example: about:blank
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          anyOf:
            - type: string
            - type: 'null'
    PlayerStats:
      properties:
        steamid:
          type: string
          title: Steamid
        games:
          type: integer
          title: Games
        rounds:
          type: integer
          title: Rounds
        kills:
          anyOf:
            - type: integer
            - type: 'null'
          title: Kills
        deaths:
          anyOf:
            - type: integer
            - type: 'null'
          title: Deaths
        assists:
          anyOf:
            - type: integer
            - type: 'null'
          title: Assists
        kd:
          anyOf:
            - type: number
            - type: 'null'
          title: Kd
        adr:
          anyOf:
            - type: number
            - type: 'null'
          title: Adr
        hs_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Hs Pct
        kast:
          anyOf:
            - type: number
            - type: 'null'
          title: Kast
        first_kills:
          anyOf:
            - type: integer
            - type: 'null'
          title: First Kills
        first_deaths:
          anyOf:
            - type: integer
            - type: 'null'
          title: First Deaths
        survival:
          anyOf:
            - type: number
            - type: 'null'
          title: Survival
        util_damage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Util Damage
        flash_assists:
          anyOf:
            - type: integer
            - type: 'null'
          title: Flash Assists
      type: object
      required:
        - steamid
        - games
        - rounds
      title: PlayerStats
    Meta:
      properties:
        data_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Data Version
      type: object
      title: Meta
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `Authorization: Bearer <key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.