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

# Company holdings

## Retrieve the holdings of a company

Get a list of companies that this company owns or has stakes in. This endpoint reveals a company's investment portfolio and subsidiary structure, showing which other companies it controls or has invested in. Use this to map corporate groups and understand investment strategies.

**Cost:** 10 credits


## OpenAPI

````yaml GET /v1/company/{company_id}/holdings
openapi: 3.1.0
info:
  title: OpenRegister API
  version: 2.5.0
  description: >
    API for accessing comprehensive company data from official registers.

    This API provides access to company information, shareholder data, financial
    reports, and contact details.
servers:
  - url: https://api.openregister.de
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/company/{company_id}/holdings:
    get:
      tags:
        - v1
      summary: Get company holdings
      operationId: getHoldings
      parameters:
        - name: company_id
          in: path
          required: true
          description: |
            Unique company identifier.
            Example: DE-HRB-F1103-267645
          schema:
            type: string
      responses:
        '200':
          description: The holdings of the company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyHoldings'
        '400':
          description: Bad Request - Invalid parameters provided
        '401':
          description: Unauthorized - Authentication required
        '402':
          description: Payment Required - Insufficient credits for this request
        '429':
          description: Too Many Requests - Rate limit exceeded
        '500':
          description: >-
            Internal Server Error - An error occurred while processing the
            request
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Openregister from 'openregister';

            const client = new Openregister({
              apiKey: process.env['OPENREGISTER_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.company.getHoldingsV1('company_id');

            console.log(response.company_id);
        - lang: Python
          source: |-
            import os
            from openregister import Openregister

            client = Openregister(
                api_key=os.environ.get("OPENREGISTER_API_KEY"),  # This is the default and can be omitted
            )
            response = client.company.get_holdings_v1(
                "company_id",
            )
            print(response.company_id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/oregister/openregister-go\"\n\t\"github.com/oregister/openregister-go/option\"\n)\n\nfunc main() {\n\tclient := openregister.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tresponse, err := client.Company.GetHoldingsV1(context.TODO(), \"company_id\")\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", response.CompanyID)\n}\n"
        - lang: CLI
          source: |-
            openregister company get-holdings-v1 \
              --api-key 'My API Key' \
              --company-id company_id
components:
  schemas:
    CompanyHoldings:
      type: object
      description: |
        Companies this entity owns or has invested in.
      properties:
        company_id:
          type: string
          description: |
            Unique company identifier.
            Example: DE-HRB-F1103-267645
        holdings:
          type: array
          items:
            $ref: '#/components/schemas/CompanyHoldingItem'
      required:
        - company_id
        - holdings
    CompanyHoldingItem:
      type: object
      properties:
        company_id:
          type: string
          description: |
            Unique company identifier.
            Example: DE-HRB-F1103-267645
        relation_type:
          $ref: '#/components/schemas/CompanyRelationType'
          description: |
            Type of relationship between the entity and the company.
        name:
          type: string
          description: |
            Name of the company.
        nominal_share:
          type: number
          description: |
            Amount of shares or capital in the company.
            Example: 100
          format: double
        percentage_share:
          type: number
          description: |
            Share of the company.
            Example: 0.5 represents 50% ownership
          format: double
          nullable: true
        start:
          type: string
          format: date
          description: |
            Date when the ownership started.
            Format: ISO 8601 (YYYY-MM-DD)
            Example: "2022-01-01"
          nullable: true
        end:
          type: string
          format: date
          description: |
            Date when the ownership ended.
            Format: ISO 8601 (YYYY-MM-DD)
            Example: "2022-01-01"
          nullable: true
      required:
        - company_id
        - relation_type
        - name
        - nominal_share
        - percentage_share
        - start
        - end
    CompanyRelationType:
      type: string
      enum:
        - shareholder
        - stockholder
        - limited_partner
        - general_partner
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        API Key Authentication
        Provide your API key as a Bearer token in the Authorization header.

````