Brazil CNPJ Leads Scraper: Empresas by CNAE, Receita Federal avatar

Brazil CNPJ Leads Scraper: Empresas by CNAE, Receita Federal

Pricing

from $2.80 / 1,000 company lead (search result)s

Go to Apify Store
Brazil CNPJ Leads Scraper: Empresas by CNAE, Receita Federal

Brazil CNPJ Leads Scraper: Empresas by CNAE, Receita Federal

CNPJ scraper that builds lead lists (lista de empresas) of Brazilian companies by CNAE code, state (UF) and city from open Receita Federal CNPJ data: legal name, trade name, size, address, phones, email and corporate partners. Look up lists of CNPJs too. MEI and personal data excluded.

Pricing

from $2.80 / 1,000 company lead (search result)s

Rating

0.0

(0)

Developer

Actor Factory

Actor Factory

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

This CNPJ scraper builds lead lists (lista de empresas) of Brazilian companies (empresas) by industry (CNAE), state and city, straight from the open Receita Federal CNPJ data (served by the open minhareceita.org API), with no API key and no login. Pick a CNAE code such as 6201501 (software development), a city such as São Paulo, and get active companies with legal name, trade name, size, legal form, share capital, opening date, secondary activities, full address, phones and corporate partners. You can also add a list of CNPJs to look up.

Built for Brazilian B2B sales teams, market mapping ("every restaurant opened in Curitiba since 2024") and data enrichment.

What CNPJ data you get

FieldDescription
cnpj14-digit CNPJ
razao_social, nome_fantasiaLegal and trade name (null for sole-proprietor/MEI businesses)
situacao_cadastralATIVA, BAIXADA, INAPTA, SUSPENSA, NULA
data_aberturaStart of activity (YYYY-MM-DD)
matriz_filial, porte, natureza_juridica, capital_socialHead office or branch, size, legal form, share capital (BRL)
opcao_simples, opcao_meiTax-regime flags
cnae_principal_codigo/descricao, cnaes_secundariosMain and secondary activities
logradouro, numero, complemento, bairro, cep, municipio, municipio_ibge, ufAddress
phones, emailCompany contacts as published by the register (the open data currently carries phones; email is usually empty)
partners_count, partner_companiesNumber of partners, and corporate (legal-entity) partners only
natural_person_businessTrue for MEI, Empresário Individual and EIRELI
url, scraped_atSource record and collection time

How to find Brazilian companies by CNAE

InputDescription
cnaeCodes7-digit CNAE codes, e.g. 6201501 or 6201-5/01. Matches main or secondary activity
primaryCnaeOnlyMatch the main activity only
citiesCity names (Portuguese) or IBGE codes; add the state to disambiguate: Santa Cruz, RN
statesTwo-letter state codes. Searching a whole state works but is slower and can be throttled by the source; prefer cities
portes, openedSinceCompany size and opening-date filters
includeInactive, includeMeiBoth off by default
cnpjsOptional extra CNPJ lookups
maxItemsResult cap

Output example

{
"cnpj": "19138940000170",
"razao_social": "SPREAD SISTEMAS E AUTOMACAO LTDA",
"nome_fantasia": null,
"natural_person_business": false,
"situacao_cadastral": "ATIVA",
"data_abertura": "1984-04-05",
"matriz_filial": "MATRIZ",
"porte": "DEMAIS",
"natureza_juridica": "Sociedade Empresária Limitada",
"capital_social": 15565222,
"cnae_principal_codigo": 6201501,
"cnae_principal_descricao": "Desenvolvimento de programas de computador sob encomenda",
"logradouro": "RUA DR FERNANDES COELHO",
"numero": "64",
"bairro": "PINHEIROS",
"cep": "05423911",
"municipio": "SAO PAULO",
"uf": "SP",
"phones": ["1138746000"],
"email": null,
"partners_count": 3,
"partner_companies": [{ "name": "SPREAD PARTICIPACOES S.A.", "cnpj": null, "role": "Sócio" }],
"url": "https://minhareceita.org/19138940000170",
"scraped_at": "2026-11-14T18:48:20.956Z"
}

How much does it cost to export CNPJ leads?

Pay per event: a small start fee, plus a price per company lead (search result) and a lower price per CNPJ lookup. Volume tiers apply automatically.

Use cases

  • Sales prospecting by industry and city (CNAE + município).
  • New-business feeds: schedule a run with openedSince.
  • Market sizing and competitor mapping.
  • Enriching a list of CNPJs.

Limits & notes

  • Privacy: MEI, Empresário Individual and EIRELI records belong to individuals and are excluded by default. If you include them, their name, phones and email are withheld. Names of individual partners are never output; only corporate partners.
  • The source search cannot filter by status, size or date, so the actor filters while paging. Rare combinations in big cities may scan many records; scans stop at 60,000 rows.
  • The open source throttles expensive searches ("busca muito custosa"). The actor waits and retries up to about 4 minutes, then returns what it has with a note in OUTPUT.
  • Data is the public Receita Federal register and is only as current as the latest monthly dump.
  • Source and availability: the data is served by Minha Receita, a free, open-source, donation-funded API with no service-level guarantee. Its search by CNAE and city is still marked as in testing, so searches can be slow or temporarily unavailable at busy times. CNPJ lookups are the most stable part.

Integrations and API

Run it from your own code with the Apify API or the official Python and JavaScript clients:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("actorfactory/brazil-cnpj-leads").call(run_input={'cnaeCodes': ['6201501'], 'states': ['SP'], 'cities': ['São Paulo'], 'maxItems': 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
  • Schedule it (hourly, daily, weekly) in Apify Console and send results to Google Sheets, Slack, email or a webhook, or connect it to Make, Zapier or n8n.
  • Use it from AI agents (Claude, ChatGPT, Cursor) through the Apify MCP server.
  • Export results as JSON, CSV, Excel or HTML from the Output tab, or read them from the dataset API.

FAQ

Can I build a lista de empresas by city? Yes. Pick a CNAE code, a state and a city and export the active companies as CSV, Excel or JSON.

Can I search all of Brazil for one CNAE? No. Add a state or, better, a city.

Is this legal? The data is public under Brazil's access-to-information law. Respect LGPD when contacting people.

Does it include phone numbers and email? Yes, when the company registered them with Receita Federal: phones and a company email. The email is empty for natural-person businesses, and partner names of individuals are never output.