# Leads de Empresas Brasileiras (CNPJ) por CNAE e Cidade (`jeffev/leads-empresas-brasil-cnpj`) Actor

Encontre empresas ativas do Brasil por CNAE, cidade, UF, porte e data de abertura — incluindo empresas abertas nos últimos dias. Telefone, e-mail, endereço e sócios a partir da base oficial da Receita Federal.

- **URL**: https://apify.com/jeffev/leads-empresas-brasil-cnpj.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 empresa entregues

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Leads de Empresas Brasileiras (CNPJ) — novas empresas por CNAE e cidade

Encontre empresas **ativas** do Brasil filtrando por **atividade (CNAE), cidade, estado, porte e data de abertura** — inclusive empresas **abertas nos últimos dias**, o lead mais procurado por contadores, bancos, fornecedores, softwares de gestão e agências.

Os dados vêm da **base oficial e pública do CNPJ da Receita Federal** (28 milhões de estabelecimentos ativos), atualizada todo mês. Não depende de APIs de terceiros nem de raspagem de sites: a busca é rápida e não "quebra".

### O que você recebe

| Campo | Exemplo |
|---|---|
| CNPJ | 12.345.678/0001-90 |
| Razão social e nome fantasia | EXEMPLO RESTAURANTE LTDA |
| Data de abertura | 2026-09-10 |
| CNAE principal e secundários, com descrição | 5611201 — Restaurantes e similares |
| Porte, natureza jurídica, capital social | ME · Sociedade Limitada · R$ 30.000 |
| Simples Nacional / MEI | sim / não |
| Telefones e e-mail | (19) 3000-0000 · contato@… |
| Endereço completo com CEP | Rua Exemplo, 100 — Cambuí, Campinas/SP |
| Sócios (opcional) | nome, qualificação e data de entrada — **sem CPF** |
| `emailPareceDeContador` | marca e-mails que provavelmente são do escritório de contabilidade |

### Exemplos de uso

- **Restaurantes abertos nos últimos 90 dias em Campinas com telefone** → `ufs: ["SP"], municipios: ["Campinas"], cnaes: ["5611"], abertasNosUltimosDias: 90, apenasComTelefone: true`
- **Clínicas odontológicas de MG** → `ufs: ["MG"], cnaes: ["8630504"]`
- **Empresas de TI abertas este ano no Sul** → `ufs: ["PR","SC","RS"], cnaes: ["62"], abertasDesde: "2026-01-01"`

Dica: o CNAE aceita prefixo. `56` pega toda a alimentação; `5611` só restaurantes, bares e lanchonetes.

### Preço

Você paga **por empresa entregue**, sem mensalidade. Defina um limite de gasto por execução nas opções da Apify para nunca pagar mais do que quer.

### Privacidade (LGPD)

- Por padrão **MEIs ficam de fora** (`excluirMei: true`), porque o telefone e o e-mail de um MEI costumam ser da pessoa física.
- Sócios vêm só com nome e qualificação, sem CPF.
- Use os dados para prospecção B2B com base legal adequada e ofereça sempre a opção de descadastro.

***

## Brazilian Company Leads (CNPJ) — new businesses by industry and city

Find **active Brazilian companies** by industry code (CNAE), city, state, size and **opening date** — including businesses **opened in the last N days**. Phone, e-mail, full address, Simples/MEI tax status and partners, straight from the **official Receita Federal open CNPJ registry** (28M active establishments, refreshed monthly). No third-party APIs, no fragile scraping: fast and reliable.

Pay per company delivered. Individual micro-entrepreneurs (MEI) are excluded by default for privacy (LGPD).

# Actor input Schema

## `ufs` (type: `array`):

Siglas dos estados. Ex.: SP, RJ, MG.

## `municipios` (type: `array`):

Nomes das cidades (com ou sem acento). Vazio = todo o estado.

## `cnaes` (type: `array`):

Código completo (5611201) ou prefixo (5611 = restaurantes e similares; 69 = contabilidade e jurídico).

## `incluirCnaesSecundarios` (type: `boolean`):

Também retorna empresas cuja atividade secundária bate com os CNAEs informados.

## `abertasNosUltimosDias` (type: `integer`):

Empresas recém-abertas. A base é atualizada mensalmente pela Receita Federal.

## `abertasDesde` (type: `string`):

Data mínima de abertura (AAAA-MM-DD).

## `abertasAte` (type: `string`):

Data máxima de abertura (AAAA-MM-DD).

## `portes` (type: `array`):

ME = microempresa, EPP = pequeno porte, DEMAIS = médias e grandes.

## `palavrasChave` (type: `array`):

Filtra pela razão social ou nome fantasia.

## `capitalSocialMinimo` (type: `integer`):

Filtra empresas com capital social igual ou maior.

## `apenasComTelefone` (type: `boolean`):

Só empresas com telefone cadastrado.

## `apenasComEmail` (type: `boolean`):

Só empresas com e-mail cadastrado.

## `apenasMatriz` (type: `boolean`):

Exclui filiais.

## `excluirMei` (type: `boolean`):

No MEI, telefone e e-mail costumam ser da pessoa física. Recomendado manter ligado (LGPD).

## `incluirSocios` (type: `boolean`):

Nome e qualificação dos sócios (sem CPF).

## `maxResultados` (type: `integer`):

Limite de empresas entregues nesta execução.

## Actor input object example

```json
{
  "ufs": [
    "SP"
  ],
  "municipios": [
    "Campinas"
  ],
  "cnaes": [
    "5611"
  ],
  "incluirCnaesSecundarios": false,
  "abertasNosUltimosDias": 90,
  "apenasComTelefone": false,
  "apenasComEmail": false,
  "apenasMatriz": false,
  "excluirMei": true,
  "incluirSocios": false,
  "maxResultados": 1000
}
```

# Actor output Schema

## `empresas` (type: `string`):

Lista de empresas que atendem aos filtros, com contato, endereço e CNAE.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ufs": [
        "SP"
    ],
    "municipios": [
        "Campinas"
    ],
    "cnaes": [
        "5611"
    ],
    "abertasNosUltimosDias": 90
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/leads-empresas-brasil-cnpj").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "ufs": ["SP"],
    "municipios": ["Campinas"],
    "cnaes": ["5611"],
    "abertasNosUltimosDias": 90,
}

# Run the Actor and wait for it to finish
run = client.actor("jeffev/leads-empresas-brasil-cnpj").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ufs": [
    "SP"
  ],
  "municipios": [
    "Campinas"
  ],
  "cnaes": [
    "5611"
  ],
  "abertasNosUltimosDias": 90
}' |
apify call jeffev/leads-empresas-brasil-cnpj --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jeffev/leads-empresas-brasil-cnpj"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/mAw4yysWdYArhtIc4/builds/UfHUO3W1iNoWaqckW/openapi.json
