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

# Przyrostowy feed zdarzeń

> Lekki, przyrostowy feed nowych zdarzeń monitorów posortowany rosnąco po ID. Parametr `since` służy do odpytywania o nowości; w odpowiedzi pole `next_since` wskazuje punkt do dalszego pollingu.



## OpenAPI

````yaml /openapi.json get /v1/updates
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/updates:
    get:
      tags:
        - Updates
      summary: Przyrostowy feed zdarzeń
      description: >-
        Lekki, przyrostowy feed nowych zdarzeń monitorów posortowany rosnąco po
        ID. Parametr `since` służy do odpytywania o nowości; w odpowiedzi pole
        `next_since` wskazuje punkt do dalszego pollingu.
      operationId: updates
      parameters:
        - name: since
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Since
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 100
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatesPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    UpdatesPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/UpdateRow'
          type: array
          title: Items
        next_since:
          anyOf:
            - type: integer
            - type: 'null'
          title: Next Since
      type: object
      required:
        - items
      title: UpdatesPage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UpdateRow:
      properties:
        id:
          type: integer
          title: Id
        monitor_id:
          type: string
          title: Monitor Id
        source:
          type: string
          title: Source
        announcement_id:
          type: string
          title: Announcement Id
        identifier_type:
          type: string
          title: Identifier Type
        identifier_value:
          type: string
          title: Identifier Value
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - monitor_id
        - source
        - announcement_id
        - identifier_type
        - identifier_value
        - created_at
      title: UpdateRow
    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

````