Skip to content
//Brazil CNPJ Scraper example\\

Supermarkets in Rio de Janeiro and Bahia

Companies whose primary activity is CNAE 4711302 (supermarkets) in RJ and BA, MEI excluded.

Updated November 30, 2026

What this example returns

This example returns up to 20 companies.

The dataset’s “Companies” view shows 15 columns: CNPJ, Legal name, Trade name, Status, Opened, CNAE, Activity, Size, Capital (BRL), Municipality, UF, Phone, Partners, HQ/branch, and Record. See every output field.

What each setting does

The input this example runs Brazil CNPJ Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

States (UF) states

RJ, BA

Search companies registered in these states. Combine with a CNAE code, municipality, legal nature or partner to narrow the list. Several states are searched together.

CNAE activity codes cnaes

4711302

7-digit CNAE codes, e.g. 6209100 (IT support) or 5611201 (restaurants). Dots, dashes and slashes are fine (6209-1/00). Matches the primary and the secondary activities unless 'Primary CNAE only' is on.

Maximum results maxItems

20

Maximum number of companies to save (and pay for). 0 means no limit.

Primary CNAE only primaryCnaeOnly

Yes

Match the CNAE codes against the primary activity only, not the secondary ones.

Default: No → this example uses Yes

MEI mei

Exclude MEI

Individual micro-entrepreneurs (MEI).

Default: Any → this example uses Exclude MEI

.json
{
  "states": [
    "RJ",
    "BA"
  ],
  "cnaes": [
    "4711302"
  ],
  "primaryCnaeOnly": true,
  "mei": "exclude",
  "maxItems": 20
}

What it costs

From about $0.0054 for 20 companies

An estimate at the lowest plan price: 20 × $0.00027 per company (One company saved to the dataset (CNPJ record with partners, address and tax data). Companies removed by your filters, unknown and invalid CNPJs are free). A run is charged for the events it reports, so one that finds fewer companies costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the Brazil CNPJ Scraper readme:

How many companies can I get?

As many as match your search. São Paulo alone has millions of CNPJs, so combine a state with a CNAE code or municipality for focused lists. Set maxItems to 0 for no limit.

Other ways to run Brazil CNPJ Scraper

All examples of Brazil CNPJ Scraper

About Brazil CNPJ Scraper

Brazilian companies from the open Receita Federal CNPJ registry: look up CNPJs or search by state, CNAE, municipality, legal nature or partner. Partners (QSA), address, phone, status, Simples/MEI and tax regimes. No login needed.

Price:
From $0.27 / 1,000 results
Developer:
Corner Ledger

Brazil CNPJ Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.