# Brazilian New Companies (CNPJ) — Fresh Monthly Leads ✅ (`brazilayer/brazilian-new-companies`) Actor

Every company newly registered in Brazil, by opening date, industry (CNAE), state and size — with name, CNPJ, address, phone and e-mail. From the official Receita Federal registry, refreshed monthly. A database query, not a scraper: no breakage, no rate limit.

- **URL**: https://apify.com/brazilayer/brazilian-new-companies.md
- **Developed by:** [Brazilayer](https://apify.com/brazilayer) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 company returneds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Brazilian New Companies (Fresh CNPJ Leads)

**The list of companies that just opened in Brazil — ready for outreach.**

Pick an opening-date window (e.g. last month), optionally narrow by industry, state
or size, and get every newly registered company from the **official Receita Federal
registry**: legal name, trade name, CNPJ, full address, phone, e-mail, industry (CNAE)
and size.

It is a **database query, not a scraper**. The registry is loaded on our side, so there
is no site to block you, no rate limit, no breakage when a layout changes. A thousand
fresh companies come back in seconds.

### Why fresh companies

A company that just registered is about to buy everything for the first time —
accountant, POS, insurance, software, suppliers. New-business lists are the highest-
intent prospecting data there is, and the official registry is the only complete,
authoritative source of who just opened in Brazil.

### Typical uses

- **B2B prospecting** — reach new businesses in your industry before your competitors.
- **Franchise / supplier outreach** — new restaurants (CNAE `56`), new shops (`47`),
  new clinics (`86`) in your state, every month.
- **Market monitoring** — how many companies open per month, where, in which sector.

### Input

| Field | Meaning |
|---|---|
| `aberturaDe` | opened on or after (YYYY-MM-DD) — set to the 1st of last month for fresh leads |
| `aberturaAte` | opened on or before (YYYY-MM-DD) — empty = up to today |
| `cnae` | industry code, full 7 digits or a 2–6 digit sector prefix (optional) |
| `uf` | 2-letter state code (optional) |
| `municipio` | Receita Federal 4-digit city code (optional) |
| `porte` | company size (optional) |
| `comContato` | only companies with phone or e-mail (default: yes) |
| `maxResultados` | how many to return — charged per company delivered |

### Pricing

Charged **per company returned** (pay-per-event). No subscription. A 500-company list
costs about US$ 2.50.

### Privacy (LGPD)

Contact fields come back empty for sole proprietors and MEI (natural persons under
Brazilian law). That is a deliberate safeguard, not missing data — the company record
is still returned.

# Actor input Schema

## `aberturaDe` (type: `string`):

Start of the opening-date window. Set it to the first day of last month to get companies that just registered — the freshest prospecting list, updated monthly from the official Receita Federal registry.

## `aberturaAte` (type: `string`):

End of the opening-date window. Leave empty for 'up to today'.

## `cnae` (type: `string`):

Narrow to an industry. Full 7-digit code for one activity (5611201 = restaurants) or a 2-6 digit prefix for a whole sector (56 = food service). Digits only. Leave empty for every industry.

## `uf` (type: `string`):

Two-letter Brazilian state code, e.g. SP, RJ, MG. Leave empty for the whole country.

## `municipio` (type: `string`):

Receita Federal city code — narrower than state.

## `porte` (type: `string`):

Registered size band.

## `comContato` (type: `boolean`):

Skip records with no contact channel. Recommended for prospecting.

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

How many companies to return. Charged per company delivered.

## Actor input object example

```json
{
  "aberturaDe": "2026-07-01",
  "uf": "SP",
  "porte": "",
  "comContato": true,
  "maxResultados": 100
}
```

# Actor output Schema

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

Every company returned by this run, one item per company.

## `companiesCsv` (type: `string`):

Same list as a CSV download — the format most CRMs and spreadsheets import directly.

## `consoleView` (type: `string`):

Browse the results as a table.

# 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 = {
    "aberturaDe": "2026-07-01",
    "uf": "SP",
    "porte": "",
    "comContato": true,
    "maxResultados": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("brazilayer/brazilian-new-companies").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 = {
    "aberturaDe": "2026-07-01",
    "uf": "SP",
    "porte": "",
    "comContato": True,
    "maxResultados": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("brazilayer/brazilian-new-companies").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 '{
  "aberturaDe": "2026-07-01",
  "uf": "SP",
  "porte": "",
  "comContato": true,
  "maxResultados": 100
}' |
apify call brazilayer/brazilian-new-companies --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brazilayer/brazilian-new-companies"
        }
    }
}

```

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/4Fvp8fKAxSkKtxnTV/builds/zeQqxKHl7B3huq8Tg/openapi.json
