Skip to content

Brazil CNPJ Scraper

Try for free

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.

🇧🇷 Brazil CNPJ Scraper

Pull Brazilian company records from the open Receita Federal CNPJ registry: look up a list of CNPJs, or build lead lists by state, CNAE activity, municipality, legal nature or partner. Every company comes with its legal and trade name, status, opening date, activities, address, phone, share capital, Simples Nacional and MEI flags, tax regimes and the full partner list (QSA). No login, no captcha: 10,000 companies from a search in under a minute, 1,000 CNPJ lookups in about 30 seconds, for $0.75 per 1,000 companies.

✨ Why use Brazil CNPJ Scraper?

  • ⚡ Fast bulk search — up to 1,000 companies per request (10,000 companies in about 40 seconds in our tests), paced to the registry's rate limit and retried automatically when it is busy.
  • 🔎 Search the way you think — states, CNAE codes (primary or secondary), municipality names like "Campinas, SP" (no IBGE lookup needed), legal nature codes and partner CPF/CNPJ.
  • 🧹 Filters that save money — keep only active companies, a size class, head offices, MEI or Simples Nacional, an opening-date window, a share-capital range or companies with a phone. You only pay for the companies that are saved.
  • 👥 Partners included — every partner (sócio) as a readable line and as a structured record with role, masked CPF, entry date and age range.
  • 📋 Bulk CNPJ lookup — paste thousands of CNPJs in any format (with or without dots and slashes); invalid numbers are caught by their check digits before any request.
  • 🔓 No account needed — public open data, no login, no cookies, no captcha.

🎯 Use cases

  • 📈 B2B lead lists — every active IT company (CNAE 6209100) in São Paulo, every restaurant in Belo Horizonte, every EPP in a region.
  • 🕵️ KYC and due diligence — verify a supplier's status, opening date, capital and partners before you sign.
  • 💳 Credit and risk — status, size class, capital, tax regime history and special situations per CNPJ.
  • 🧭 Market sizing — count companies by CNAE, state or municipality, split by MEI, Simples Nacional or size.
  • 🧾 Accounting and tax prospects — find Simples Nacional or MEI companies opened in the last months.
  • 📰 Research and journalism — map every company a partner (CPF or CNPJ) is part of.

🚀 How to use

  1. Pick one or more states and add a CNAE code, a municipality or another search field. Or paste CNPJ numbers to look companies up directly.
  2. Optionally set filters (status, size, MEI, Simples Nacional, opening date, capital, phone).
  3. Set Maximum results (0 means no limit).
  4. Click Start and download the results as JSON, CSV, Excel, XML or HTML, or read them through the API.

📥 Input

FieldWhat it does
statesTwo-letter state codes (UF), e.g. ["SP", "RJ"].
cnaes7-digit CNAE codes, e.g. 6209100. Matches primary and secondary activities.
citiesMunicipality names ("Campinas, SP", "Recife") or IBGE codes (3550308).
cnpjsCNPJ numbers to look up directly. When given, the search fields are not used.
maxItemsMaximum companies to save. 0 = no limit.
legalNaturesLegal nature codes, e.g. 2062 (Ltda.), 2135 (Empresário Individual).
primaryCnaeOnlyMatch CNAE codes against the primary activity only.
partnersPartner CPF (full or masked ***456789**), partner CNPJ or 8-digit CNPJ base.
registrationStatus, companySizes, headOfficeOnly, requirePhone, mei, simplesNacional, openedFrom, openedTo, minCapital, maxCapitalResult filters applied before saving.
maxScannedCompaniesWith filters on, how many search results to check at most (default 200,000).

Search example: active IT companies in Campinas opened since 2024.

{
  "states": ["SP"],
  "cnaes": ["6209100"],
  "cities": ["Campinas, SP"],
  "registrationStatus": ["ATIVA"],
  "openedFrom": "2024-01-01",
  "maxItems": 100
}

Lookup example:

{
  "cnpjs": ["00.000.000/0001-91", "33683111000280"]
}

📤 Output

One row per company. The default table shows the key columns; the Partners view has one row per partner and the Contacts view shows address and phone.

FieldDescription
cnpj, cnpj_formatadoCNPJ as 14 digits and formatted
razao_social, nome_fantasiaLegal and trade name
matriz_filialMATRIZ (head office) or FILIAL (branch)
situacao_cadastral, situacao_cadastral_motivo, data_situacao_cadastralStatus, reason and date
data_aberturaOpening date
cnae_principal_codigo, cnae_principal_descricao, cnaes_secundariosActivities
natureza_juridica_codigo, natureza_juridica, porte, capital_socialLegal form, size class, share capital (BRL)
logradouro, numero, complemento, bairro, municipio, municipio_codigo_ibge, uf, cep, endereco_completoAddress
telefone1, telefone2, fax, emailContacts as registered
simples_nacional, mei and their dates, regime_tributarioTax regimes
qsa, qsa_count, sociosPartners
source_urlRegistry record

Example row from a test run (lists shortened, partner name replaced with a fictional one):

{
  "cnpj": "00000000000191",
  "cnpj_formatado": "00.000.000/0001-91",
  "razao_social": "BANCO DO BRASIL SA",
  "nome_fantasia": "DIRECAO GERAL",
  "matriz_filial": "MATRIZ",
  "situacao_cadastral": "ATIVA",
  "situacao_cadastral_motivo": "SEM MOTIVO",
  "data_situacao_cadastral": "2005-11-03",
  "data_abertura": "1966-08-01",
  "cnae_principal_codigo": "6422100",
  "cnae_principal_descricao": "Bancos múltiplos, com carteira comercial",
  "cnaes_secundarios": ["6499999 — Outras atividades de serviços financeiros não especificadas anteriormente"],
  "natureza_juridica_codigo": "2038",
  "natureza_juridica": "Sociedade de Economia Mista",
  "porte": "DEMAIS",
  "capital_social": 120000000000,
  "logradouro": "SAUN QUADRA 5 BLOCO B TORRE I, II, III",
  "numero": "SN",
  "bairro": "ASA NORTE",
  "municipio": "BRASILIA",
  "municipio_codigo_ibge": "5300108",
  "uf": "DF",
  "cep": "70040912",
  "telefone1": "6134939002",
  "fax": "6134931040",
  "email": null,
  "simples_nacional": false,
  "mei": false,
  "regime_tributario": [{"ano": 2024, "cnpj_da_scp": null, "forma_de_tributacao": "LUCRO REAL", "quantidade_de_escrituracoes": 1}],
  "orgao_publico": false,
  "qsa": ["MARIA EXEMPLO DA SILVA — Diretor — id: ***123456** — entry: 2023-05-17"],
  "qsa_count": 41,
  "socios": [{"nome": "MARIA EXEMPLO DA SILVA", "qualificacao": "Diretor", "documento": "***123456**", "tipo": "PESSOA FISICA", "data_entrada": "2023-05-17", "faixa_etaria": "Entre 41 a 50 anos"}],
  "source_url": "https://minhareceita.org/00000000000191"
}

💰 Pricing

$0.75 per 1,000 companies saved ($0.00075 per company), plus a small platform usage fee for compute and proxy traffic. Example: 1,000 companies cost $0.75 in result fees plus less than one cent of platform usage (we measured about $0.001 for a 1,000-company search and $0.003 for 1,000 CNPJ lookups). Companies dropped by your filters, CNPJs that do not exist and invalid numbers are free.

❓ FAQ

Is it legal? The CNPJ registry is public open data that the Receita Federal publishes under Brazil's access-to-information law. Partner CPFs are masked by the registry itself. You are responsible for how you use personal data (LGPD).

Do I need a login or a proxy? No. The default datacenter proxy works.

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.

Why is the email empty? The open registry data this actor reads does not publish email addresses, so email stays empty. Phones are included when registered.

How fresh is the data? The registry mirror is reloaded from the official Receita Federal files roughly once a month, so a record can be a few weeks old.

Can I schedule it or use the API? Yes. Save your input as a task, schedule it (for example monthly), and read the results with the API or an integration.

⚠️ Limits

  • No emails: the open registry data does not include them.
  • Search across the whole country with only a partner document can time out at the source; add a state.
  • The registry search has a shared rate limit (about one page of 1,000 companies every 2–3 seconds), so 100,000 companies take roughly 4–5 minutes.
  • Municipality names must be Brazilian Portuguese names (accents optional); ambiguous names are searched in every state unless you add the state.
  • The data is a monthly snapshot, not a live query of the Receita Federal website.

Related actors

G2
4.7/5
Excellent
Trustpilot

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. The advantage lasts forever.

No credit card. No setup calls.