Brazil CNPJ Registry Scraper avatar

Brazil CNPJ Registry Scraper

Pricing

from $0.40 / 1,000 results

Go to Apify Store
Brazil CNPJ Registry Scraper

Brazil CNPJ Registry Scraper

Look up Brazilian companies by CNPJ: razão social, nome fantasia, situação cadastral, CNAE activity, full address, capital social and partners (QSA). On-demand company verification and enrichment from public Receita Federal open data — fresh answers every run.

Pricing

from $0.40 / 1,000 results

Rating

0.0

(0)

Developer

Philip Kirkbride

Philip Kirkbride

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Categories

Features

Limited permissionsMulti-tenantServer interface

Share

Brazil CNPJ Company Lookup

Look up Brazilian companies by CNPJ and get one clean record per number: razão social, nome fantasia, situação cadastral and its date, start date, head office or branch, legal nature, company size, capital social, main and secondary CNAE activities, full address, phone and e-mail, Simples and MEI options, partners and administrators (QSA) and tax-regime history.

Built for KYB and onboarding teams, B2B lead enrichment and counterparty screening. The data comes from public open-data mirrors of Receita Federal's monthly CNPJ datasets, so it is an enrichment and screening source, not a substitute for official, up-to-date verification or KYC due diligence.

What you can do with it

  • Onboard customers and suppliers. Check that a CNPJ is valid, see whether the company is ATIVA, and compare the legal name and address you were given.
  • Enrich a CRM or lead list. Add trade name, CNAE activity, size, capital social, city and state to a list of CNPJs.
  • See who is behind a company. qsa lists partners and administrators with their role and entry date when the registry publishes them.
  • Screen a portfolio. Re-run a CNPJ list on a schedule and watch situacaoCadastral (for example BAIXADA, INAPTA or SUSPENSA) for changes.

Also available

The Latin American company data suite: pick the job.

ActorUse when
Brazil CNPJ Registry (this Actor)Verify Brazilian companies, partners and activity
Brazil DataJud Court CasesBrazilian court case metadata by tribunal
PNCP Brazil TendersBrazilian licitações with deadlines and documents
Colombia NIT RegistryColombian company records plus contract history
Peru SUNAT RUCPeruvian taxpayer status and fiscal address
Mexico DENUE DirectoryMexican businesses with address and phone

Quick start

  1. Open the Actor in Apify Console. The form is prefilled with three CNPJs.
  2. Replace them with your own (formatted or bare, up to 100).
  3. Click Start, then download the dataset as JSON, CSV or Excel.
{"cnpjs": ["19.131.243/0001-97", "33.000.167/0001-01", "00.000.000/0001-91"]}

An empty input ({}) looks up the one default CNPJ, 19.131.243/0001-97.

Input

FieldTypeDefaultWhat it does
cnpjsarray["19131243000197"]1 to 100 CNPJ numbers, formatted (19.131.243/0001-97) or bare. Duplicates are looked up once. The new alphanumeric CNPJs are accepted too.
requestDelaySecsnumber0.3Pause between lookups, 0 to 10 seconds.

Every number is check-digit validated before any lookup. A malformed number or one with wrong check digits is not looked up: it comes back as an ERROR row whose error names the problem, is listed in OUTPUT.skippedSearches, and the other numbers are looked up as usual (the run ends succeeded_partial). If no number in the list is valid, the run succeeds with OUTPUT.status: "no_results" and a message naming them; nothing is looked up. If every lookup ends ERROR because no mirror answered, nothing useful was read and the run fails with that reason.

Output

One row per CNPJ. Each row includes companyKey, cnpj, cnpjRaiz, razaoSocial, nomeFantasia, situacaoCadastral, dataSituacaoCadastral, dataInicioAtividade, matrizFilial, naturezaJuridica, codigoNaturezaJuridica, porte, capitalSocial, cnaeFiscal, cnaeFiscalDescricao, atividadesSecundarias, logradouro, numero, complemento, bairro, cep, municipio, uf, telefone1, telefone2, email, opcaoPeloSimples, opcaoPeloMei, qsa, regimeTributario, status, source, sourceQuery, matchType, and scrapedAt, plus error on rows with status ERROR (every mirror was unavailable for that CNPJ, or the number is not a valid CNPJ).

status is FOUND, NOT_FOUND or ERROR, so every number you send comes back as a row you can audit.

Example record (Open Knowledge Brasil, trimmed):

{"companyKey":"cnpj:19131243000197","cnpj":"19.131.243/0001-97","cnpjRaiz":"19131243","razaoSocial":"OPEN KNOWLEDGE BRASIL","nomeFantasia":"REDE PELO CONHECIMENTO LIVRE","situacaoCadastral":"ATIVA","dataInicioAtividade":"2013-10-03","matrizFilial":"MATRIZ","naturezaJuridica":"Associação Privada","porte":"DEMAIS","capitalSocial":0,"cnaeFiscal":"9430800","cnaeFiscalDescricao":"Atividades de associações de defesa de direitos sociais","municipio":"SAO PAULO","uf":"SP","status":"FOUND"}

A qsa entry (from a Petrobras lookup; the registry masks partner tax IDs):

{"nome": "MAGDA MARIA DE REGINA CHAMBRIARD", "qualificacao": "Presidente", "dataEntrada": "2024-06-07", "faixaEtaria": "Entre 61 a 70 anos", "documento": "***612937**", "representanteLegal": null}

Use it as an API

Verify a Brazilian company and get its registration status, address, business activity, and partners. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

curl --get 'https://automatic--brazil-cnpj-scraper.apify.actor/' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--data-urlencode cnpj=19131243000197

Send the same fields as a JSON object with POST /. Results are in data. See GET /openapi.json for the request and response definitions.

Pricing

$0.0004 per result plus $0.00005 per run start. The start event is charged per GB of memory; the default 512 MB run is one start event. Every row counts as a result, including NOT_FOUND and ERROR audit rows.

Worked costs: the 3-CNPJ prefill run is about $0.0013; 100 CNPJs (the per-run maximum) about $0.04; 1,000 CNPJs over ten runs about $0.40. See the Pricing tab for current rates.

FAQ

What is a CNPJ? The CNPJ is the 14-character national registry number (digits, or letters and digits for numbers issued from July 2026) that identifies every Brazilian company and its establishments.

How fresh is the data? Each lookup queries third-party open-data mirrors at run time, backed by Receita Federal's monthly bulk snapshots. Mirror refresh schedules vary and can lag the official release. This is not a live query to the official registry: recent registrations or changes may be absent or outdated. scrapedAt is the lookup time, not the source snapshot date or a guarantee of freshness; source identifies the mirror that answered.

What if a mirror does not recognize a CNPJ? The Actor tries other mirrors. If none returns a record and at least one reports it missing, the result is a NOT_FOUND audit row. This does not prove that the company does not exist: a recent registration may not yet appear in the mirrors' snapshots.

What does an ERROR row mean? Either no mirror answered for that CNPJ during the run, or the number you sent is not a valid CNPJ (its error says which, and ends with "not looked up"). The other CNPJs in the run are unaffected; correct invalid numbers, and run unavailable ones again later. An invalid number is also listed in OUTPUT.skippedSearches.

Does it include partners and officers? Yes — qsa carries the partners and administrators with their role and entry date when the registry publishes them.

Can I search by company name? No. It looks up CNPJs you already have.

How many CNPJs can I look up? Up to 100 per run, in one list. Split longer lists into several runs.

What happens to missing values? Fields the registry does not publish for a company come back as null; list fields come back as empty arrays.

Can I monitor companies? Yes. Save your CNPJ list as a task, schedule it weekly or monthly (the source data changes monthly), and compare situacaoCadastral, address and qsa between runs.

Support

For questions or issues, contact Apify support from the Actor page.

Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's Issues tab. We read every issue and use them to decide what to build next.