# Brazil CNPJ Lookup & Checker — Receita Federal · $0.005/lookup (`ambolt/brazil-cnpj-lookup`) Actor

Check a Brazilian CNPJ, numeric or alphanumeric, and get the official company record from Receita Federal open data: legal name, active or closed status, CNAE code, address, start date, size. Check digits validated first, up to 100 CNPJ per run. No partners or contacts. Failures are free.

- **URL**: https://apify.com/ambolt/brazil-cnpj-lookup.md
- **Developed by:** [Ambolt](https://apify.com/ambolt) (community)
- **Categories:** AI, Agents, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 lookups

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 CNPJ Lookup & Checker — Receita Federal · $0.005/lookup

Check a Brazilian CNPJ, numeric or alphanumeric, and get the official company record from Receita Federal open data: legal name, active or closed status, CNAE code, address, start date, size. Check digits validated first, up to 100 CNPJ per run. No partners or contacts. Failures are free.

Look up a Brazilian company by its 14-digit CNPJ number (with or without dots, slash and dash): legal name, trade name, legal form, active or closed status, start date, address, CNAE industry code and size class, from the Receita Federal open data (served by BrasilAPI). Checks the CNPJ check digits first. Company-level only: no partners, no phones, no e-mail, no individual entrepreneurs (MEI).

### What you get

Structured JSON for each run, ready for spreadsheets, alerts and AI agents.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `cnpj` | string |  | One CNPJ, for example 33.000.167/0001-01, 33000167000101 or an alphanumeric CNPJ such as 12.ABC.345/01DE-35. |
| `cnpjs` | array |  | Up to 100 CNPJ numbers in one run (Apify Actor only). Each CNPJ that finds an active registry record is one billable result. |

### Example input

```json
{
  "cnpj": "00.000.000/0001-91"
}
```

### Example output (sample run 2026-10-05)

```json
{
  "cnpj": "00000000000191",
  "matched": true,
  "bestMatch": {
    "country": "BR",
    "registry": "Receita Federal (CNPJ)",
    "registryId": "00000000000191",
    "name": "BANCO DO BRASIL SA",
    "tradeName": "DIRECAO GERAL",
    "legalForm": "Sociedade de Economia Mista",
    "legalFormCode": "2038",
    "status": "active",
    "incorporationDate": "1966-08-01",
    "address": {
      "street": "SAUN QUADRA 5 BLOCO B TORRE I, II, III SN",
      "postalCode": "70040912",
      "city": "BRASILIA",
      "region": "DF",
      "country": "BR"
    },
    "industry": [
      {
        "scheme": "CNAE",
        "code": "6422100",
        "label": "Bancos múltiplos, com carteira comercial"
      }
    ],
    "size": "DEMAIS",
    "sourceUrl": "https://brasilapi.com.br/api/cnpj/v1/00000000000191",
    "licence": "Open government data (Receita Federal), served by BrasilAPI (MIT)",
    "matchScore": 100,
    "matchReason": "id match"
  },
  "notes": [],
  "source": "Source: CNPJ registry of the Receita Federal (open government data), served by BrasilAPI (MIT). Company-level fields only; individual entrepreneurs (MEI), partner lists, phones and e-mail addresses are not returned. Informational; not an official extract.",
  "checkedAt": "2026-10-05T10:04:11.941Z"
}
```

### Pricing

| Event | Price |
|---|---|
| lookup (each successful result) | $0.005 |

- Data comes from the Receita Federal open CNPJ registry through BrasilAPI, a third-party service; if it is unavailable the run fails and is not charged.
- Company-level fields only: partner lists, phones, e-mail addresses and individual entrepreneurs (MEI) are not returned.
- Alphanumeric CNPJ (issued since July 2026) are validated; whether a new number is found depends on the source registry.
- A single lookup costs one flat event; there is no separate start fee.

**Failed runs are not charged.** Free trial credits from Apify cover your first runs.

### FAQ

**Is a result guaranteed to be complete?** Each result carries the date it was read. If the upstream service is down the run fails with a clear message and no per-result charge is made.

**Can I call it from code or an AI agent?** Yes: run it through the Apify API, schedule it, or use it from MCP clients that support Apify Actors.

**Is this affiliated with the data source?** No. Source names are used descriptively; each result keeps its source attribution and licence line.

**Where do I report a problem?** Open an issue on this Actor's page; replies are written by the Ambolt service team, usually within a day.

### Review

If this Actor saved you time, a short review on its Store page helps others find it and tells us what to improve.

### Keywords

CNPJ, Brazil, company lookup, Receita Federal, KYB, company status, CNAE, razão social, supplier check

### Notes

Data comes from the source named in each result and keeps its licence and attribution. Informational only, not financial, legal or tax advice. Open an issue on the Actor page for questions; replies come under the product name.

# Actor input Schema

## `cnpj` (type: `string`):

One CNPJ, for example 33.000.167/0001-01, 33000167000101 or an alphanumeric CNPJ such as 12.ABC.345/01DE-35.

## `cnpjs` (type: `array`):

Up to 100 CNPJ numbers in one run (Apify Actor only). Each CNPJ that finds an active registry record is one billable result.

## Actor input object example

```json
{
  "cnpj": "00.000.000/0001-91"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "cnpj": "00.000.000/0001-91"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ambolt/brazil-cnpj-lookup").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 = { "cnpj": "00.000.000/0001-91" }

# Run the Actor and wait for it to finish
run = client.actor("ambolt/brazil-cnpj-lookup").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 '{
  "cnpj": "00.000.000/0001-91"
}' |
apify call ambolt/brazil-cnpj-lookup --silent --output-dataset

```

## MCP server setup

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

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/jegHbnMQM1jF7u6cI/builds/Vhtyer9S8zBO6aM7v/openapi.json
