> ## 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.

# Get Data

> Rows of any dataset, filtered, with the columns you pick. Same filters, paging and formats on every dataset;
filters a dataset does not accept are a 400 that lists the ones it does.



## OpenAPI

````yaml /openapi.json get /v1/data/{dataset}
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/data/{dataset}:
    get:
      tags:
        - data
      summary: Get Data
      description: >-
        Rows of any dataset, filtered, with the columns you pick. Same filters,
        paging and formats on every dataset;

        filters a dataset does not accept are a 400 that lists the ones it does.
      operationId: get_data_v1_data__dataset__get
      parameters:
        - name: dataset
          in: path
          required: true
          schema:
            type: string
            title: Dataset
        - name: fields
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              comma-separated columns (see /v1/datasets/{name}); key columns are
              always included
            title: Fields
          description: >-
            comma-separated columns (see /v1/datasets/{name}); key columns are
            always included
        - name: preset
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: comma-separated preset names; combine with fields
            title: Preset
          description: comma-separated preset names; combine with fields
        - name: game
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: game id (<game_id> or <match_id>:<map_no>)
            title: Game
          description: game id (<game_id> or <match_id>:<map_no>)
        - name: match
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: HLTV match id
            title: Match
          description: HLTV match id
        - name: round
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 1
              - type: 'null'
            description: round number
            title: Round
          description: round number
        - name: tick_from
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: first tick (inclusive)
            title: Tick From
          description: first tick (inclusive)
        - name: tick_to
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: last tick (inclusive)
            title: Tick To
          description: last tick (inclusive)
        - name: player
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Steam64 id; matches any player column of the dataset
            title: Player
          description: Steam64 id; matches any player column of the dataset
        - name: team
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: HLTV team id; matches any team column of the dataset
            title: Team
          description: HLTV team id; matches any team column of the dataset
        - name: tournament
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: HLTV event id
            title: Tournament
          description: HLTV event id
        - name: side
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(CT|T)$
              - type: 'null'
            description: CT or T
            title: Side
          description: CT or T
        - name: map
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: map name, e.g. mirage (de_ prefix optional)
            title: Map
          description: map name, e.g. mirage (de_ prefix optional)
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: matches starting on or after this date (YYYY-MM-DD)
            title: Since
          description: matches starting on or after this date (YYYY-MM-DD)
        - name: until
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            description: matches starting before this date (YYYY-MM-DD)
            title: Until
          description: matches starting before this date (YYYY-MM-DD)
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 2
              - type: 'null'
            description: name contains (case-insensitive)
            title: Q
          description: name contains (case-insensitive)
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: next_cursor from the previous page
            title: Cursor
          description: next_cursor from the previous page
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            description: page size (tier maximum applies)
            default: 100
            title: Limit
          description: page size (tier maximum applies)
        - name: format
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(json|csv|parquet)$
              - type: 'null'
            description: json (default), csv or parquet
            title: Format
          description: json (default), csv or parquet
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_dict_'
        '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:
    Page_dict_:
      properties:
        data:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Data
        meta:
          $ref: '#/components/schemas/PageMeta'
      type: object
      required:
        - data
        - meta
      title: Page[dict]
    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'
    PageMeta:
      properties:
        data_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Data Version
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        limit:
          type: integer
          title: Limit
      type: object
      required:
        - limit
      title: PageMeta
  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.