# Lista de Empresas por CNAE (CNPJ): Brazil Company Leads (`rowfinch/brazil-cnpj-leads`) Actor

Lista de empresas ativas do Brasil por CNAE, estado, cidade, porte e data de abertura, com CNPJ, endereço, telefone, e-mail e sócios (QSA). Dados oficiais da Receita Federal, atualizados todo mês. Brazil company leads by industry and city.

- **URL**: https://apify.com/rowfinch/brazil-cnpj-leads.md
- **Developed by:** [Rowfinch](https://apify.com/rowfinch) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 companies

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

## Lista de Empresas por CNAE: Leads B2B com CNPJ

Monte listas de prospecção com qualquer empresa ativa do Brasil. Escolha a atividade (CNAE), o estado, a cidade, o porte ou a data de abertura e receba CNPJ, razão social, endereço, telefones, e-mail e, se quiser, os sócios (QSA).

Dados oficiais da Receita Federal, atualizados todo mês. **US$ 1,50 por 1.000 empresas.**

### Para que serve

- **Prospecção**: todos os restaurantes de Campinas, as clínicas odontológicas de Minas Gerais, as empresas de software de Santa Catarina.
- **Empresas recém-abertas**: quem abriu nos últimos 30 dias no seu segmento, para chegar antes da concorrência. Agende a execução e receba a lista nova toda semana.
- **Tamanho de mercado**: quantas padarias há em cada cidade e quantas delas são microempresas.
- **Enriquecimento**: porte, Simples Nacional, capital social e natureza jurídica para a sua análise.

### Filtros

| Filtro | Exemplo | Observação |
|---|---|---|
| Atividade (CNAE) | `5611-2/01`, `5611`, `56` | Um código mais curto cobre todas as atividades abaixo dele. |
| Atividades secundárias | ligado | Inclui quem tem o CNAE como atividade secundária. |
| Estados | SP, RJ | Vazio = Brasil inteiro. |
| Cidades | `Campinas`, `Campinas/SP` | Acentos e maiúsculas não importam. |
| Porte | MEI, ME, EPP, Demais | |
| Data de abertura | `2026-09-01` ou `30 days` | Um período conta a partir de hoje. |
| Só matriz | ligado | Deixa as filiais de fora. |
| Só com telefone / e-mail | ligado | |

Entram só empresas com situação cadastral **ativa**.

### Exemplos

**Dentistas de Belo Horizonte com telefone:**

```json
{ "cnaes": ["8630-5/04"], "cities": ["Belo Horizonte/MG"], "withPhone": true, "maxResults": 5000 }
```

**Empresas de tecnologia abertas em SC nos últimos 30 dias**, para agendar toda semana:

```json
{ "cnaes": ["62"], "states": ["SC"], "openedFrom": "30 days", "headquartersOnly": true }
```

### Resultado

Uma linha por empresa, pronta para Excel, CSV, JSON ou para o seu CRM pelas integrações do Apify:

```json
{
  "cnpj": "11.222.333/0001-81",
  "legalName": "CANTINA DO JOAO LTDA",
  "tradeName": "CANTINA DO JOÃO",
  "isHeadquarters": true,
  "openedOn": "2020-01-15",
  "mainActivity": { "code": "5611-2/01", "description": "Restaurantes e similares" },
  "secondaryActivities": [
    { "code": "4721-1/02", "description": "Padaria e confeitaria com predominância de revenda" }
  ],
  "legalNature": { "code": "206-2", "description": "Sociedade Empresária Limitada" },
  "size": "ME",
  "simplesNacional": true,
  "shareCapital": 10000,
  "address": {
    "street": "RUA AUGUSTA", "number": "100", "complement": "LOJA 2", "district": "CONSOLAÇÃO",
    "zipCode": "01305-000", "city": "SAO PAULO", "state": "SP"
  },
  "phones": ["(11) 3333-4444"],
  "email": "contato@cantina.com.br",
  "partners": [
    { "name": "JOÃO PEREIRA", "role": "Sócio-Administrador", "since": "2020-01-15", "ageRange": "41-50" }
  ],
  "sourceMonth": "2026-10"
}
```

`partners` vem com **Include partners (QSA)** ligado. `sourceMonth` é a edição da Receita de onde o registro saiu.

### Preço

- **US$ 1,50 por 1.000 empresas**
- **+ US$ 0,50 por 1.000 empresas com sócios**, quando **Include partners (QSA)** estiver ligado

| Lista | Custo |
|---|---|
| 1.000 empresas | US$ 1,50 |
| 20.000 empresas com sócios | até US$ 40 |

A execução para em **Maximum companies**, que limita o custo. O crédito do plano gratuito do Apify cobre cerca de 3.000 empresas por mês.

### Atualização

A Receita Federal publica uma edição nova todo mês, e ela chega aqui poucos dias depois.

Telefones e e-mails são os que a empresa informou à Receita. Muitos estão vazios ou desatualizados, e o e-mail costuma ser do contador. Use **Only with phone** ou **Only with email** quando precisar de um canal de contato.

### É legal?

O cadastro CNPJ é público pela Lei de Acesso à Informação (Lei 12.527/2011), e a Receita Federal o publica como dado aberto. Os sócios vêm sem CPF.

Nomes de sócios são dados pessoais pela LGPD. O controlador do uso é você: tenha uma base legal para a finalidade (em prospecção B2B, normalmente o legítimo interesse), atenda pedidos de exclusão e não use os dados para nada além da relação com a empresa.

### Perguntas frequentes

**Por que aparecem menos empresas do que em outros sites?**
Empresas baixadas, suspensas e inaptas ficam de fora. Muitos sites as contam.

**Dá para consultar por CNPJ?**
Sim, com a [Consulta CNPJ em Lote](https://apify.com/rowfinch/brazil-cnpj-lookup): cole a lista e receba os mesmos campos.

**Dá para baixar a base inteira?**
Rode sem filtros e com um máximo alto. Para exportações completas recorrentes, abra uma issue e combinamos um formato melhor.

### In English

Brazil company leads from the official CNPJ registry (Receita Federal). Filter every active company by CNAE activity, state, city, size and opening date, and get CNPJ, address, phones, email and partners (QSA). Refreshed monthly. **$1.50 per 1,000 companies**, +$0.50 per 1,000 with partners.

# Actor input Schema

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

Full code (5611-2/01) or a prefix: 5611 covers every restaurant subclass, 56 the whole food service division. Leave empty for all activities.

## `matchSecondaryCnaes` (type: `boolean`):

Catches companies that do this activity alongside a different main one.

## `states` (type: `array`):

Leave empty for the whole country.

## `cities` (type: `array`):

City names, e.g. Campinas or Campinas/SP. Accents and capitals don't matter.

## `sizes` (type: `array`):

Leave empty for every size.

## `openedFrom` (type: `string`):

Registration date (data de início de atividade). A period like 30 days counts back from today, for scheduled runs.

## `openedTo` (type: `string`):

Leave empty to include up to the latest release.

## `headquartersOnly` (type: `boolean`):

Skip branches (filiais).

## `withPhone` (type: `boolean`):

Up to two phones per company, as registered with Receita Federal.

## `withEmail` (type: `boolean`):

Registered emails often belong to the company's accountant.

## `includePartners` (type: `boolean`):

Adds each company's partners: name, role, entry date and age range. Charged per company that has partners.

## `maxResults` (type: `integer`):

The run stops at this number, which also caps the cost.

## Actor input object example

```json
{
  "cnaes": [
    "5611"
  ],
  "matchSecondaryCnaes": false,
  "states": [
    "SP"
  ],
  "headquartersOnly": false,
  "withPhone": false,
  "withEmail": false,
  "includePartners": false,
  "maxResults": 20
}
```

# Actor output Schema

## `companies` (type: `string`):

No description

# 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 = {
    "cnaes": [
        "5611"
    ],
    "states": [
        "SP"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/brazil-cnpj-leads").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 = {
    "cnaes": ["5611"],
    "states": ["SP"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/brazil-cnpj-leads").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 '{
  "cnaes": [
    "5611"
  ],
  "states": [
    "SP"
  ],
  "maxResults": 20
}' |
apify call rowfinch/brazil-cnpj-leads --silent --output-dataset

```

## MCP server setup

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

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/rZQb9FhKtNERE4ysf/builds/10onQJjKtspmHEcZg/openapi.json
