CNPJ Lead Scraper API - Find Brazilian Companies by CNAE
Pricing
$9.00 / 1,000 per lead founds
CNPJ Lead Scraper API - Find Brazilian Companies by CNAE
Search 55M+ Brazilian companies by CNAE segment, state and size. Get legal name, address, phone, email and QSA shareholders from the official CNPJ registry. Export to JSON, CSV or Excel, or call the Batch API. Pay only per result returned. CNAE list: https://brasildados.org/lista-cnaes/
Pricing
$9.00 / 1,000 per lead founds
Rating
0.0
(0)
Developer
BrasilDados.org - Hub de APIs de Dados do Brasil
Maintained by CommunityActor stats
2
Bookmarked
124
Total users
24
Monthly active users
a day ago
Last modified
Categories
Share
B2B Lead Search API by CNAE
Find Brazilian companies by CNAE subclass, state (UF), size and registration status. Get CNPJ, economic activity, address, available contacts and shareholder structure in JSON, CSV, Excel or XML.
Features
- Search by one or more 7-digit CNAE subclasses.
- Filters by state, company size and registration status.
- Up to 5,000 establishments per run.
- One record per establishment in the Dataset.
- Batch API returning Dataset items directly.
Use cases
- Build B2B prospecting lists by segment and region.
- Map every company in a market or vertical.
- Feed a CRM with companies identified by CNAE.
- Find suppliers, partners or competitors.
How to use
- Pick a 7-digit CNAE subclass from the BrasilDados CNAE list.
- Fill in the Input with the filters you need.
- Run the Actor.
- Download the Dataset or call the Batch API.
Input
| Field | Required | Default | Description |
|---|---|---|---|
cnaes | Yes | ["6201501"] | One or more 7-digit CNAE subclasses. Accepts 6201501 or 6201-5/01. |
uf | No | all states | State code to narrow the results, for example SP. |
porte | No | all sizes | 01 micro (ME), 03 small (EPP), 05 medium or large, 00 not informed. |
situacaoCadastral | No | "02" | 02 active, 08 closed, or all for every status. |
maxResults | No | 100 | From 1 to 5,000 companies. Billing is per company returned. |
{"cnaes": ["6201501"],"uf": "SP","situacaoCadastral": "02","maxResults": 100}
Output
Each Dataset item is one establishment found. Results can be downloaded as JSON, CSV, Excel or XML.
Field names follow the official Brazilian CNPJ registry terminology, so they are kept in Portuguese and match the source data exactly.
| Field | Description |
|---|---|
cnpj and cnpjFormatado | 14-digit CNPJ and its formatted version. |
razaoSocial, nomeFantasia and matriz | Legal name, trade name and headquarters/branch flag. |
cnaePrincipal and cnaesSecundarios | Primary and secondary economic activities. |
situacaoCadastralDescricao, porteDescricao and capitalSocial | Registration status, company size and share capital. |
logradouro through enderecoCompleto | Street address, city, state, zip code and country. |
telefone1, telefone2 and email | Declared contacts, when available. |
socios | Shareholder structure (QSA) with masked documents. |
idadeEmpresaAnos through consultadoEm | Derived metrics and the query timestamp. |
Full example for the input above:
{"cnpj": "53113791000122","cnpjFormatado": "53.113.791/0001-22","matriz": true,"consultadoEm": "2026-08-22T21:03:35.348Z","razaoSocial": "TOTVS S.A.","nomeFantasia": null,"naturezaJuridica": "2046","naturezaJuridicaDescricao": "Sociedade Anônima Aberta","capitalSocial": "2962584687.27","capitalSocialNumerico": 2962584687.27,"porte": "05","porteDescricao": "Demais","enteFederativo": null,"situacaoCadastral": "02","situacaoCadastralDescricao": "Ativa","dataSituacaoCadastral": "2005-11-03","dataInicioAtividade": "1983-12-13","cnaePrincipal": {"codigo": "6201-5/01","descricao": "Desenvolvimento de programas de computador sob encomenda"},"cnaesSecundarios": [{"codigo": "6202-3/00","descricao": "Desenvolvimento e licenciamento de programas de computador customizáveis"},{"codigo": "6204-0/00","descricao": "Consultoria em tecnologia da informação"}],"logradouro": "Avenida Braz Leme","numero": "1000","complemento": null,"bairro": "Casa Verde","cep": "02511000","uf": "SP","municipioCodigo": "3550308","municipioNome": "São Paulo","pais": "76","paisDescricao": "Brasil","telefone1": "1140040015","telefone2": null,"email": "fiscal@totvs.com.br","enderecoCompleto": "Avenida Braz Leme, 1000, Casa Verde, São Paulo/SP, CEP 02511-000","idadeEmpresaAnos": 42,"idadeEmpresaDias": 15593,"tempoSituacaoAtualDias": 7597,"totalSocios": 8,"totalCnaesSecundarios": 9,"tempoMedioSociosDias": 3306,"socios": [{"nome": "Gilsomar ******","tipo": "2","tipoDescricao": "Pessoa Física","documento": "***189288**","qualificacao": "10","qualificacaoDescricao": "Diretor","dataEntrada": "2009-05-28","faixaEtariaDescricao": "41-50"},{"nome": "José ******","tipo": "2","tipoDescricao": "Pessoa Física","documento": "***456789**","qualificacao": "10","qualificacaoDescricao": "Diretor","dataEntrada": "2017-05-02","faixaEtariaDescricao": "51-60"}]}
Check the Dataset schema tab in the Apify Console for the types and descriptions of every field.
Pricing
$0.009 per company returned. No additional platform charges.
| Companies returned | Cost |
|---|---|
| 100 | $0.90 |
| 500 | $4.50 |
| 1,000 | $9.00 |
| 5,000 | $45.00 |
Batch API
Run the Actor and get the Dataset items straight back.
curl -X POST "https://api.apify.com/v2/acts/brasildados~cnpj-lead-scraper-search/run-sync-get-dataset-items" \-H "Authorization: Bearer YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"cnaes":["6201501","6204000"],"uf":"SP","maxResults":100}'
Related Actors
| Actor | When to use it |
|---|---|
| Gerador de Leads por CNAE (pt-BR) | Same search, with input and documentation in Portuguese. |
| CNPJ Data Enrichment | You already have CNPJs and want to enrich them. |
| KYC and PEP by CNPJ | PEP, sanctions and electoral donation checks. |
| Lawsuits by CNPJ | Litigation history of the company. |
| Government Contracts by CNPJ | Federal procurement history. |
FAQ
Where do I find CNAE codes?
Use the full CNAE list to search and copy codes.
Can I export to Excel?
Yes. Open the Dataset tab and choose the XLSX, CSV or JSON export.
Does it return only active companies?
By default, yes. Keep situacaoCadastral as "02". Use all to include every status.
Does it return phone, email and shareholders?
When available in the registry, yes. QSA documents are returned masked.
What is the limit per run?
Up to 5,000 companies. For larger volumes, split the search by CNAE or state.