# Brazil Company Lookup by CNPJ \[$0.85/1K 💰] (`cybermax/brazil-cnpj`) Actor

💰 $0.85 per 1,000 companies, no start fee; invalid CNPJs free. Consulta CNPJ em lote from the Receita Federal open CNPJ data: razão social, situação cadastral, CNAE, address, phone, porte, Simples/MEI. Search by UF, município, CNAE. Cheaper than epicscrapers' CNPJ scraper ($0.90/1K).

- **URL**: https://apify.com/cybermax/brazil-cnpj.md
- **Developed by:** [CyberMax](https://apify.com/cybermax) (community)
- **Categories:** Lead generation, Business, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.80 / 1,000 companies returned

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/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

## Cadastrelo: Brazil CNPJ Lookup & Company Search (Consulta CNPJ)

#### Consulta CNPJ em lote: official Receita Federal company data for any list of CNPJs, or every company by state, city and CNAE

Cadastrelo is a bulk **CNPJ** lookup and Brazilian company search built on the **Receita Federal's open CNPJ data** (dados abertos do CNPJ). Paste a list of CNPJs (with or without punctuation, including the **new alphanumeric CNPJs**) and get each company's **razão social, nome fantasia, situação cadastral, CNAE (main and secondary), natureza jurídica, porte, capital social, address, phone, Simples Nacional and MEI flags**. Or find companies **by UF, IBGE city code, CNAE and legal nature**: every software company in São Paulo, every restaurant in a city. Invalid CNPJs are caught by their check digits and never charged, and **monitor mode** reports only companies whose record changed. **$0.80 per 1,000 companies; no start fee.**

**[▶ Try it now](https://cybermaxtools.com/store/c/dev/?soon=brazil-cnpj)** (run it empty for a free demo) · $0.0008 per company · Apify's free plan includes $5 of credit a month

**Built for:** B2B sales teams in Brazil building prospect lists by CNAE and city · finance and procurement checking that suppliers are ATIVA before paying (KYB) · fintechs and marketplaces validating merchant CNPJs at onboarding · analysts mapping companies by sector and region

**Real output** (free demo run on Apify, 10 Nov 2026: CNPJ lookups plus a search, one invalid CNPJ flagged; 2.6 s):

| CNPJ | Razão social | Situação | CNAE | Endereço | Telefone | Porte |
|---|---|---|---|---|---|---|
| 00.000.000/0001-91 | BANCO DO BRASIL SA | ATIVA | 6422100 | QUADRA SAUN QUADRA 5 BLOCO B …, ASA NORTE, BRASILIA - DF, CEP 70040912 | +55 61 3493-9002 | DEMAIS |
| 60.701.190/0001-04 | ITAU UNIBANCO S.A. | ATIVA | 6421200 | PRACA ALFREDO EGYDIO DE SOUZA ARANHA, 100, …, SAO PAULO - SP, CEP 04344902 | +55 11 3003-4828 | DEMAIS |
| 12.345.678/0001-00 | invalid CNPJ (wrong length or check digits), free | | | | | |

```json
{
  "cnpj": "00.000.000/0001-91",
  "legalName": "BANCO DO BRASIL SA",
  "tradeName": "DIRECAO GERAL",
  "headOffice": true,
  "status": "ATIVA",
  "active": true,
  "openedOn": "1966-08-01",
  "legalNature": "Sociedade de Economia Mista",
  "size": "DEMAIS",
  "shareCapitalBrl": 120000000000,
  "mainActivityCode": "6422100",
  "mainActivity": "Bancos múltiplos, com carteira comercial",
  "otherActivities": [{ "code": "6499999", "description": "Outras atividades de serviços financeiros não especificadas anteriormente" }],
  "address": { "district": "ASA NORTE", "city": "BRASILIA", "state": "DF", "postalCode": "70040912", "cityIbgeCode": 5300108 },
  "phone1": "+55 61 3493-9002",
  "simplesNacional": false,
  "mei": false,
  "partnersCount": 41,
  "sourceUrl": "https://minhareceita.org/00000000000191"
}
```

### How to use it

**Look up CNPJs (consulta CNPJ em lote):** paste one CNPJ per line in **CNPJs to look up**: `33.683.111/0002-80` or `33683111000280`. Each is checked for valid check digits first; invalid ones are flagged and free.

**Find companies (consulta por filtros):** leave the list empty and set one or more filters:

| Filter | Example |
|---|---|
| States (UF) | `SP`, `RJ`, `MG` |
| City codes (IBGE, 7 digits) | `3550308` São Paulo, `3304557` Rio de Janeiro, `5300108` Brasília |
| CNAE codes (main or secondary) | `6201501` software development, `5611201` restaurants, `4781400` clothing retail |
| CNAE codes (main only) | same codes, only the company's main activity |
| Legal nature codes | `2062` Sociedade Empresária Limitada, `2135` Empresário Individual |

Then choose **Active only** (default on), **Head offices only**, **Only companies with a phone**, and **Max companies** (default 1,000).

### Ready-made inputs

| Job | Input |
|---|---|
| **Check a supplier list** | `{"cnpjs": ["33.683.111/0002-80", "00.000.000/0001-91"]}` |
| **Software companies in São Paulo (city)** | `{"cityCodes": ["3550308"], "activityCodes": ["6201501"], "headOfficeOnly": true, "maxItems": 500}` |
| **Restaurants in Rio de Janeiro with a phone** | `{"cityCodes": ["3304557"], "mainActivityCodes": ["5611201"], "onlyWithPhoneOrEmail": true}` |
| **Watch your customers for status changes** | `{"cnpjs": ["…", "…"], "monitor": true, "monitorKey": "clientes"}` |

### Output fields (one row per company)

| Field | What it holds |
|---|---|
| `cnpj`, `headOffice` | Formatted CNPJ and whether it is the matriz (head office) |
| `legalName`, `tradeName` | Razão social and nome fantasia |
| `status`, `active`, `statusDate`, `statusReason`, `openedOn` | Situação cadastral (ATIVA, BAIXADA, INAPTA, SUSPENSA, NULA), a true/false flag, when and why it last changed, and the opening date |
| `legalNature`, `size`, `shareCapitalBrl` | Natureza jurídica, porte and capital social in BRL |
| `mainActivityCode`, `mainActivity`, `otherActivities` | Main CNAE and every secondary CNAE with descriptions |
| `address`, `addressText`, `phone1`, `phone2` | Street, number, district, city, UF, CEP and IBGE city code, plus a one-line address; phones in +55 format |
| `simplesNacional`, `mei` | Tax regime flags |
| `partnersCount` (and `partners` with **Include partners**) | QSA size, or each partner's name, role and entry date |
| `change` (monitor mode) | `new` or `changed` |
| `sourceUrl` | The open-data record the row came from |

Invalid CNPJs come back as a free row with an `error` explaining why. Export as JSON, CSV, Excel or XML from the dataset tab, or read it through the API.

### Run it on a schedule (only new or changed companies)

With `"monitor": true`, each run outputs only companies that are new to the watchlist or whose status, address, activity, phone or other fields changed (`change: "new"` or `"changed"`). Unchanged companies are free. Schedule it weekly to catch suppliers that become **BAIXADA**, **INAPTA** or **SUSPENSA**, or new companies opening in your sector and city.

### Integrations

- **API (curl):**
  ```bash
  curl -X POST "https://api.apify.com/v2/acts/cybermax~brazil-cnpj/run-sync-get-dataset-items?token=YOUR_TOKEN" \
    -H "Content-Type: application/json" -d '{"cnpjs": ["33.683.111/0002-80"]}'
  ```
- **Python:** `ApifyClient(token).actor("cybermax/brazil-cnpj").call(run_input={"states": ["SP"], "activityCodes": ["6201501"], "maxItems": 200})`
- **Make, Zapier, n8n:** validate a CNPJ the moment a customer signs up, or push new companies into your CRM.
- **AI agents (MCP):** `https://mcp.apify.com?actors=cybermax/brazil-cnpj`.

### Pricing

**$0.0008 per company returned ($0.80 per 1,000), no start fee.** You are not charged for invalid CNPJs, CNPJs not found, upstream errors, or (in monitor mode) companies unchanged since the last run. Examples: a 200-supplier check costs $0.16; a weekly monitor of 2,000 customers where 30 changed costs $0.02 that week. Apify's free plan includes $5 of credit a month, enough for about 6,000 companies.

### Why Cadastrelo

| | Cadastrelo | Typical CNPJ scraper on the Store |
|---|---|---|
| Price | **$0.80 per 1,000 companies, no start fee** | $0.90–$2 per 1,000, some with a $0.10 start fee (Store prices, 10 Nov 2026) |
| Not charged | Invalid CNPJs (check digits verified first), not-found CNPJs, upstream errors, unchanged companies in monitor mode | Often charged per attempt |
| Reliability | Retries with back-off and a second open-data source for lookups | Two of the three most-used fail 11–13% of their runs (Store stats, 10 Nov 2026) |
| New CNPJ format | Validates the alphanumeric CNPJs issued from July 2026 | Many check digits only |
| Change monitor | Yes | Rare |

### When not to use Cadastrelo

- **You need same-day changes.** The Receita Federal publishes its open CNPJ files monthly, so a status change can take a few weeks to show up here. For a legally binding check on the day, use the official comprovante on the Receita website.
- **You need email addresses.** The open data rarely has one; Cadastrelo never guesses or scrapes emails.
- **You need partners' full CPFs or personal data.** They are not in the open data and never will be in this tool.
- **You need court, debt or credit records.** Those are not part of the CNPJ register.

### FAQ

**Where does the data come from?** From the Receita Federal's open CNPJ data, published under Brazil's Access to Information Law, through the open Minha Receita API (minhareceita.org), which loads the official monthly files. Single lookups fall back to BrasilAPI if that API is busy. Data is as fresh as the latest monthly Receita release.

**Does it include partners (QSA)?** Optional. Turn on **Include partners** to add each partner's name, role and entry date as published in the open data. CPF fragments and age ranges are never included.

**Does it include emails?** The open data rarely carries an email address, so most rows have none; the field appears when the record has one. Phone numbers are present for about 9 in 10 companies.

**How many companies can a search return?** As many as match, page by page; set **Max companies** to cap the run.

**Is my data safe?** Your CNPJ list is sent only to the open-data APIs named above.

### Also from CyberMax

- [Corproll: Company Registry Lookup](https://cybermaxtools.com/store/c/dev/?soon=company-registry-lookup) · official company data for France, Norway, Finland, Czechia, Poland and the global LEI index.
- [Dialvett: Phone Number Validator](https://apify.com/cybermax/phone-number-validator) · validate and format the phones (`"defaultCountry": "BR"`).
- [Rowmold: Dataset Filter & Transform](https://cybermaxtools.com/store/c/dev/?soon=dataset-filter-transform) · trim the list and export Excel.

Found this useful? A quick rating helps others find it.

© 2026 CyberMax. All rights reserved.

# Actor input Schema

## `cnpjs` (type: `array`):

One CNPJ per line, with or without punctuation (33.683.111/0002-80 or 33683111000280). The new alphanumeric CNPJs (from July 2026) work too. Invalid ones are flagged and free. Leave empty and use the filters below to search, or leave everything empty for a free demo.

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

Two-letter UF codes, e.g. SP, RJ, MG. Combine with an activity code or a city to keep lists focused.

## `cityCodes` (type: `array`):

IBGE municipality codes (7 digits), e.g. 3550308 São Paulo, 3304557 Rio de Janeiro, 5300108 Brasília.

## `activityCodes` (type: `array`):

CNAE codes, digits only, e.g. 6201501 (software development), 5611201 (restaurants). Matches the main or any secondary activity.

## `mainActivityCodes` (type: `array`):

Like above, but only companies whose main (fiscal) CNAE is one of these.

## `legalNatureCodes` (type: `array`):

Natureza jurídica codes, e.g. 2062 (Sociedade Empresária Limitada), 2135 (Empresário Individual).

## `activeOnly` (type: `boolean`):

Leave out companies that are BAIXADA, INAPTA, SUSPENSA or NULA. Rows left out are not charged.

## `headOfficeOnly` (type: `boolean`):

Leave out branches (filiais).

## `onlyWithPhoneOrEmail` (type: `boolean`):

Keep only companies that registered a phone number with the Receita Federal (about 9 in 10 do).

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

Adds the partner list as published in the open data: name, role and entry date (no CPF fragments or age ranges).

## `maxItems` (type: `integer`):

Cap on companies written (searches can match hundreds of thousands).

## `monitor` (type: `boolean`):

Remembers every company; later runs output only companies that are new or whose status, address, activity, contacts or other fields changed (marked change: new/changed). Unchanged companies are free.

## `monitorKey` (type: `string`):

Optional name for this watchlist's saved state (use one per workflow).

## Actor input object example

```json
{
  "cnpjs": [
    "33.683.111/0002-80",
    "00.000.000/0001-91"
  ],
  "activeOnly": true,
  "headOfficeOnly": false,
  "onlyWithPhoneOrEmail": false,
  "includePartners": false,
  "maxItems": 1000,
  "monitor": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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 = {
    "cnpjs": [
        "33.683.111/0002-80",
        "00.000.000/0001-91"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cybermax/brazil-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 = { "cnpjs": [
        "33.683.111/0002-80",
        "00.000.000/0001-91",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cybermax/brazil-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 '{
  "cnpjs": [
    "33.683.111/0002-80",
    "00.000.000/0001-91"
  ]
}' |
apify call cybermax/brazil-cnpj --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cybermax/brazil-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/8FFmKTH1R5jaD36eb/builds/b8uYv3PYrcmWbBFfG/openapi.json
