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

# Pobieranie wielu rekordów

> Zwraca wiele osób fizycznych jednym wywołaniem. Parametry `id`, `pesel` można przekazać wielokrotnie — łącznie do 50 identyfikatorów. Każdy zwrócony rekord = 1 jednostka puli **Rejestr firm i osób**.



## OpenAPI

````yaml /openapi.json get /v1/persons/records
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/persons/records:
    get:
      tags:
        - Persons
      summary: Pobieranie wielu rekordów
      description: >-
        Zwraca wiele osób fizycznych jednym wywołaniem. Parametry `id`, `pesel`
        można przekazać wielokrotnie — łącznie do 50 identyfikatorów. Każdy
        zwrócony rekord = 1 jednostka puli **Rejestr firm i osób**.
      operationId: persons-records
      parameters:
        - name: id
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  format: uuid
              - type: 'null'
            title: Id
        - name: pesel
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  pattern: ^\d{11}$
              - type: 'null'
            title: Pesel
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PersonDetail'
                title: Response Persons-Records
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PersonDetail:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        birth_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Birth Date
        pesel:
          anyOf:
            - type: string
            - type: 'null'
          title: Pesel
        nationalities:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Nationalities
        residence_country:
          anyOf:
            - type: string
            - type: 'null'
          title: Residence Country
        summary:
          $ref: '#/components/schemas/PersonSummary'
        companies:
          items:
            $ref: '#/components/schemas/PersonCompanyStub'
          type: array
          title: Companies
        companies_total:
          type: integer
          title: Companies Total
        metadata:
          $ref: '#/components/schemas/Metadata'
      type: object
      required:
        - id
        - name
        - summary
        - companies
        - companies_total
        - metadata
      title: PersonDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PersonSummary:
      properties:
        krs_active_roles:
          type: integer
          title: Krs Active Roles
        crbr_ubo_in:
          type: integer
          title: Crbr Ubo In
        krz_records:
          type: integer
          title: Krz Records
      type: object
      required:
        - krs_active_roles
        - crbr_ubo_in
        - krz_records
      title: PersonSummary
    PersonCompanyStub:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Krs
        name:
          type: string
          title: Name
        roles:
          items:
            $ref: '#/components/schemas/PersonRole'
          type: array
          title: Roles
      type: object
      required:
        - id
        - name
        - roles
      title: PersonCompanyStub
    Metadata:
      properties:
        first_seen:
          type: string
          format: date-time
          title: First Seen
        last_updated:
          type: string
          format: date-time
          title: Last Updated
        source_updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Source Updated At
      type: object
      required:
        - first_seen
        - last_updated
      title: Metadata
    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
    PersonRole:
      properties:
        source:
          type: string
          title: Source
        type:
          type: string
          title: Type
        position:
          anyOf:
            - type: string
            - type: 'null'
          title: Position
      type: object
      required:
        - source
        - type
      title: PersonRole
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````