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

# /krs/companies

> Get Polish company details by KRS registration number

**Price:** 20 credits

**⚠️ Common errors:** 412: KRS number not found in the selected register



## OpenAPI

````yaml /openapi/company-registries.json post /api/krs/companies
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/krs/companies:
    post:
      tags:
        - /krs
      summary: /krs/companies
      description: |-
        Get Polish company details by KRS registration number

        **Price:** 20 credits

        **⚠️ Common errors:** 412: KRS number not found in the selected register
      operationId: __api_krs_companies_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KrsCompanyPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KrsCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    KrsCompanyPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        krs:
          type: string
        register:
          $ref: '#/components/schemas/KrsRegister'
          default: P
      type: object
      required:
        - krs
    KrsCompany:
      properties:
        '@type':
          type: string
          default: KrsCompany
        id:
          type: string
        name:
          type: string
        register_type:
          anyOf:
            - type: string
            - type: 'null'
        legal_form:
          anyOf:
            - type: string
            - type: 'null'
        regon:
          anyOf:
            - type: string
            - type: 'null'
        nip:
          anyOf:
            - type: string
            - type: 'null'
        is_opp:
          anyOf:
            - type: boolean
            - type: 'null'
        registered_at:
          anyOf:
            - type: string
            - type: 'null'
        last_entry_at:
          anyOf:
            - type: string
            - type: 'null'
        state_as_of:
          anyOf:
            - type: string
            - type: 'null'
        registered_office_address:
          anyOf:
            - $ref: '#/components/schemas/KrsAddress'
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        website:
          anyOf:
            - type: string
            - type: 'null'
        share_capital:
          anyOf:
            - $ref: '#/components/schemas/KrsMoney'
            - type: 'null'
        paid_capital:
          anyOf:
            - $ref: '#/components/schemas/KrsMoney'
            - type: 'null'
        purpose:
          anyOf:
            - type: string
            - type: 'null'
        activities:
          items:
            $ref: '#/components/schemas/KrsActivity'
          type: array
        representation:
          anyOf:
            - $ref: '#/components/schemas/KrsRepresentation'
            - type: 'null'
        supervisory_bodies:
          items:
            $ref: '#/components/schemas/KrsSupervisoryBody'
          type: array
        proxies:
          items:
            $ref: '#/components/schemas/KrsOfficer'
          type: array
      type: object
      required:
        - id
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    KrsRegister:
      type: string
      enum:
        - P
        - S
    KrsAddress:
      properties:
        '@type':
          type: string
          default: KrsAddress
        country:
          anyOf:
            - type: string
            - type: 'null'
        voivodeship:
          anyOf:
            - type: string
            - type: 'null'
        county:
          anyOf:
            - type: string
            - type: 'null'
        commune:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        street:
          anyOf:
            - type: string
            - type: 'null'
        building_number:
          anyOf:
            - type: string
            - type: 'null'
        apartment_number:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        post_office:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    KrsMoney:
      properties:
        '@type':
          type: string
          default: KrsMoney
        value:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    KrsActivity:
      properties:
        '@type':
          type: string
          default: KrsActivity
        pkd_code:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    KrsRepresentation:
      properties:
        '@type':
          type: string
          default: KrsRepresentation
        organ_name:
          anyOf:
            - type: string
            - type: 'null'
        representation_method:
          anyOf:
            - type: string
            - type: 'null'
        members:
          items:
            $ref: '#/components/schemas/KrsOfficer'
          type: array
      type: object
    KrsSupervisoryBody:
      properties:
        '@type':
          type: string
          default: KrsSupervisoryBody
        name:
          anyOf:
            - type: string
            - type: 'null'
        members:
          items:
            $ref: '#/components/schemas/KrsOfficer'
          type: array
      type: object
    KrsOfficer:
      properties:
        '@type':
          type: string
          default: KrsOfficer
        name:
          anyOf:
            - type: string
            - type: 'null'
        role:
          anyOf:
            - type: string
            - type: 'null'
        proxy_type:
          anyOf:
            - type: string
            - type: 'null'
        is_suspended:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````