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

# /rmsp/companies/search

> Search the Russian SME register (Federal Tax Service) by name, owner, region, activity (OKVED) and other criteria. Returns each matching subject's INN, OGRN, name, type (legal entity or sole proprietor), SME category, registry status and dates, region/locality, main activity, headcount and registry flags. Provide a query or a region.

**Price:** 5 credits per 100 results



## OpenAPI

````yaml /openapi/company-registries.json post /api/rmsp/companies/search
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/rmsp/companies/search:
    post:
      tags:
        - /rmsp
      summary: /rmsp/companies/search
      description: >-
        Search the Russian SME register (Federal Tax Service) by name, owner,
        region, activity (OKVED) and other criteria. Returns each matching
        subject's INN, OGRN, name, type (legal entity or sole proprietor), SME
        category, registry status and dates, region/locality, main activity,
        headcount and registry flags. Provide a query or a region.


        **Price:** 5 credits per 100 results
      operationId: __api_rmsp_companies_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RmspCompaniesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RmspCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RmspCompaniesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        query:
          type: string
          default: ''
        count:
          type: integer
          minimum: 1
        np_type:
          anyOf:
            - $ref: '#/components/schemas/RmspNpType'
            - type: 'null'
        region:
          anyOf:
            - $ref: '#/components/schemas/RmspRegion'
            - type: 'null'
        district:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        okved:
          anyOf:
            - type: string
            - type: 'null'
        registered_at:
          anyOf:
            - type: string
            - type: 'null'
        is_new:
          anyOf:
            - type: boolean
            - type: 'null'
        is_social:
          anyOf:
            - type: boolean
            - type: 'null'
        has_licenses:
          anyOf:
            - type: boolean
            - type: 'null'
        is_hitech:
          anyOf:
            - type: boolean
            - type: 'null'
        is_partnership:
          anyOf:
            - type: boolean
            - type: 'null'
        sort_field:
          $ref: '#/components/schemas/RmspSortField'
          default: NAME_EX
        sort:
          $ref: '#/components/schemas/RmspSortOrder'
          default: ASC
      type: object
      required:
        - count
    RmspCompany:
      properties:
        '@type':
          type: string
          default: RmspCompany
        inn:
          type: string
        ogrn:
          type: string
        name:
          type: string
        np_type:
          $ref: '#/components/schemas/RmspNpType'
        category:
          anyOf:
            - $ref: '#/components/schemas/RmspCategory'
            - type: 'null'
        category_name:
          anyOf:
            - type: string
            - type: 'null'
        is_active:
          type: boolean
          default: false
        is_new:
          type: boolean
          default: false
        is_social:
          type: boolean
          default: false
        is_support_recipient:
          type: boolean
          default: false
        has_licenses:
          type: boolean
          default: false
        has_contracts:
          type: boolean
          default: false
        is_hitech:
          type: boolean
          default: false
        is_partnership:
          type: boolean
          default: false
        registered_at:
          anyOf:
            - type: string
            - type: 'null'
        excluded_at:
          anyOf:
            - type: string
            - type: 'null'
        region_code:
          anyOf:
            - type: string
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        area:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        locality:
          anyOf:
            - type: string
            - type: 'null'
        okved:
          anyOf:
            - type: string
            - type: 'null'
        okved_name:
          anyOf:
            - type: string
            - type: 'null'
        employee_count:
          anyOf:
            - type: integer
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - inn
        - ogrn
        - name
        - np_type
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    RmspNpType:
      type: string
      enum:
        - UL
        - IP
    RmspRegion:
      type: string
      enum:
        - '01'
        - '02'
        - '03'
        - '04'
        - '05'
        - '06'
        - '07'
        - '08'
        - '09'
        - '10'
        - '11'
        - '12'
        - '13'
        - '14'
        - '15'
        - '16'
        - '17'
        - '18'
        - '19'
        - '20'
        - '21'
        - '22'
        - '23'
        - '24'
        - '25'
        - '26'
        - '27'
        - '28'
        - '29'
        - '30'
        - '31'
        - '32'
        - '33'
        - '34'
        - '35'
        - '36'
        - '37'
        - '38'
        - '39'
        - '40'
        - '41'
        - '42'
        - '43'
        - '44'
        - '45'
        - '46'
        - '47'
        - '48'
        - '49'
        - '50'
        - '51'
        - '52'
        - '53'
        - '54'
        - '55'
        - '56'
        - '57'
        - '58'
        - '59'
        - '60'
        - '61'
        - '62'
        - '63'
        - '64'
        - '65'
        - '66'
        - '67'
        - '68'
        - '69'
        - '70'
        - '71'
        - '72'
        - '73'
        - '74'
        - '75'
        - '76'
        - '77'
        - '78'
        - '79'
        - '83'
        - '86'
        - '87'
        - '89'
        - '90'
        - '91'
        - '92'
        - '93'
        - '94'
        - '95'
        - '99'
    RmspSortField:
      type: string
      enum:
        - NAME_EX
        - INN
        - DTREGISTRY
        - CATEGORY
    RmspSortOrder:
      type: string
      enum:
        - ASC
        - DESC
    RmspCategory:
      type: string
      enum:
        - '1'
        - '2'
        - '3'
    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

````