Skip to the content

Scraper API

CNPJ

cnpj.companyAvailable

Brazilian company

The establishment: registered and trade name, head office or branch, legal form, registration status and its date, main and other activities (CNAE), size, share capital, tax regime, address, and the partners that are companies.

Give it a Brazilian company's CNPJ, with or without its dots, slash and dash.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
1, 1 required
Record
24 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/cnpj.company/runs

{
"input": {
"cnpj": "33000167000101"
}
}

sent, and answered

a record of the run24 fields

{
cnpj: "33000167000101"
url: "https://minhareceita.org/33000167000101"
legal_name: "PETROLEO BRASILEIRO S A PETROBRAS"
trade_name: "PETROBRAS - EDISE"
branch: "head_office"
legal_form_code: "2038"
legal_form: "Sociedade de Economia Mista"
status: "ATIVA"
status_date: "2005-11-03"
… 15 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 24 fields are set down here; the whole record is below.

minhareceita.org
The page Brazilian company reads, as a browser shows it
The page this scraper reads, photographed in a browser on 24 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Verify a Brazilian supplier
Read status, status_date and legal_form before you pay an invoice. A company that is BAIXADA or INAPTA is not trading.
Classify by activity
Use main_activity and secondary_activities (CNAE codes) to sort companies by what they actually do.
See who owns a company
Read corporate_partners for the companies among its partners, with their country and the day they entered.

What you send

A Brazilian company's CNPJ, with or without its dots, slash and dash. It is the one input.

cnpjstring Required
The CNPJ, 14 characters checked by their check digits; the new kind with letters is read too.

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/cnpj.company/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"cnpj":"33000167000101"}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("cnpj.company", {"cnpj": "33000167000101"})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("cnpj.company", { cnpj: "33000167000101" });
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "cnpj.company", map[string]any{"cnpj": "33000167000101"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("cnpj.company", Map.of("cnpj", "33000167000101"));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run cnpj.company --input-json '{"cnpj":"33000167000101"}'

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The establishment: registered and trade name, head office or branch, legal form, registration status and its date, main and other activities (CNAE), size, share capital, tax regime, address, and the partners that are companies. A record has 24 fields. One we could not read is null, never an empty string or a zero.

A record cnpj.company returned
{
  "cnpj": "33000167000101",
  "url": "https://minhareceita.org/33000167000101",
  "legal_name": "PETROLEO BRASILEIRO S A PETROBRAS",
  "trade_name": "PETROBRAS - EDISE",
  "branch": "head_office",
  "legal_form_code": "2038",
  "legal_form": "Sociedade de Economia Mista",
  "status": "ATIVA",
  "status_date": "2005-11-03",
  "status_reason": null,
  "special_situation": null,
  "special_situation_date": null,
  "activity_start_date": "1966-09-28",
  "main_activity": {
    "code": "0600001",
    "description": "Extração de petróleo e gás natural"
  },
  "secondary_activities": [
    {
      "code": "1921700",
      "description": "Fabricação de produtos do refino de petróleo"
    },
    {
      "code": "3520401",
      "description": "Produção de gás; processamento de gás natural"
    },
    {
      "code": "3520402",
      "description": "Distribuição de combustíveis gasosos por redes urbanas"
    }
  ],
  "size": "DEMAIS",
  "share_capital": 205431960000,
  "simples_nacional": null,
  "tax_regime": "LUCRO REAL",
  "tax_regime_year": 2024,
  "address": {
    "street": "AVENIDA REPUBLICA DO CHILE, 65",
    "district": "CENTRO",
    "city": "RIO DE JANEIRO",
    "city_ibge_code": "3304557",
    "state": "RJ",
    "postal_code": "20031170",
    "country": null
  },
  "federative_entity": null,
  "corporate_partners": [],
  "fetched_at": "2026-11-24T22:35:23.340101Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: secondary_activities: 5 items, the first 3 shown.

The fields of a record

cnpjstring
The establishment's CNPJ, 14 characters, e.g. 33000167000101.
urlstring
The record as Minha Receita serves it.
legal_namestring
The company's registered name (razão social).
trade_namestring or null
The establishment's trade name (nome fantasia).
branchstring or null
head_office (matriz) or branch (filial).
legal_form_codestring or null
The legal form, as the register's four-digit code, e.g. 2038.
legal_formstring or null
The legal form in Portuguese, e.g. Sociedade de Economia Mista.
statusstring or null
The registration status, e.g. ATIVA, BAIXADA, INAPTA, SUSPENSA.
status_datestring or null
The day it took that status, YYYY-MM-DD.
status_reasonstring or null
Why, where the register says.
special_situationstring or null
A special situation, e.g. a judicial recovery, where there is one.
special_situation_datestring or null
The day of that situation, YYYY-MM-DD.
activity_start_datestring or null
The day the establishment started, YYYY-MM-DD.
main_activityobject or null
Its main activity (CNAE).Holds code, description.
secondary_activitieslist of objects
Its other activities.Each holds code, description.
sizestring or null
The register's size, e.g. MICRO EMPRESA, EMPRESA DE PEQUENO PORTE, DEMAIS.
share_capitalnumber or null
The company's share capital, in reais.
simples_nacionalboolean or null
Whether the company is taxed under the Simples Nacional.
tax_regimestring or null
How it was taxed in the latest year the register holds, e.g. LUCRO REAL.
tax_regime_yearinteger or null
That year.
addressobject or null
The establishment's address.Holds street, district, city, city_ibge_code, state, postal_code, country.
federative_entitystring or null
The government body responsible, for a public body.
corporate_partnerslist of objects
The partners that are companies. People among the partners are not returned.Each holds name, document, role, since, country.
fetched_atdatetime
When the register was asked, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • Partners who are people are not returned, nor the person who represents a partner, nor the register's e-mail address and telephone numbers.
  • A person's record ends as failed with the reason sole_trader: a sole trader or MEI, a single-owner EIRELI, a one-lawyer firm, or a name that holds a CPF. A limited company with a single member (form 2062) is a legal person, and is returned.
  • The register is published once a month, so a change can take weeks to show.

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Brazilian company return?

The establishment: registered and trade name, head office or branch, legal form, registration status and its date, main and other activities (CNAE), size, share capital, tax regime, address, and the partners that are companies. A record has 24 fields, among them cnpj, url, legal_name, trade_name, branch and legal_form_code. A value that could not be read is null, never an empty string or a zero.

What do I send?

A Brazilian company's CNPJ, with or without its dots, slash and dash. The input cnpj is required.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

What does it not do?

Partners who are people are not returned, nor the person who represents a partner, nor the register's e-mail address and telephone numbers. A person's record ends as failed with the reason sole_trader: a sole trader or MEI, a single-owner EIRELI, a one-lawyer firm, or a name that holds a CPF. A limited company with a single member (form 2062) is a legal person, and is returned. The register is published once a month, so a change can take weeks to show.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id cnpj.company and the same input. It costs what the same API call costs.

CNPJ

Brazilian companies from the federal CNPJ register: legal and trade name, status, activities, size, share capital, address and corporate partners.

CNPJ on the line-up

Where
Brazil

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.