# Look up Brazilian companies by CNPJ in bulk

**Use case:** 

Enrich a list of Brazilian CNPJ numbers with official Receita Federal registry data: legal name, trade name, registration status, opening date, CNAE activity codes, legal nature, share capital and full address. This example checks 5 large companies (Banco do Brasil, Petrobras, Itaú, Vale, Ambev). Paste your own CNPJ list to enrich a CRM or spreadsheet.

## Input

```json
{
  "cnpjs": [
    "00.000.000/0001-91",
    "33.000.167/0001-01",
    "60.701.190/0001-04",
    "33.592.510/0001-54",
    "07.526.557/0001-00"
  ],
  "onlyActive": false,
  "skipSoleProprietors": false,
  "includeContacts": true,
  "includeTaxRegime": false,
  "concurrency": 8
}
```

## Output

```json
{
  "cnpjFormatted": {
    "label": "CNPJ",
    "format": "string"
  },
  "found": {
    "label": "Found",
    "format": "boolean"
  },
  "legalName": {
    "label": "Legal name",
    "format": "string"
  },
  "tradeName": {
    "label": "Trade name",
    "format": "string"
  },
  "registrationStatus": {
    "label": "Status",
    "format": "string"
  },
  "mainActivity.description": {
    "label": "Main activity"
  },
  "address.city": {
    "label": "City"
  },
  "address.state": {
    "label": "UF"
  },
  "companySize": {
    "label": "Size",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Brazil CNPJ Bulk Lookup - Consulta CNPJ em Massa Actor is ready to run with the inputs already set for "Look up Brazilian companies by CNPJ in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/yhCs6MXosn7j5XRwj) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Look up Brazilian companies by CNPJ in bulk" task

The Brazil CNPJ Bulk Lookup - Consulta CNPJ em Massa Actor will start running based on the input automatically. You can also change all the input fields, like CNPJs, only active companies (ativa), and more, to match your specific use case.

### 3. Receive the "Look up Brazilian companies by CNPJ in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as CNPJ, found, legal name, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Look up Brazilian companies by CNPJ in bulk" task via API](https://apify.com/frankely84/brazil-cnpj-bulk-lookup.md).

## FAQ

### What does the bulk CNPJ lookup task return?

The bulk CNPJ lookup task returns one row per CNPJ with legal name, trade name, registration status, opening date, CNAE activities, legal nature, size, share capital and address, plus business email and phone when registered.

### Which CNPJ formats are accepted?

The bulk CNPJ lookup task accepts CNPJs with or without punctuation (00.000.000/0001-91 or 00000000000191), including the new alphanumeric CNPJs. Invalid numbers are reported with an error.

### How much does it cost?

The bulk CNPJ lookup task costs $0.0008 per company found ($0.80 per 1,000 CNPJs). Companies skipped by the active-only or MEI filters are not charged.

### Where does the data come from?

The bulk CNPJ lookup task uses public Receita Federal open CNPJ data (via OpenCNPJ, with Minha Receita and BrasilAPI as fallbacks). It does not return partners (QSA) or personal data.

### Can I run it from my code or a spreadsheet tool?

Yes. Run the bulk CNPJ lookup task via the Apify API, the Python or JavaScript client, or integrations like Make, Zapier, n8n and Google Sheets, and export results as CSV, Excel or JSON.

## About this Actor

This example demonstrates how to use [Brazil CNPJ Bulk Lookup - Consulta CNPJ em Massa](https://apify.com/frankely84/brazil-cnpj-bulk-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/frankely84/brazil-cnpj-bulk-lookup.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/frankely84/brazil-cnpj-bulk-lookup.md

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`).
