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

# My Usage

> The calling key's own usage by endpoint.



## OpenAPI

````yaml /openapi.json get /v1/usage
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/usage:
    get:
      tags:
        - meta
      summary: My Usage
      description: The calling key's own usage by endpoint.
      operationId: my_usage_v1_usage_get
      parameters:
        - name: days
          in: query
          required: false
          schema:
            type: number
            maximum: 90
            exclusiveMinimum: 0
            default: 7
            title: Days
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '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'
        '429':
          description: Rate limit or daily quota reached; see Retry-After
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
components:
  schemas:
    UsageResponse:
      properties:
        data:
          $ref: '#/components/schemas/Usage'
      type: object
      required:
        - data
      title: UsageResponse
    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'
    Usage:
      properties:
        prefix:
          type: string
          title: Prefix
        tier:
          type: string
          title: Tier
        limits:
          $ref: '#/components/schemas/TierLimits'
        units_today:
          type: integer
          title: Units Today
        by_endpoint:
          items:
            $ref: '#/components/schemas/EndpointUsage'
          type: array
          title: By Endpoint
      type: object
      required:
        - prefix
        - tier
        - limits
        - units_today
        - by_endpoint
      title: Usage
    TierLimits:
      properties:
        rpm:
          type: integer
          title: Rpm
        daily_units:
          type: integer
          title: Daily Units
        max_page:
          type: integer
          title: Max Page
      type: object
      required:
        - rpm
        - daily_units
        - max_page
      title: TierLimits
    EndpointUsage:
      properties:
        prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Prefix
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        endpoint:
          type: string
          title: Endpoint
        calls:
          type: integer
          title: Calls
        units:
          anyOf:
            - type: integer
            - type: 'null'
          title: Units
        avg_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Avg Ms
        errors:
          anyOf:
            - type: integer
            - type: 'null'
          title: Errors
      type: object
      required:
        - endpoint
        - calls
      title: EndpointUsage
  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.