# Brazil B2B Leads: CNPJ Email, Phone & WhatsApp API (`brazil-data-labs/brazil-cnpj-corporate-kyc`) Actor

Enrich Brazilian companies (CNPJ) with official corporate emails, phones, clickable WhatsApp links (wa.me), website domains, share capital, CNAE sector, address, and QSA decision-maker structure via live Receita Federal open data.

- **URL**: https://apify.com/brazil-data-labs/brazil-cnpj-corporate-kyc.md
- **Developed by:** [Brazil Data Labs](https://apify.com/brazil-data-labs) (community)
- **Categories:** Lead generation, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / cnpj & qsa shareholder profile

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

## 🇧🇷 Brazil B2B Leads: CNPJ Email, Phone, WhatsApp & QSA Enrichment API

**Enrich Brazilian companies (CNPJ) in real time with verified corporate emails, phone numbers, clickable WhatsApp links (`wa.me`), website domains, share capital (`Capital Social`), CNAE sector, full address, and QSA decision-maker structure.**

Powered 100% by official **Receita Federal do Brasil Open Data (Instrução Normativa RFB nº 2.119/2022)** — zero private databases required and **100% compliant with LGPD Art. 1 (Pessoa Jurídica)**.

***

### 🚀 Two High-Converting B2B Modes

#### 1. Bulk CNPJ Contact Enrichment (`taxIds`)

Paste **1 to 1,000 CNPJ numbers** and immediately enrich every company with:

- **Corporate Email (`corporateEmail`)** registered with Receita Federal
- **Corporate Website Domain (`corporateWebsiteDomain`)** automatically extracted from corporate email domains
- **Primary & Secondary Phones (`corporatePhonePrimary`, `corporatePhoneSecondary`)** formatted in E.164 (`+55 (11) ...`)
- **Direct WhatsApp Business Link (`whatsappDirectLink`)** (`https://wa.me/55...`) ready for CRM / SDR outreach
- **Share Capital (`shareCapitalBrl`)**, **Company Size (`porte`)**, and **Primary CNAE (`primaryActivityCnae`)**
- **Decision-Makers & Corporate Shareholders (`decisionMakersQsa`)** (Corporate Parent CNPJs + Executive Director roles)
- **B2B Lead Readiness Score (`b2bLeadScore`: 0–100)**

#### 2. B2B Lead Discovery by Sector, State (UF) & Share Capital

Don't have a CNPJ list yet? Leave `taxIds` empty and filter directly by:

- **Commercial Sector (`sector`):** `AGRO_FOOD`, `TECH_SAAS_TELECOM`, `CONSTRUCTION_REAL_ESTATE`, `HEALTHCARE_PHARMA`, `INDUSTRY_ENERGY_MINING`, `LOGISTICS_TRANSPORT`, `RETAIL_ECOMMERCE`, `FINANCE_INSURANCE`
- **State (`stateUf`):** `SP`, `RJ`, `MG`, `PR`, `SC`, `RS`, `MT`, `GO`, `BA`, etc.
- **Minimum Share Capital (`minShareCapitalBrl`):** e.g., `1000000` (R$ 1M+ Capital Social)

***

### 📦 Sample Output Record

```json
{
  "recordType": "B2B_COMMERCIAL_SALES_LEAD",
  "b2bLeadScore": 100,
  "leadTier": "TIER_1_VERIFIED_DECISION_MAKER_LEAD",
  "taxId": "53.113.791/0001-22",
  "legalName": "TOTVS S.A.",
  "tradeName": "TOTVS",
  "registrationStatus": "ATIVA",
  "sectorCategory": "TECH_SAAS_TELECOM",
  "primaryActivityCnae": "6203100 - Desenvolvimento e licenciamento de programas de computador (SaaS / ERP)",
  "companySize": "DEMAIS (GRANDE PORTE)",
  "shareCapitalBrl": 2935848000.0,
  "corporateEmail": "ri@totvs.com.br",
  "corporateWebsiteDomain": "https://totvs.com.br",
  "corporatePhonePrimary": "+55 (11) 2099-7773",
  "corporatePhoneSecondary": "+55 (11) 2099-7000",
  "whatsappDirectLink": "https://wa.me/551120997773",
  "city": "SAO PAULO",
  "stateUf": "SP",
  "location": "SAO PAULO/SP",
  "postalCodeCep": "02511-000",
  "fullAddress": "AV BRAZ LEME, 1000 - CASA VERDE",
  "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=TOTVS+SAO+PAULO+SP",
  "decisionMakersCount": 2,
  "decisionMakersQsa": [
    {
      "role": "Diretor Presidente / CEO",
      "type": "EXECUTIVE_DIRECTOR",
      "taxIdMasked": "***.618.902-**"
    },
    {
      "role": "Diretor Vice-Presidente Financeiro",
      "type": "EXECUTIVE_DIRECTOR",
      "taxIdMasked": "***.440.128-**"
    }
  ],
  "lgpdComplianceNotice": "100% Corporate (Pessoa Jurídica) Open Data per Receita Federal IN RFB 2.119/2022 & LGPD Art. 1."
}
```

# Actor input Schema

## `taxIds` (type: `array`):

Paste 1 to 1,000 Brazilian CNPJ numbers (formatted or digits only) to enrich with corporate email, phone, WhatsApp, website domain, capital social, address, and QSA roles.

## `sector` (type: `string`):

Filter B2B corporate leads by industry vertical when discovering leads.

## `stateUf` (type: `string`):

Optional 2-letter Brazilian state filter (e.g., 'SP', 'RJ', 'MG', 'PR', 'SC', 'RS', 'MT', 'GO', 'BA'). Leave empty for all states.

## `companyKeyword` (type: `string`):

Optional keyword filter on company name, trade name, city, or CNAE description (e.g., 'SAO PAULO', 'ENERGIA', 'LOGISTICA', 'ALIMENTOS').

## `minShareCapitalBrl` (type: `integer`):

Filter for companies with at least this much registered Share Capital (Capital Social) in BRL (e.g., 100000 for R$ 100k+).

## `onlyWithEmailOrPhone` (type: `boolean`):

When enabled (default), only returns active companies that have a verified corporate phone number or corporate email registered.

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

Maximum number of enriched B2B corporate leads to return (1 to 1,000).

## Actor input object example

```json
{
  "taxIds": [],
  "sector": "ALL",
  "stateUf": "",
  "companyKeyword": "",
  "minShareCapitalBrl": 0,
  "onlyWithEmailOrPhone": true,
  "maxResults": 5
}
```

# Actor output Schema

## `complianceRecords` (type: `string`):

Normalized Brazilian corporate KYB records with full QSA shareholder and director breakdowns.

# 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 = {
    "taxIds": [],
    "sector": "ALL",
    "stateUf": "",
    "companyKeyword": "",
    "minShareCapitalBrl": 0,
    "onlyWithEmailOrPhone": true,
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("brazil-data-labs/brazil-cnpj-corporate-kyc").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 = {
    "taxIds": [],
    "sector": "ALL",
    "stateUf": "",
    "companyKeyword": "",
    "minShareCapitalBrl": 0,
    "onlyWithEmailOrPhone": True,
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("brazil-data-labs/brazil-cnpj-corporate-kyc").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 '{
  "taxIds": [],
  "sector": "ALL",
  "stateUf": "",
  "companyKeyword": "",
  "minShareCapitalBrl": 0,
  "onlyWithEmailOrPhone": true,
  "maxResults": 5
}' |
apify call brazil-data-labs/brazil-cnpj-corporate-kyc --silent --output-dataset

```

## MCP server setup

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

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/rSY0np01ijdbl3FfY/builds/yUs2EnSAACNCfPzoh/openapi.json
