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

# /cnpj/companies

> Get a Brazilian company's registry record from the National Registry of Legal Entities (CNPJ) by its CNPJ number: legal name, trade name, registration status with date and reason, any special legal status (e.g. judicial recovery), activity start date, legal nature, company size, share capital, primary and secondary economic activity (CNAE) codes, full address, contact phones, fax and email, Simples/MEI tax-regime flags, head-office/branch indicator, state tax registrations (Inscrição Estadual) and the partners/shareholders board (name, qualification, age range, entry date, legal representative).

**Price:** 1 credit

**⚠️ Common errors:** 412: No company found for the given CNPJ



## OpenAPI

````yaml /openapi/company-registries.json post /api/cnpj/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/cnpj/companies:
    post:
      tags:
        - /cnpj
      summary: /cnpj/companies
      description: >-
        Get a Brazilian company's registry record from the National Registry of
        Legal Entities (CNPJ) by its CNPJ number: legal name, trade name,
        registration status with date and reason, any special legal status (e.g.
        judicial recovery), activity start date, legal nature, company size,
        share capital, primary and secondary economic activity (CNAE) codes,
        full address, contact phones, fax and email, Simples/MEI tax-regime
        flags, head-office/branch indicator, state tax registrations (Inscrição
        Estadual) and the partners/shareholders board (name, qualification, age
        range, entry date, legal representative).


        **Price:** 1 credit


        **⚠️ Common errors:** 412: No company found for the given CNPJ
      operationId: __api_cnpj_companies_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CnpjCompaniesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CnpjCompany'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CnpjCompaniesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        cnpj:
          type: string
      type: object
      required:
        - cnpj
    CnpjCompany:
      properties:
        '@type':
          type: string
          default: CnpjCompany
        cnpj:
          type: string
        company_name:
          type: string
        trade_name:
          anyOf:
            - type: string
            - type: 'null'
        is_head_office:
          type: boolean
          default: false
        registration_status:
          anyOf:
            - type: string
            - type: 'null'
        registration_status_date:
          anyOf:
            - type: string
            - type: 'null'
        registration_status_reason:
          anyOf:
            - type: string
            - type: 'null'
        special_status:
          anyOf:
            - type: string
            - type: 'null'
        special_status_date:
          anyOf:
            - type: string
            - type: 'null'
        activity_start_date:
          anyOf:
            - type: string
            - type: 'null'
        legal_nature:
          anyOf:
            - type: string
            - type: 'null'
        legal_nature_code:
          anyOf:
            - type: string
            - type: 'null'
        responsible_qualification:
          anyOf:
            - type: string
            - type: 'null'
        company_size:
          anyOf:
            - type: string
            - type: 'null'
        capital:
          anyOf:
            - type: number
            - type: 'null'
        main_activity:
          anyOf:
            - $ref: '#/components/schemas/CnpjActivity'
            - type: 'null'
        secondary_activities:
          items:
            $ref: '#/components/schemas/CnpjActivity'
          type: array
          default: []
        address:
          anyOf:
            - $ref: '#/components/schemas/CnpjAddress'
            - type: 'null'
        phone_1:
          anyOf:
            - type: string
            - type: 'null'
        phone_2:
          anyOf:
            - type: string
            - type: 'null'
        fax:
          anyOf:
            - type: string
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        opted_for_simples:
          anyOf:
            - type: boolean
            - type: 'null'
        opted_for_mei:
          anyOf:
            - type: boolean
            - type: 'null'
        state_registrations:
          items:
            $ref: '#/components/schemas/CnpjStateRegistration'
          type: array
          default: []
        partners:
          items:
            $ref: '#/components/schemas/CnpjPartner'
          type: array
          default: []
        data_updated_at:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - cnpj
        - company_name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    CnpjActivity:
      properties:
        '@type':
          type: string
          default: CnpjActivity
        code:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    CnpjAddress:
      properties:
        '@type':
          type: string
          default: CnpjAddress
        street_type:
          anyOf:
            - type: string
            - type: 'null'
        street:
          anyOf:
            - type: string
            - type: 'null'
        number:
          anyOf:
            - type: string
            - type: 'null'
        complement:
          anyOf:
            - type: string
            - type: 'null'
        district:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    CnpjStateRegistration:
      properties:
        '@type':
          type: string
          default: CnpjStateRegistration
        number:
          type: string
        active:
          anyOf:
            - type: boolean
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        state_name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - number
    CnpjPartner:
      properties:
        '@type':
          type: string
          default: CnpjPartner
        name:
          type: string
        document:
          anyOf:
            - type: string
            - type: 'null'
        type:
          anyOf:
            - type: string
            - type: 'null'
        qualification:
          anyOf:
            - type: string
            - type: 'null'
        age_range:
          anyOf:
            - type: string
            - type: 'null'
        entry_date:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        legal_representative_name:
          anyOf:
            - type: string
            - type: 'null'
        legal_representative_document:
          anyOf:
            - type: string
            - type: 'null'
        legal_representative_qualification:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    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

````