# CNPJ lookup: Brazilian company data from Receita Federal

**Use case:** 

Look up any Brazilian CNPJ and get the company record from the Receita Federal open data: legal and trade name, status (ATIVA, BAIXADA...), opening date, main CNAE activity, legal nature, size, share capital, Simples/MEI, address and phones. Paste one CNPJ or hundreds, with or without punctuation. Export to CSV, Excel or JSON.

## Input

```json
{
  "cnpjs": [
    "71.673.990/0001-77",
    "18.236.120/0001-58",
    "03.007.331/0001-41",
    "14.380.200/0001-21"
  ],
  "cities": [],
  "cnaes": [],
  "includeSecondaryCnaes": false,
  "activeOnly": true,
  "headOfficeOnly": false,
  "withPhoneOnly": false,
  "applyFiltersToLookups": false,
  "includeNotFound": false,
  "includePartners": false,
  "includeTaxRegime": false,
  "maxItems": 100
}
```

## Output

```json
{
  "cnpjFormatted": {
    "label": "CNPJ",
    "format": "string"
  },
  "companyName": {
    "label": "Company name",
    "format": "string"
  },
  "tradeName": {
    "label": "Trade name",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "mainCnaeFormatted": {
    "label": "Main cnae formatted",
    "format": "string"
  },
  "mainCnaeDescription": {
    "label": "Main cnae description",
    "format": "string"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "state": {
    "label": "State",
    "format": "string"
  },
  "phones": {
    "label": "Phones",
    "format": "array"
  },
  "companySize": {
    "label": "Company size",
    "format": "string"
  },
  "openingDate": {
    "label": "Opening date",
    "format": "string"
  }
}
```

## How it works

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

The CNPJ Lookup - Consulta CNPJ em Lote & Brazil Company Leads Actor is ready to run with the inputs already set for "CNPJ lookup: Brazilian company data from Receita Federal". [Sign up or log in](https://console.apify.com/create-task-from-example/ThSA65FLjs5bDDOvP) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "CNPJ lookup: Brazilian company data from Receita Federal" task

The CNPJ Lookup - Consulta CNPJ em Lote & Brazil Company Leads Actor will start running based on the input automatically. You can also change all the input fields, like CNPJs to look up, cities, and more, to match your specific use case.

### 3. Receive the "CNPJ lookup: Brazilian company data from Receita Federal" 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, company name, trade 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 "CNPJ lookup: Brazilian company data from Receita Federal" task via API](https://apify.com/kalilfagundes.w/cnpj-enrichment.md).

## About this Actor

This example demonstrates how to use [CNPJ Lookup - Consulta CNPJ em Lote & Brazil Company Leads](https://apify.com/kalilfagundes.w/cnpj-enrichment.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/kalilfagundes.w/cnpj-enrichment.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/kalilfagundes.w/cnpj-enrichment.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`).
