# Bulk CNPJ lookup with partners (QSA) and status

**Use case:** 

Check a list of Brazilian CNPJs against the Receita Federal record: legal and trade name, registration status, CNAE codes, address, share capital, opening date and partners (QSA). Check digits are validated first and invalid or unregistered CNPJs are listed for free. Replace the sample CNPJs with your own list.

## Input

```json
{
  "cnpjs": [
    "33.000.167/0001-01",
    "00000000000191",
    "07526557000100"
  ],
  "includeSecondaryCnae": false,
  "onlyActive": true,
  "maxResults": 100
}
```

## Output

```json
{
  "cnpjFormatted": {
    "label": "cnpjFormatted",
    "format": "string"
  },
  "lookupStatus": {
    "label": "lookupStatus",
    "format": "string"
  },
  "legalName": {
    "label": "legalName",
    "format": "string"
  },
  "tradeName": {
    "label": "tradeName",
    "format": "string"
  },
  "registrationStatus": {
    "label": "registrationStatus",
    "format": "string"
  },
  "openingDate": {
    "label": "openingDate",
    "format": "string"
  },
  "mainCnaeCode": {
    "label": "mainCnaeCode",
    "format": "string"
  },
  "city": {
    "label": "city",
    "format": "string"
  },
  "state": {
    "label": "state",
    "format": "string"
  },
  "partnerCount": {
    "label": "partnerCount",
    "format": "number"
  },
  "shareCapitalBrl": {
    "label": "shareCapitalBrl",
    "format": "number"
  }
}
```

## How it works

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

The Brazil CNPJ Lookup 🇧🇷 (Consulta CNPJ, Receita Federal, QSA) Actor is ready to run with the inputs already set for "Bulk CNPJ lookup with partners (QSA) and status". [Sign up or log in](https://console.apify.com/create-task-from-example/5r8E3K28svdRVaKVV) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bulk CNPJ lookup with partners (QSA) and status" task

The Brazil CNPJ Lookup 🇧🇷 (Consulta CNPJ, Receita Federal, QSA) Actor will start running based on the input automatically. You can also change all the input fields, like CNPJs, search: also match secondary activities, and more, to match your specific use case.

### 3. Receive the "Bulk CNPJ lookup with partners (QSA) and status" 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 cnpjformatted, lookupstatus, legalname, 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 "Bulk CNPJ lookup with partners (QSA) and status" task via API](https://apify.com/tagadanar/brazil-cnpj-lookup.md).

## FAQ

### What data do I get for a Brazilian CNPJ?

The Receita Federal record: legal and trade name, registration status, CNAE codes, address, share capital, opening date, Simples Nacional and MEI flags, and the partners list (QSA).

### Does it accept CNPJs with dots, slashes or lost zeros?

Yes. Formatted or raw CNPJs, numbers that lost leading zeros and the new alphanumeric format all work. Check digits are validated first, and invalid CNPJs are reported with a reason and not charged.

### Can I search Brazilian companies by name?

No, there is no name search. You can look up known CNPJs, or search by CNAE code in cnaeCodes, narrowed with states or cityCodes. onlyActive skips closed registrations.

### Why are partner tax IDs masked?

The Receita Federal publishes partner CPFs masked, and the actor returns only what the registry publishes. Nothing is added from outside the official record.

## About this Actor

This example demonstrates how to use [Brazil CNPJ Lookup 🇧🇷 (Consulta CNPJ, Receita Federal, QSA)](https://apify.com/tagadanar/brazil-cnpj-lookup.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tagadanar/brazil-cnpj-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/tagadanar/brazil-cnpj-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`).
