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

# /sbis/contragents

> Get a Russian company or sole proprietor (contractor) by INN, OGRN or company profile URL: short and full legal name, INN/KPP/OGRN/OKPO/OKTMO, Pension Fund / Social Insurance registration numbers, registration date, legal address, annual revenue, charter capital, director, primary activity (OKVED), branch addresses, section counters, company rating and employer rating.

**Price:** 10 credits

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



## OpenAPI

````yaml /openapi/company-registries.json post /api/sbis/contragents
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/sbis/contragents:
    post:
      tags:
        - /sbis
      summary: /sbis/contragents
      description: >-
        Get a Russian company or sole proprietor (contractor) by INN, OGRN or
        company profile URL: short and full legal name, INN/KPP/OGRN/OKPO/OKTMO,
        Pension Fund / Social Insurance registration numbers, registration date,
        legal address, annual revenue, charter capital, director, primary
        activity (OKVED), branch addresses, section counters, company rating and
        employer rating.


        **Price:** 10 credits


        **⚠️ Common errors:** 412: Contractor not found (well-formed INN/OGRN
        but no matching record)
      operationId: __api_sbis_contragents_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SbisContragentsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SbisContragent'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SbisContragentsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        contragent:
          type: string
          minLength: 1
      type: object
      required:
        - contragent
    SbisContragent:
      properties:
        '@type':
          type: string
          default: SbisContragent
        id:
          type: string
        url:
          type: string
        is_sole_proprietor:
          type: boolean
        name:
          anyOf:
            - type: string
            - type: 'null'
        full_name:
          anyOf:
            - type: string
            - type: 'null'
        inn:
          anyOf:
            - type: string
            - type: 'null'
        kpp:
          anyOf:
            - type: string
            - type: 'null'
        ogrn:
          anyOf:
            - type: string
            - type: 'null'
        okpo:
          anyOf:
            - type: string
            - type: 'null'
        oktmo:
          anyOf:
            - type: string
            - type: 'null'
        pfr_number:
          anyOf:
            - type: string
            - type: 'null'
        fss_number:
          anyOf:
            - type: string
            - type: 'null'
        sfr_number:
          anyOf:
            - type: string
            - type: 'null'
        registered_at:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        revenue:
          anyOf:
            - type: integer
            - type: 'null'
        charter_capital:
          anyOf:
            - type: integer
            - type: 'null'
        director:
          anyOf:
            - $ref: '#/components/schemas/SbisPerson'
            - type: 'null'
        main_activity:
          anyOf:
            - $ref: '#/components/schemas/SbisActivity'
            - type: 'null'
        branches:
          items:
            type: string
          type: array
          default: []
        counters:
          anyOf:
            - $ref: '#/components/schemas/SbisContragentCounters'
            - type: 'null'
        rating:
          anyOf:
            - $ref: '#/components/schemas/SbisRating'
            - type: 'null'
        employer_rating:
          anyOf:
            - $ref: '#/components/schemas/SbisRating'
            - type: 'null'
      type: object
      required:
        - id
        - url
        - is_sole_proprietor
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    SbisPerson:
      properties:
        '@type':
          type: string
          default: SbisPerson
        name:
          anyOf:
            - type: string
            - type: 'null'
        role:
          anyOf:
            - type: string
            - type: 'null'
        since_at:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    SbisActivity:
      properties:
        '@type':
          type: string
          default: SbisActivity
        code:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    SbisContragentCounters:
      properties:
        '@type':
          type: string
          default: SbisContragentCounters
        owner_count:
          anyOf:
            - type: integer
            - type: 'null'
        license_count:
          anyOf:
            - type: integer
            - type: 'null'
        inspection_count:
          anyOf:
            - type: integer
            - type: 'null'
        event_count:
          anyOf:
            - type: integer
            - type: 'null'
        trademark_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
    SbisRating:
      properties:
        '@type':
          type: string
          default: SbisRating
        value:
          anyOf:
            - type: number
            - type: 'null'
        count:
          anyOf:
            - type: integer
            - 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

````