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

# /casebook/companies

> Get a Russian company or sole proprietor by INN, OGRN or OGRNIP: name, full legal name, status, INN/OGRN/KPP/OKPO, registration date, address, charter capital, primary activity (OKVED), director and management, founders, shareholders, current arbitration-case load (as plaintiff/respondent), enforcement-proceedings totals, latest financial figures and similar companies.

**Price:** 5 credits

**⚠️ Common errors:** 412: Company not found (well-formed INN/OGRN but no matching record in the registry)



## OpenAPI

````yaml /openapi/company-registries.json post /api/casebook/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/casebook/companies:
    post:
      tags:
        - /casebook
      summary: /casebook/companies
      description: >-
        Get a Russian company or sole proprietor by INN, OGRN or OGRNIP: name,
        full legal name, status, INN/OGRN/KPP/OKPO, registration date, address,
        charter capital, primary activity (OKVED), director and management,
        founders, shareholders, current arbitration-case load (as
        plaintiff/respondent), enforcement-proceedings totals, latest financial
        figures and similar companies.


        **Price:** 5 credits


        **⚠️ Common errors:** 412: Company not found (well-formed INN/OGRN but
        no matching record in the registry)
      operationId: __api_casebook_companies_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CasebookCompaniesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CasebookCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CasebookCompaniesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        company:
          type: string
          minLength: 1
      type: object
      required:
        - company
    CasebookCompany:
      properties:
        '@type':
          type: string
          default: CasebookCompany
        id:
          type: string
        company_url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        short_name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        ogrn:
          anyOf:
            - type: string
            - type: 'null'
        kpp:
          anyOf:
            - type: string
            - type: 'null'
        okpo:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        status_at:
          anyOf:
            - type: string
            - type: 'null'
        is_individual:
          anyOf:
            - type: boolean
            - type: 'null'
        registered_at:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        charter_capital:
          anyOf:
            - type: number
            - type: 'null'
        main_activity_code:
          anyOf:
            - type: string
            - type: 'null'
        main_activity:
          anyOf:
            - type: string
            - type: 'null'
        activity_count:
          anyOf:
            - type: integer
            - type: 'null'
        branch_count:
          anyOf:
            - type: integer
            - type: 'null'
        predecessor_count:
          anyOf:
            - type: integer
            - type: 'null'
        successor_count:
          anyOf:
            - type: integer
            - type: 'null'
        phones:
          items:
            type: string
          type: array
          default: []
        director:
          anyOf:
            - $ref: '#/components/schemas/CasebookPerson'
            - type: 'null'
        chiefs:
          items:
            $ref: '#/components/schemas/CasebookPerson'
          type: array
          default: []
        founders:
          items:
            $ref: '#/components/schemas/CasebookFounder'
          type: array
          default: []
        shareholders:
          items:
            $ref: '#/components/schemas/CasebookShareholder'
          type: array
          default: []
        arbitration_stats:
          anyOf:
            - $ref: '#/components/schemas/CasebookArbitrationStats'
            - type: 'null'
        enforcement_stats:
          anyOf:
            - $ref: '#/components/schemas/CasebookEnforcementStats'
            - type: 'null'
        financials:
          anyOf:
            - $ref: '#/components/schemas/CasebookFinancials'
            - type: 'null'
        similar_companies:
          items:
            $ref: '#/components/schemas/CasebookSimilarCompany'
          type: array
          default: []
      type: object
      required:
        - id
        - company_url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    CasebookPerson:
      properties:
        '@type':
          type: string
          default: CasebookPerson
        name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        post:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    CasebookFounder:
      properties:
        '@type':
          type: string
          default: CasebookFounder
        name:
          anyOf:
            - type: string
            - type: 'null'
        short_name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        ogrn:
          anyOf:
            - type: string
            - type: 'null'
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
    CasebookShareholder:
      properties:
        '@type':
          type: string
          default: CasebookShareholder
        name:
          anyOf:
            - type: string
            - type: 'null'
        short_name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        ogrn:
          anyOf:
            - type: string
            - type: 'null'
        holder_type:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    CasebookArbitrationStats:
      properties:
        '@type':
          type: string
          default: CasebookArbitrationStats
        plaintiff_case_count:
          anyOf:
            - type: integer
            - type: 'null'
        plaintiff_percent:
          anyOf:
            - type: number
            - type: 'null'
        respondent_case_count:
          anyOf:
            - type: integer
            - type: 'null'
        respondent_percent:
          anyOf:
            - type: number
            - type: 'null'
        total_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    CasebookEnforcementStats:
      properties:
        '@type':
          type: string
          default: CasebookEnforcementStats
        current_count:
          anyOf:
            - type: integer
            - type: 'null'
        current_sum:
          anyOf:
            - type: number
            - type: 'null'
        completed_count:
          anyOf:
            - type: integer
            - type: 'null'
        completed_sum:
          anyOf:
            - type: number
            - type: 'null'
        total_count:
          anyOf:
            - type: integer
            - type: 'null'
        total_sum:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    CasebookFinancials:
      properties:
        '@type':
          type: string
          default: CasebookFinancials
        year:
          anyOf:
            - type: integer
            - type: 'null'
        revenue:
          anyOf:
            - type: number
            - type: 'null'
        profit:
          anyOf:
            - type: number
            - type: 'null'
        balance:
          anyOf:
            - type: number
            - type: 'null'
        receivables:
          anyOf:
            - type: number
            - type: 'null'
        payables:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    CasebookSimilarCompany:
      properties:
        '@type':
          type: string
          default: CasebookSimilarCompany
        name:
          anyOf:
            - type: string
            - type: 'null'
        short_name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        ogrn:
          anyOf:
            - type: string
            - type: 'null'
        company_url:
          anyOf:
            - type: string
            - 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

````