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

# Zmiany w rejestrze (jedna firma)

> Zwraca wykryte zmiany w odpisie KRS dla jednej spółki. Identyfikator (`krs`, `nip` lub `regon`) przekazywany jest w ścieżce. Zmiany pogrupowane są po dniu (`changed_on`) i kategorii (np. Reprezentacja, Wspólnicy, Finanse, Upadłość i restrukturyzacja), a w obrębie kategorii rozbite na `added` / `removed` / `modified` — dzięki czemu np. przekodowanie wielu PKD to jeden blok, a nie kilkanaście osobnych pozycji. Wspiera filtr `category`, zakres dat (`from`, `to`) i paginację (`limit` do 1000, `offset`). 1 zapytanie = 1 jednostka puli **Rejestr firm i osób** (niezależnie od liczby zwróconych zmian).



## OpenAPI

````yaml /openapi.json get /v1/krs/changes/{identifier}
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/krs/changes/{identifier}:
    get:
      tags:
        - KRS
      summary: Zmiany w rejestrze (jedna firma)
      description: >-
        Zwraca wykryte zmiany w odpisie KRS dla jednej spółki. Identyfikator
        (`krs`, `nip` lub `regon`) przekazywany jest w ścieżce. Zmiany
        pogrupowane są po dniu (`changed_on`) i kategorii (np. Reprezentacja,
        Wspólnicy, Finanse, Upadłość i restrukturyzacja), a w obrębie kategorii
        rozbite na `added` / `removed` / `modified` — dzięki czemu np.
        przekodowanie wielu PKD to jeden blok, a nie kilkanaście osobnych
        pozycji. Wspiera filtr `category`, zakres dat (`from`, `to`) i paginację
        (`limit` do 1000, `offset`). 1 zapytanie = 1 jednostka puli **Rejestr
        firm i osób** (niezależnie od liczby zwróconych zmian).
      operationId: krs-changes
      parameters:
        - name: identifier
          in: path
          required: true
          schema:
            type: string
            title: Identifier
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Category
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: From
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: To
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KrsCompanyChangesPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    KrsCompanyChangesPage:
      properties:
        krs:
          type: string
          title: Krs
        company_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Company Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        has_more:
          type: boolean
          title: Has More
        days:
          items:
            $ref: '#/components/schemas/KrsChangeDay'
          type: array
          title: Days
      type: object
      required:
        - krs
        - total
        - limit
        - offset
        - has_more
        - days
      title: KrsCompanyChangesPage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KrsChangeDay:
      properties:
        changed_on:
          type: string
          format: date
          title: Changed On
        categories:
          items:
            $ref: '#/components/schemas/KrsChangeCategoryGroup'
          type: array
          title: Categories
      type: object
      required:
        - changed_on
        - categories
      title: KrsChangeDay
    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
    KrsChangeCategoryGroup:
      properties:
        category:
          type: string
          title: Category
        added:
          anyOf:
            - items:
                $ref: '#/components/schemas/KrsChangeItem'
              type: array
            - type: 'null'
          title: Added
        removed:
          anyOf:
            - items:
                $ref: '#/components/schemas/KrsChangeItem'
              type: array
            - type: 'null'
          title: Removed
        modified:
          anyOf:
            - items:
                $ref: '#/components/schemas/KrsChangeItem'
              type: array
            - type: 'null'
          title: Modified
      type: object
      required:
        - category
      title: KrsChangeCategoryGroup
    KrsChangeItem:
      properties:
        id:
          type: integer
          title: Id
        change_type:
          type: string
          title: Change Type
        label:
          type: string
          title: Label
        entity_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Label
        old_value:
          anyOf:
            - {}
            - type: 'null'
          title: Old Value
        new_value:
          anyOf:
            - {}
            - type: 'null'
          title: New Value
      type: object
      required:
        - id
        - change_type
        - label
      title: KrsChangeItem
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````