Radar CNPJ Ref API

The Ref API from Radar CNPJ — 1 operation(s) for ref.

Operations 1

GET /api/ref Vocabulários oficiais para montar seletor: CNAE, município e natureza jurídica #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/radar-cnpj-ref-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

radar-cnpj-ref-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Radar CNPJ Ref API
  version: 2d690e87
  description: radar-cnpj.com — índice GET /api/.
servers:
- url: https://radar-cnpj.com
tags:
- name: Ref
paths:
  /api/ref:
    get:
      operationId: ref
      summary: 'Vocabulários oficiais para montar seletor: CNAE, município e natureza jurídica'
      description: 'Ou você busca por texto (`q`) ou resolve códigos que já tem (`codigos`) — `codigos` ganha quando os dois vêm.

        Devolve: { ok, results[{codigo,descricao}] }'
      parameters:
      - name: tipo
        in: query
        required: true
        schema:
          type: string
          enum:
          - cnae
          - municipio
          - natureza
        description: Qual vocabulário consultar.
      - name: q
        in: query
        required: false
        schema:
          type: string
        description: Texto a procurar no vocabulário, até 60 caracteres.
        example: padaria
      - name: codigos
        in: query
        required: false
        schema:
          type: string
        description: Códigos separados por vírgula, para resolver os nomes deles.
        example: 4721102,4712100
      responses:
        '200':
          description: '{ ok, results[{codigo,descricao}] }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListaReferencia'
        '400':
          description: '`tipo` ausente ou fora da lista.'
      tags:
      - Ref
components:
  schemas:
    ListaReferencia:
      type: object
      properties:
        ok:
          type: boolean
          description: Sempre `true`.
        results:
          type: array
          items:
            $ref: '#/components/schemas/ItemReferencia'
          description: Os itens que casam com a consulta.
      required:
      - ok
      - results
      description: Itens de um vocabulário oficial (CNAE, município, natureza jurídica) para montar seletor.
    ItemReferencia:
      type: object
      properties:
        codigo:
          type: integer
          description: Código oficial, ex. `4721102` para padaria.
        descricao:
          type: string
          description: Nome do código por extenso.
      required:
      - codigo
      - descricao
      description: 'Um item de vocabulário oficial: o código que a Receita usa e o nome dele.'