> ## Documentation Index
> Fetch the complete documentation index at: https://cs2-data-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Team Stats

> Map record and round win rates by side, per map and overall.



## OpenAPI

````yaml /openapi.json get /v1/teams/{team_id}/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/teams/{team_id}/stats:
    get:
      tags:
        - teams
      summary: Team Stats
      description: Map record and round win rates by side, per map and overall.
      operationId: team_stats_v1_teams__team_id__stats_get
      parameters:
        - name: team_id
          in: path
          required: true
          schema:
            type: integer
            title: Team Id
        - 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: 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_TeamStats_'
        '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_TeamStats_:
      properties:
        data:
          $ref: '#/components/schemas/TeamStats'
        meta:
          $ref: '#/components/schemas/Meta'
      type: object
      required:
        - data
        - meta
      title: One[TeamStats]
    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'
    TeamStats:
      properties:
        games:
          type: integer
          title: Games
        wins:
          type: integer
          title: Wins
        rounds:
          type: integer
          title: Rounds
        round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Round Win Rate
        ct_round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Ct Round Win Rate
        t_round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: T Round Win Rate
        team_id:
          type: integer
          title: Team Id
        maps:
          items:
            $ref: '#/components/schemas/TeamMapRecord'
          type: array
          title: Maps
      type: object
      required:
        - games
        - wins
        - rounds
        - team_id
        - maps
      title: TeamStats
    Meta:
      properties:
        data_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Data Version
      type: object
      title: Meta
    TeamMapRecord:
      properties:
        games:
          type: integer
          title: Games
        wins:
          type: integer
          title: Wins
        rounds:
          type: integer
          title: Rounds
        round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Round Win Rate
        ct_round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Ct Round Win Rate
        t_round_win_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: T Round Win Rate
        map:
          type: string
          title: Map
      type: object
      required:
        - games
        - wins
        - rounds
        - map
      title: TeamMapRecord
  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.