Brazil CNPJ Leads & Lookup: Companies by CNAE, City, Email avatar

Brazil CNPJ Leads & Lookup: Companies by CNAE, City, Email

Pricing

from $2.00 / 1,000 companies

Go to Apify Store
Brazil CNPJ Leads & Lookup: Companies by CNAE, City, Email

Brazil CNPJ Leads & Lookup: Companies by CNAE, City, Email

Build B2B lead lists of Brazilian companies by CNAE, state, municipality and legal form, or bulk-enrich CNPJs. Active companies only, MEIs left out, with registered email, phones, partners (QSA), address and Simples status. $2 per 1,000 companies.

Pricing

from $2.00 / 1,000 companies

Rating

0.0

(0)

Developer

Starry Night

Starry Night

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Features

Limited permissions

Share

Brazil CNPJ Leads & Lookup: companies by CNAE, city and state, with email

Brazil CNPJ Leads & Lookup builds B2B lead lists of Brazilian companies from Receita Federal's CNPJ open data. Pick a CNAE (activity), state, municipality and legal form, and get active companies with their registered email and phones, partners (QSA), address, size, share capital and Simples/MEI status. Lookup mode enriches a list of CNPJs you already have.

  • Real lead lists, not raw registry dumps. Active companies only by default, MEIs and sole traders left out, and closed (BAIXADA, INAPTA) companies dropped before you pay for them.
  • Email and phone on every row where Receita has one. Each company is enriched with one lookup at OpenCNPJ, which publishes the email that the free Minha Receita search leaves out. "Only with email" and "Only with phone" drop the rest for free.
  • Weekly or monthly schedules. "Only new since last run" remembers which companies you already got and continues the scan where the last run stopped.
  • Simple pricing. $2.00 per 1,000 companies saved. No start fee. Closed, filtered-out, not-found and failed CNPJs cost nothing.

What you get

One row per CNPJ establishment (head office or branch):

FieldWhat it is
cnpj, cnpjFormatted, cnpjBaseCNPJ (14 characters), as XX.XXX.XXX/XXXX-XX, and the 8-character base shared by head office and branches
razaoSocial, nomeFantasiaLegal name and trade name
matrizFilialMATRIZ (head office) or FILIAL (branch)
situacaoCadastral, dataSituacaoCadastral, motivoSituacaoRegistration status (ATIVA, BAIXADA, INAPTA, SUSPENSA, NULA), its date and reason
dataInicioAtividadeOpening date
naturezaJuridicaLegal form {codigo, descricao}, e.g. 2062 Sociedade Empresária Limitada
porte, capitalSocialSize class (ME, EPP, DEMAIS) and share capital in BRL
opcaoSimples, dataOpcaoSimples, dataExclusaoSimples, opcaoMei, isMeiSimples Nacional and MEI status
cnaePrincipal, cnaesSecundariosPrimary and secondary CNAEs with descriptions
endereco{tipoLogradouro, logradouro, numero, complemento, bairro, cep, municipio, codigoMunicipioIbge, codigoMunicipioSiafi, uf}
emailEmail registered with Receita Federal
telefonePrincipal, telefonesRegistered phones, formatted and in E.164 (+5519...)
qsaPartners and officers: name, type, role, entry date, age band, masked CPF (as published)
sanctions, federalContractsOptional: CEIS, CNEP and CEPIM federal sanctions and a federal-contracts summary
isNewSinceLastRun, contactsWithheld, lgpdAnonimizadoRun and privacy flags (see the FAQ)
source, sourceUrls, retrievedAtProvenance: registry, which service each part came from, Receita snapshot month, links

Each run also writes a summary (OUTPUT in the key-value store): rows scanned, companies saved, how many were left out and why, CNPJs not found or invalid, and the source snapshot.

How to use it

1. Lead list: restaurants in Campinas with email.

{
"mode": "search",
"municipios": ["Campinas/SP"],
"cnaes": ["5611201"],
"onlyWithEmail": true,
"maxResults": 500
}

2. Several cities and activities, any CNAE position, LTDA only. Secondary CNAEs catch companies that list the activity second.

{
"mode": "search",
"municipios": ["São Paulo/SP", "Campinas/SP", "3304557"],
"cnaes": ["6201-5/01", "6202-3/00"],
"includeSecondaryCnae": true,
"naturezasJuridicas": ["2062"],
"onlyWithPhone": true,
"maxResults": 2000,
"maxScanPages": 50
}

3. Weekly schedule: only companies you have not received yet. Schedule this in Apify (Schedules) and connect the dataset to your CRM, Google Sheets, Make, Zapier or n8n.

{
"mode": "search",
"ufs": ["SC"],
"cnaes": ["4120400"],
"onlyWithEmail": true,
"onlyNewSinceLastRun": true,
"maxResults": 300
}

4. Bulk lookup / enrichment of your own CNPJ list. Punctuation is optional, leading zeros lost in spreadsheets are restored, and the new alphanumeric CNPJs are accepted. In lookup mode every status is returned unless you set status.

{
"mode": "lookup",
"cnpjs": ["33.000.167/0001-01", "00093791000141"],
"includeSanctionsAndContracts": true
}

Municipalities can be written as a name with its state (Campinas/SP, Belo Horizonte - MG), a unique name alone, a 7-digit IBGE code (3509502) or a Receita/SIAFI code (6291). A name that exists in several states (for example "Bom Jesus") needs its state.

Output example

A real lookup row (run on 2026-11-08; partner and secondary-CNAE lists shortened):

{
"cnpj": "33000167000101",
"cnpjFormatted": "33.000.167/0001-01",
"cnpjBase": "33000167",
"razaoSocial": "PETROLEO BRASILEIRO S A PETROBRAS",
"nomeFantasia": "PETROBRAS - EDISE",
"matrizFilial": "MATRIZ",
"situacaoCadastral": "ATIVA",
"dataSituacaoCadastral": "2005-11-03",
"motivoSituacao": "SEM MOTIVO",
"situacaoEspecial": null,
"dataInicioAtividade": "1966-09-28",
"naturezaJuridica": { "codigo": "2038", "descricao": "Sociedade de Economia Mista" },
"porte": "DEMAIS",
"porteDescricao": "Demais",
"capitalSocial": 205431960490.52,
"opcaoSimples": null,
"dataOpcaoSimples": null,
"dataExclusaoSimples": null,
"opcaoMei": null,
"isMei": false,
"cnaePrincipal": { "codigo": "0600001", "codigoFormatado": "0600-0/01", "descricao": "Extração de petróleo e gás natural" },
"cnaesSecundarios": [
{ "codigo": "1921700", "codigoFormatado": "1921-7/00", "descricao": "Fabricação de produtos do refino de petróleo" }
],
"endereco": {
"tipoLogradouro": "AVENIDA",
"logradouro": "REPUBLICA DO CHILE",
"numero": "65",
"complemento": null,
"bairro": "CENTRO",
"cep": "20031170",
"municipio": "RIO DE JANEIRO",
"codigoMunicipioIbge": "3304557",
"codigoMunicipioSiafi": "6001",
"uf": "RJ"
},
"email": "cc-rfisc@petrobras.com.br",
"telefonePrincipal": "(21) 2166-0000",
"telefones": [
{ "ddd": "21", "numero": "21660000", "formatted": "(21) 2166-0000", "e164": "+552121660000", "isFax": false }
],
"qsa": [
{
"nome": "WILLIAM FRANCA DA SILVA",
"tipo": "Pessoa Física",
"qualificacao": "Diretor",
"dataEntradaSociedade": "2023-04-17",
"faixaEtaria": "61 a 70 anos",
"cpfCnpjMascarado": "***487787**",
"paisSocio": null,
"nomeRepresentanteLegal": null
}
],
"isNewSinceLastRun": null,
"contactsWithheld": false,
"lgpdAnonimizado": false,
"source": {
"registry": "Receita Federal CNPJ open data",
"searchVia": null,
"recordVia": "api.opencnpj.org",
"contactsVia": "api.opencnpj.org",
"receitaSnapshot": "2026-10",
"sourceUpdatedAt": "2026-11-01T21:47:27.1957841Z"
},
"sourceUrls": [
"https://api.opencnpj.org/33000167000101",
"https://minhareceita.org/33000167000101"
],
"retrievedAt": "2026-11-09T01:02:18.064Z"
}

In a test search on 2026-11-08 (active non-MEI restaurants, CNAE 5611-2/01, in Campinas, only with phone), 296 of the 300 companies saved had a registered email. The scan read 3,000 registry rows and took 82 seconds.

Pricing

Pay per event, no subscription and no start fee:

EventPriceWhen
Company$0.002 ($2.00 per 1,000)Each company saved to your dataset
Sanctions and contracts check$0.002Only if you turn on "Add federal sanctions and contracts": once per company saved, whether or not anything is found

Scanning is free. You are never charged for closed companies, MEIs and sole traders that are left out, companies without email when you ask for email only, CNPJs that are not found or invalid, or failed lookups. Set "Max companies" or a maximum cost per run to cap the bill.

How it works and limits

  • Search uses the paginated search of Minha Receita, which filters by state, municipality, CNAE (primary, or primary plus secondary) and legal form. Each page holds up to 1,000 registry rows, closed companies included, so a page yielded 150-400 active non-MEI companies in our tests (for example, about 170 of 1,000 for Campinas restaurants). Status, MEI, size, CEP, opening-date and head-office filters are applied to the scanned rows; raise "Max pages to scan" for big lists or rare filters. Runs of 50 companies or fewer read 500-row pages (each counts as half a page), and the Actor drops to smaller pages when the source is busy.
  • Enrichment reads each remaining company once from OpenCNPJ (email, phones, Simples/MEI, partners). If OpenCNPJ is unavailable for a company, the row comes from Minha Receita without email (source.contactsVia is null), and it is dropped when you ask for email only.
  • Dates: the source cannot sort by opening date, so "Opened on or after" is applied within the scanned pages.
  • Freshness: Receita Federal publishes the CNPJ base about once a month; each row says which snapshot it comes from (source.receitaSnapshot, 2026-10 at launch). Brand-new companies appear after the next monthly release.
  • Speed and politeness: one search request at a time and at most 2 parallel OpenCNPJ lookups (about 4 per second), with retries and backoff. Minha Receita's search is experimental and answers "too busy" (HTTP 429) when its shared server is loaded; the Actor waits about a minute, retries with smaller pages, and tells you clearly if the search could not run. A run can take a few minutes when the source is busy, even for a few companies. Expect about 4-5 minutes per 1,000 companies when it is not busy (300 companies took 82 seconds in a test).
  • Only new since last run keeps its memory in a key-value store named brazil-cnpj-leads-memory in your own Apify account, one record per filter set (use "Memory name" to keep two schedules apart). It remembers up to 300,000 companies per filter set. Do not let two runs with the same filters and memory name overlap: each reads the memory when it starts and saves it when it ends, so overlapping runs can return the same companies.

Data source and terms

  • Receita Federal do Brasil, CNPJ open data (Cadastro Nacional da Pessoa Jurídica), published as open data under Brazil's Access to Information Law. This Actor is unofficial and is not affiliated with or endorsed by Receita Federal.
  • Minha Receita (search and fallback lookups), a free open-source API over the same data, "sem cadastro, sem chave, sem cobrança". Consider supporting the project.
  • OpenCNPJ (email, phones, Simples/MEI and the optional sanctions and contracts datasets from Portal da Transparência), a free API whose FAQ says use is free "inclusive para fins comerciais". OpenCNPJ describes its API as meant for point lookups by CNPJ and recommends its BigQuery dataset or NDJSON downloads for bulk enrichment and large-scale analysis. So this Actor calls the API only for companies that already passed the free filters, at a modest pace (at most 2 parallel requests, about 4 per second) with backoff on HTTP 429. For millions of rows, OpenCNPJ's bulk downloads are the better tool.
  • Municipality names and IBGE/SIAFI codes come from municipios-brasileiros (MIT licence), bundled with the Actor.
  • The Actor does not use BrasilAPI (its robots.txt disallows its API paths) and does not log in anywhere.

FAQ

Is this legal? It reads public registry data that Receita Federal publishes as open data, through two free public APIs, without logging in or bypassing anything: Minha Receita states it has no usage limits, and OpenCNPJ states that use is free, including commercial use. You are responsible for how you use the contacts: B2B prospecting in Brazil must follow the LGPD (for example, legitimate interest, a clear opt-out and respect for objections) and anti-spam rules.

Why are MEIs and sole traders left out by default? An MEI or Empresário Individual is one person, so its email and phone are personal contacts. They are left out by default. If you turn "Leave out MEIs and sole traders" off, these companies are included but their email and phones are withheld (contactsWithheld: true).

Whose email is it? The address the company gave Receita Federal when registering or updating its CNPJ. For many small companies it is the accountant's address. The Actor does not guess or verify emails.

Why do some rows have no email or phone? Receita has none for that company, the phone is a placeholder (such as 1111-1111, which is dropped), or OpenCNPJ was unavailable for it. Turn on "Only with email" or "Only with phone" to receive, and pay for, only rows that have them.

What does lgpdAnonimizado mean? OpenCNPJ anonymizes personal fields when the data subject asks under the LGPD. Such rows keep that flag, and the Actor does not fill those fields from elsewhere.

How fresh is the data? Monthly, following Receita's release cycle. See source.receitaSnapshot and source.sourceUpdatedAt on each row.

Can I get every company in a state? A state-only search is very broad and Minha Receita may refuse it as too costly. Add a CNAE or municipality, or split the job by municipality.

Can I use it from code or AI agents? Yes: the Apify API, the Apify MCP server (AI agents read the input descriptions), and integrations such as Make, Zapier, n8n and Google Sheets. Export as JSON, CSV or Excel.

Something is wrong or missing. Open an issue on the Issues tab with the run link; we answer there.

Em português

Leads de empresas brasileiras por CNAE, município e UF, com email e telefone, a partir dos dados abertos do CNPJ da Receita Federal. Modo busca: listas de empresas ativas (sem MEI e sem empresário individual, por padrão) filtradas por CNAE principal ou secundário, UF, município (nome, código IBGE ou SIAFI), natureza jurídica, porte, CEP e data de abertura, com email e telefones cadastrados, QSA, endereço, capital social e Simples/MEI. Modo consulta: enriquecimento em lote de uma lista de CNPJs (inclusive o CNPJ alfanumérico). Opção "apenas novas desde a última execução" para agendamentos semanais ou mensais. US$ 2,00 por 1.000 empresas, sem taxa de início; empresas baixadas, filtradas ou não encontradas não são cobradas. Ferramenta não oficial; fontes: Receita Federal, Minha Receita e OpenCNPJ.