{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil CNPJ Bulk Lookup Receita Federal | Consulta CNPJ em Lote",
    "description": "Consulta CNPJ em lote na Receita Federal com sanções CEIS/CNEP: cole a lista, envie Excel/CSV ou busque por atividade e cidade. Alertas em planilha e aviso mensal de mudanças. Sem programar. Brazil company checks / KYB / sanctions.",
    "version": "1.0",
    "x-build-id": "nIe2W1JcPRp4G32bm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/br-intelligence~brazil-cnpj-kyb-sanctions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-br-intelligence-brazil-cnpj-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/br-intelligence~brazil-cnpj-kyb-sanctions/runs": {
      "post": {
        "operationId": "runs-sync-br-intelligence-brazil-cnpj-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/br-intelligence~brazil-cnpj-kyb-sanctions/run-sync": {
      "post": {
        "operationId": "run-sync-br-intelligence-brazil-cnpj-kyb-sanctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "cnpjs": {
            "title": "CNPJs (lista)",
            "type": "array",
            "description": "Cole os CNPJs, um por linha, com ou sem pontuação (numérico ou o novo CNPJ alfanumérico). Até 5.000 por execução. Inválidos e repetidos são ignorados e nunca cobrados. / Brazilian company tax IDs (CNPJ), with or without punctuation, up to 5,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "spreadsheet": {
            "title": "Ou envie uma planilha (Excel, CSV ou Google Planilhas)",
            "type": "string",
            "description": "Envie o arquivo .xlsx ou .csv que você já tem, ou cole o link de uma Google Planilha compartilhada como \"Qualquer pessoa com o link\". Os CNPJs são encontrados em qualquer coluna e somados à lista acima. / Upload an .xlsx or .csv file, or paste a shared Google Sheets link; CNPJs are found in any column."
          },
          "buscaAtividade": {
            "title": "Atividade (palavra ou código CNAE)",
            "type": "string",
            "description": "Ex.: limpeza, construção de edifícios, desenvolvimento de software, ou o código CNAE de 7 dígitos (8121400). Separe várias com vírgula. A palavra é procurada na tabela oficial CNAE do IBGE. / Business activity (Portuguese word or 7-digit CNAE code)."
          },
          "buscaUf": {
            "title": "Estado (UF)",
            "enum": [
              "AC",
              "AL",
              "AM",
              "AP",
              "BA",
              "CE",
              "DF",
              "ES",
              "GO",
              "MA",
              "MG",
              "MS",
              "MT",
              "PA",
              "PB",
              "PE",
              "PI",
              "PR",
              "RJ",
              "RN",
              "RO",
              "RR",
              "RS",
              "SC",
              "SE",
              "SP",
              "TO"
            ],
            "type": "string",
            "description": "Obrigatório para a busca. / State (required for search)."
          },
          "buscaCidade": {
            "title": "Cidade (opcional)",
            "type": "string",
            "description": "Nome da cidade, com ou sem acento (ex.: Uberlândia). Em branco = estado todo. / City name (optional)."
          },
          "buscaMaxEmpresas": {
            "title": "Máximo de empresas encontradas",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limite de empresas trazidas pela busca (cada uma é cobrada como uma consulta). / Max companies returned by the search.",
            "default": 100
          },
          "buscaSomenteAtivas": {
            "title": "Só empresas ativas na Receita",
            "type": "boolean",
            "description": "Recomendado. Deixa de fora empresas baixadas, inaptas ou suspensas. / Only active companies.",
            "default": true
          },
          "buscaIncluirSecundarias": {
            "title": "Incluir quem tem a atividade como secundária",
            "type": "boolean",
            "description": "Desligado: só empresas cuja atividade principal é a buscada. Ligado: inclui também quem tem a atividade entre as secundárias (mais resultados, menos precisos). / Also match secondary activities.",
            "default": false
          },
          "monitorarMudancas": {
            "title": "Monitorar mudanças (avisar o que mudou desde a última execução)",
            "type": "boolean",
            "description": "Ligue para acompanhar a mesma lista todo mês: cada empresa ganha a coluna \"mudança\" (situação na Receita mudou, entrou ou saiu sanção, CNPJ deixou de existir) e as que mudaram aparecem primeiro. O histórico fica guardado na sua conta da Apify. Dica: salve como tarefa (Save as a new task) e crie um agendamento mensal em Schedules. / Turn on to monitor the same list over time: each company gets a \"mudanca\" (change) column and changed companies come first.",
            "default": false
          },
          "nomeDaLista": {
            "title": "Nome da lista monitorada",
            "type": "string",
            "description": "Usado só com o monitoramento ligado. Use nomes diferentes para listas diferentes (ex.: fornecedores, clientes). / Name of the monitored list (only used when monitoring is on).",
            "default": "minha-lista"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}