# Enrich a CNPJ column pasted from Excel or Google Sheets

**Use case:** 

Paste a column of Brazilian CNPJs straight from Excel or Google Sheets (any separator, with or without punctuation) and get one clean row per company: legal name, trade name, registration status, main CNAE activity, city, state and company size. Export the result back to CSV, Excel or JSON.

## Input

```json
{
  "cnpjs": [
    "00.000.000/0001-91",
    "33.683.111/0002-80",
    "60.701.190/0001-04"
  ],
  "cnpjText": "00.000.000/0001-91\n33.000.167/0001-01\n60.701.190/0001-04\n33.592.510/0001-54",
  "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 "Enrich a CNPJ column pasted from Excel or Google Sheets". [Sign up or log in](https://console.apify.com/create-task-from-example/TNODoLCKYAbILsH65) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Enrich a CNPJ column pasted from Excel or Google Sheets" 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, CNPJs (paste text), and more, to match your specific use case.

### 3. Receive the "Enrich a CNPJ column pasted from Excel or Google Sheets" 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 "Enrich a CNPJ column pasted from Excel or Google Sheets" task via API](https://apify.com/frankely84/brazil-cnpj-bulk-lookup.md).

## FAQ

### What does the CNPJ spreadsheet enrichment task return?

The CNPJ spreadsheet enrichment 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 CNPJ spreadsheet enrichment 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 CNPJ spreadsheet enrichment 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 CNPJ spreadsheet enrichment 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 CNPJ spreadsheet enrichment 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`).
