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

# Szczegółowe zużycie per endpoint

> Rozbicie zużycia w bieżącym okresie rozliczeniowym na endpointy: liczba wywołań i jednostek per ścieżka (identyfikatory w ścieżkach agregowane do `{id}`).



## OpenAPI

````yaml /openapi.json get /v1/usage/breakdown
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, BZP, RDF, KNF, UOKiK, SUDOP,

    biała lista VAT) w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API w nagłówku `x-api-key`. Płatne
    endpointy zużywają jednostki

    z jednej puli; koszt każdego z nich podany jest w jego opisie, a zasady w
    sekcji Rozliczanie.

    Bieżący stan puli zwraca `GET /v1/usage/api`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/usage/breakdown:
    get:
      tags:
        - Usage
      summary: Szczegółowe zużycie per endpoint
      description: >-
        Rozbicie zużycia w bieżącym okresie rozliczeniowym na endpointy: liczba
        wywołań i jednostek per ścieżka (identyfikatory w ścieżkach agregowane
        do `{id}`).
      operationId: usage-breakdown
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageBreakdown'
      security:
        - APIKeyHeader: []
components:
  schemas:
    UsageBreakdown:
      properties:
        period_start:
          type: string
          format: date-time
          title: Period Start
        period_end:
          type: string
          format: date-time
          title: Period End
        rows:
          items:
            $ref: '#/components/schemas/UsageBreakdownRow'
          type: array
          title: Rows
      type: object
      required:
        - period_start
        - period_end
        - rows
      title: UsageBreakdown
    UsageBreakdownRow:
      properties:
        endpoint:
          type: string
          title: Endpoint
        event_type:
          type: string
          title: Event Type
        requests:
          type: integer
          title: Requests
        units:
          type: integer
          title: Units
      type: object
      required:
        - endpoint
        - event_type
        - requests
        - units
      title: UsageBreakdownRow
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````