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

# Dane finansowe ze sprawozdań

> Zwraca znormalizowane dane finansowe sparsowane z rocznych sprawozdań (e-Sprawozdania XML): przychody, koszty, EBIT, EBITDA, zysk netto, podatek, bilans (aktywa, kapitał własny, zobowiązania) — bieżący i poprzedni rok obrotowy, w złotych. Domyślnie jedna pozycja na okres (korekty zwinięte do najnowszej wersji, latest_only=false pokazuje historię). Parametr positions=true dołącza pełną, spłaszczoną strukturę sprawozdania (wszystkie pozycje bilansu i RZiS). Wiersze zawierają flagi spójności (suma bilansowa, zgodność zysku netto RZiS z bilansem).



## OpenAPI

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

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, biała lista VAT)

    w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API przekazywany w nagłówku
    `x-api-key`.

    Limity zapytań oraz dzienne pule (PDF, WPV, raporty) wynikają z wybranego
    abonamentu —

    szczegóły zwraca endpoint `GET /v1/usage/summary`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/rdf/financials:
    get:
      tags:
        - RDF
      summary: Dane finansowe ze sprawozdań
      description: >-
        Zwraca znormalizowane dane finansowe sparsowane z rocznych sprawozdań
        (e-Sprawozdania XML): przychody, koszty, EBIT, EBITDA, zysk netto,
        podatek, bilans (aktywa, kapitał własny, zobowiązania) — bieżący i
        poprzedni rok obrotowy, w złotych. Domyślnie jedna pozycja na okres
        (korekty zwinięte do najnowszej wersji, latest_only=false pokazuje
        historię). Parametr positions=true dołącza pełną, spłaszczoną strukturę
        sprawozdania (wszystkie pozycje bilansu i RZiS). Wiersze zawierają flagi
        spójności (suma bilansowa, zgodność zysku netto RZiS z bilansem).
      operationId: rdf-financials
      parameters:
        - name: krs
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^\d{10}$
              - type: 'null'
            title: Krs
        - name: nip
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^\d{10}$
              - type: 'null'
            title: Nip
        - name: regon
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(\d{9}|\d{14})$
              - type: 'null'
            title: Regon
        - name: id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Id
        - name: year
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 2100
                minimum: 1990
              - type: 'null'
            description: Filter by period_end year
            title: Year
          description: Filter by period_end year
        - name: latest_only
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              One row per period (corrections collapsed to the newest, entity
              over consolidated)
            default: true
            title: Latest Only
          description: >-
            One row per period (corrections collapsed to the newest, entity over
            consolidated)
        - name: positions
          in: query
          required: false
          schema:
            type: boolean
            description: Include the full flattened statement positions
            default: false
            title: Positions
          description: Include the full flattened statement positions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RdfFinancials'
                title: Response Rdf-Financials
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    RdfFinancials:
      properties:
        document_id:
          type: integer
          title: Document Id
        krs:
          type: string
          title: Krs
        schema:
          $ref: '#/components/schemas/RdfSchemaInfo'
        period_start:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Period Start
        period_end:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Period End
        prepared_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Prepared Date
        metrics:
          $ref: '#/components/schemas/RdfMetrics'
        checks:
          $ref: '#/components/schemas/RdfChecks'
        positions:
          anyOf:
            - additionalProperties:
                items:
                  anyOf:
                    - type: number
                    - type: 'null'
                type: array
              type: object
            - type: 'null'
          title: Positions
      type: object
      required:
        - document_id
        - krs
        - schema
        - metrics
        - checks
      title: RdfFinancials
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RdfSchemaInfo:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
        rzis_variant:
          anyOf:
            - type: string
            - type: 'null'
          title: Rzis Variant
        bilans_scheme:
          anyOf:
            - type: string
            - type: 'null'
          title: Bilans Scheme
        rzis_scheme:
          anyOf:
            - type: string
            - type: 'null'
          title: Rzis Scheme
      type: object
      title: RdfSchemaInfo
    RdfMetrics:
      properties:
        revenue:
          anyOf:
            - type: number
            - type: 'null'
          title: Revenue
        revenue_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Revenue Prior
        operating_costs:
          anyOf:
            - type: number
            - type: 'null'
          title: Operating Costs
        operating_costs_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Operating Costs Prior
        operating_profit:
          anyOf:
            - type: number
            - type: 'null'
          title: Operating Profit
        operating_profit_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Operating Profit Prior
        gross_profit:
          anyOf:
            - type: number
            - type: 'null'
          title: Gross Profit
        gross_profit_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Gross Profit Prior
        net_profit:
          anyOf:
            - type: number
            - type: 'null'
          title: Net Profit
        net_profit_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Net Profit Prior
        income_tax:
          anyOf:
            - type: number
            - type: 'null'
          title: Income Tax
        income_tax_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Income Tax Prior
        amortization:
          anyOf:
            - type: number
            - type: 'null'
          title: Amortization
        amortization_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Amortization Prior
        ebitda:
          anyOf:
            - type: number
            - type: 'null'
          title: Ebitda
        ebitda_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Ebitda Prior
        financial_income:
          anyOf:
            - type: number
            - type: 'null'
          title: Financial Income
        financial_income_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Financial Income Prior
        financial_costs:
          anyOf:
            - type: number
            - type: 'null'
          title: Financial Costs
        financial_costs_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Financial Costs Prior
        total_assets:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Assets
        total_assets_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Assets Prior
        fixed_assets:
          anyOf:
            - type: number
            - type: 'null'
          title: Fixed Assets
        fixed_assets_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Fixed Assets Prior
        current_assets:
          anyOf:
            - type: number
            - type: 'null'
          title: Current Assets
        current_assets_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Current Assets Prior
        inventory:
          anyOf:
            - type: number
            - type: 'null'
          title: Inventory
        inventory_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Inventory Prior
        receivables_short:
          anyOf:
            - type: number
            - type: 'null'
          title: Receivables Short
        receivables_short_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Receivables Short Prior
        cash:
          anyOf:
            - type: number
            - type: 'null'
          title: Cash
        cash_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Cash Prior
        equity:
          anyOf:
            - type: number
            - type: 'null'
          title: Equity
        equity_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Equity Prior
        share_capital:
          anyOf:
            - type: number
            - type: 'null'
          title: Share Capital
        share_capital_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Share Capital Prior
        provisions:
          anyOf:
            - type: number
            - type: 'null'
          title: Provisions
        provisions_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Provisions Prior
        liabilities_long:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Long
        liabilities_long_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Long Prior
        liabilities_short:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Short
        liabilities_short_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Short Prior
        liabilities_provisions:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Provisions
        liabilities_provisions_prior:
          anyOf:
            - type: number
            - type: 'null'
          title: Liabilities Provisions Prior
      type: object
      title: RdfMetrics
    RdfChecks:
      properties:
        balance_ok:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Balance Ok
        net_profit_ok:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Net Profit Ok
      type: object
      title: RdfChecks
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````