Brazil CNPJ Lookup API (Consulta CNPJ)
Pricing
from $1.40 / 1,000 company profiles
Brazil CNPJ Lookup API (Consulta CNPJ)
Look up Brazilian companies by CNPJ: registration status, partners (masked CPF), activities, tax regime and screening red flags.
Pricing
from $1.40 / 1,000 company profiles
Rating
0.0
(0)
Developer
br_data_hub
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Brazil CNPJ Lookup turns a list of CNPJs into clean company profiles from the official Receita Federal open registry: registration status, partners (QSA), economic activities (CNAE), address, tax regime and automatic red flags for supplier and customer screening. Paste up to 500 CNPJs, click Start, and download JSON, CSV or Excel in seconds. Invalid or unknown CNPJs are free.
🇧🇷 Consulta CNPJ em lote: cole até 500 CNPJs (com ou sem pontuação, inclusive o novo CNPJ alfanumérico) e receba situação cadastral, sócios com CPF mascarado, CNAE, endereço, regime tributário e alertas de triagem. CNPJ inválido ou não encontrado não é cobrado. Mais detalhes em português no fim da página.
What can you do with it?
- ✅ Supplier and customer due diligence (KYC/KYB): check that a company is active, how old it is and who the partners are before signing.
- 🧾 Enrich CRM and spreadsheets: turn a column of CNPJs into legal name, trade name, CNAE, city and contact data.
- 🎯 Lead qualification: filter companies by size, activity and tax regime.
- 🤖 AI agents and automations: give an agent a reliable CNPJ tool with a typed output schema (see Use it with AI agents).
What data does it return?
- Legal name, trade name, registration status and date, opening date, headquarters or branch
- Legal nature, company size, declared share capital (BRL)
- Main and secondary activities (CNAE codes and descriptions)
- Address, city, state, ZIP code, phone and e-mail (when registered)
- Partners and administrators (QSA) with role, age range and entry date; CPFs stay masked as published by the source
- Tax regime history by year (Lucro Real, Lucro Presumido, Simples Nacional, MEI)
redFlags:NOT_ACTIVE,OPENED_LESS_THAN_1_YEAR,ZERO_SHARE_CAPITAL,NO_PARTNERS_LISTED,NO_CONTACT_DATA
Red flags are screening hints computed only from registry fields. They are not legal, credit or compliance advice.
How to look up CNPJs in 3 steps
- Click Try for free and paste your CNPJs in CNPJs (one per line; punctuation is fine).
- Keep Include partners on if you want the QSA, then click Start.
- Open the Output tab and export the results to JSON, CSV, Excel, or send them to your app through the API.
Input
| Field | Description |
|---|---|
cnpjs | List of CNPJs, with or without punctuation, up to 500 per run. Numeric and the new alphanumeric CNPJ (2026) are validated by check digits before any lookup, so typos cost nothing. |
includePartners | Include the partners list (QSA). Default true. |
{ "cnpjs": ["00.000.000/0001-91", "33000167000101"], "includePartners": true }
Output example
{"cnpj": "00000000000191","legalName": "BANCO DO BRASIL SA","tradeName": "DIRECAO GERAL","status": "ATIVA","openedAt": "1966-08-01","isHeadquarters": true,"size": "DEMAIS","capitalBrl": 120000000000,"mainActivity": { "code": 6422100, "description": "Bancos múltiplos, com carteira comercial" },"city": "BRASILIA","state": "DF","partnersCount": 41,"partners": [{ "name": "FULANO DE TAL", "role": "Diretor", "maskedDocument": "***123456**" }],"taxRegimeHistory": [{ "year": 2024, "regime": "LUCRO REAL" }],"redFlags": [],"source": "https://minhareceita.org","fetchedAt": "2026-10-31T12:00:00.000Z"}
Invalid or unknown CNPJs return an item with an error field, and you are not charged for them. Every field is documented in the Output tab.
How much does it cost?
This Actor does one thing, the company registry, so you only pay for profiles you get. Public contracts and open tenders are separate Actors from the same publisher.
$0.002 per company profile (company-profile event, pay per event). Charged once per company profile returned. Invalid or not-found CNPJs are free.
| You get | Free tier | Bronze tier (10% off) | Gold tier (30% off) |
|---|---|---|---|
| 100 company profiles | $0.20 | $0.18 | $0.14 |
| 1,000 company profiles | $2.00 | $1.80 | $1.40 |
| 10,000 company profiles | $20.00 | $18.00 | $14.00 |
Discounts follow your Apify subscription tier: Bronze 10%, Silver 20%, Gold and above 30%. No subscription to this Actor and no charge for platform usage: you pay only for results. The Apify Free plan includes $5 of monthly credit, enough for about 2,500 company profiles at the list price. You can cap the cost of any run with Maximum cost per run; the Actor stops when it is reached.
Data source and limits
Data comes from the public Receita Federal registry through the open-source Minha Receita service. Only public company data is returned; personal documents stay masked as published. Data freshness follows the source.
More questions
Which CNPJ formats are accepted?
Any mix of 00.000.000/0001-91, 00000000000191 or text with spaces: everything except digits and letters is removed before the lookup. The new alphanumeric CNPJ (letters in the first 12 characters, numeric check digits) is validated with the official modulo-11 rule. Repeated CNPJs in the same run are looked up and charged once.
What happens with a CNPJ that has a typo?
The check digits are verified before any request. A CNPJ with wrong digits or format returns an item with error: "Invalid CNPJ (wrong format or check digits)" and is not charged.
Does it return the headquarters or the branch?
Exactly the establishment you send. Each CNPJ (the 4 digits after the slash identify the establishment) is a separate record, and isHeadquarters tells you whether it is the head office (0001 is usually the head office). To get a branch, send its full CNPJ.
How fresh is the data?
Each CNPJ is read live from Minha Receita at run time, which republishes the open CNPJ files of the Receita Federal. Freshness therefore follows those monthly public files, not the real-time Receita website. fetchedAt records when your item was read.
Are partners' CPFs shown?
No. The open registry publishes partners' CPFs masked (only the middle digits, e.g. ***123456**), and the Actor returns them exactly as published in maskedDocument. Turn off Include partners if you do not need the QSA at all.
How many CNPJs can I look up per run?
Up to 500 per run (extra ones are ignored with a warning). The Actor waits a quarter of a second between lookups to respect the free source, so 500 CNPJs take a few minutes. For more, split the list into several runs or schedule them.
What do the red flags mean?
NOT_ACTIVE (status other than ATIVA), OPENED_LESS_THAN_1_YEAR, ZERO_SHARE_CAPITAL, NO_PARTNERS_LISTED and NO_CONTACT_DATA (no phone and no e-mail). They are computed only from the registry fields in the item, as screening hints; they are not a credit score or legal opinion.
What if the source is down?
The Actor retries up to 3 times on network errors, HTTP 429 and 5xx. If it still fails, the CNPJ comes back with an error such as Source unavailable (HTTP 503) and is not charged, so you can simply run those again.
Use it via API
Run it from any language and get the results as JSON. Replace <YOUR_API_TOKEN> with your Apify API token.
curl -X POST "https://api.apify.com/v2/acts/br_data_hub~br-cnpj-lookup/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \-H "Content-Type: application/json" \-d '{"cnpjs": ["00000000000191", "33000167000101"]}'
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("br_data_hub/br-cnpj-lookup").call(run_input={'cnpjs': ['00000000000191', '33000167000101']})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
You can also schedule runs, send results to webhooks, or connect the Actor to Make, Zapier, n8n, Google Sheets and other integrations.
Use it with AI agents (MCP)
This Actor is ready for AI agents: typed input and output schemas, pay-per-event pricing, limited permissions and short runs.
- Apify MCP server: add
https://mcp.apify.com/?tools=br_data_hub/br-cnpj-lookupto Claude, ChatGPT, Cursor, VS Code or any MCP client, and the agent can call this Actor as a tool. - Agent frameworks: call it from LangChain, LlamaIndex, CrewAI or the OpenAI Agents SDK through the Apify integrations, or with the API call above.
- Results come as structured JSON with stable field names, documented in the Output tab.
FAQ
Where does the data come from?
Data comes from the public Receita Federal registry through the open-source Minha Receita service. Only public company data is returned; personal documents stay masked as published. Data freshness follows the source.
How much does it cost?
$0.002 per company profile. Discounts follow your Apify subscription tier: Bronze 10%, Silver 20%, Gold and above 30%. See How much does it cost? above for examples.
Do I pay for errors or empty results?
No. Charged once per company profile returned. Invalid or not-found CNPJs are free.
Can I run it on a schedule or connect it to other tools?
Yes. Use Apify schedules to run it daily or weekly, webhooks to get notified, and integrations such as Make, Zapier, n8n and Google Sheets. Everything also works through the API.
Can AI agents use it?
Yes. It works as a tool in the Apify MCP server and in agent frameworks, and AI agents can pay per event. See Use it with AI agents (MCP).
Is it legal to use this data?
The Actor reads only public, official sources and keeps personal data masked as the source publishes it. You are responsible for how you use the data, including LGPD compliance.
I found a bug or need a feature. What should I do?
Open an issue in the Issues tab. We answer within 14 days, usually much sooner.
More Actors from BR Data Hub
| Actor | What it does |
|---|---|
| Brazil Public Contracts API (PNCP Contratos) | Get Brazilian government contracts from PNCP, the official national procurement portal: buyer, supplier, objec |
| Brazil Open Tenders API (Licitações Abertas) | Find Brazilian government tenders that are open for proposals right now, from PNCP, the official national proc |
| Brazil Municipalities & IBGE Codes (Municípios) | List Brazilian municipalities, search them by name (accents and typos tolerated) or resolve IBGE codes |
| Brazil Holidays & Business Days (Feriados) | Brazilian national and state holidays for all 27 states, with the law behind each one |
| Brazil Banks & Pix Directory (Bancos e ISPB) | Every Brazilian bank and payment institution from official Banco Central lists: ISPB, COMPE bank code, short a |
| Brazil Boleto Validator & Parser (Boleto) | Validate Brazilian boletos in bulk (digitable line or barcode, bank and utility/tax slips): check digits per f |
See all our Actors at apify.com/br_data_hub.
Usar em português
Consulta CNPJ em lote com os dados abertos da Receita Federal: situação cadastral, data de abertura, matriz ou filial, natureza jurídica, porte, capital social, CNAE principal e secundários, endereço, telefone e e-mail cadastrados, sócios e administradores (QSA, com CPF mascarado como a fonte publica), histórico de regime tributário (Lucro Real, Presumido, Simples, MEI) e alertas de triagem.
Para que serve: cadastro e homologação de fornecedores e clientes (KYC/KYB), enriquecimento de CRM e planilhas, qualificação de leads e ferramenta de CNPJ para agentes de IA.
Como usar em 3 passos:
- Clique em Try for free e cole os CNPJs no campo CNPJs, um por linha, com ou sem pontuação (até 500 por execução).
- Deixe Include partners ligado se quiser o quadro de sócios e clique em Start.
- Na aba Output, baixe em JSON, CSV ou Excel, ou leia pela API.
Exemplo de entrada:
{ "cnpjs": ["00.000.000/0001-91", "33000167000101"], "includePartners": true }
Campos principais: cnpj, legalName (razão social), tradeName (nome fantasia), status (situação cadastral), openedAt (abertura), isHeadquarters (matriz), size (porte), capitalBrl (capital social), mainActivity e secondaryActivities (CNAE), address, city, state, zip, phone, email, simplesNacional, mei, taxRegimeHistory, partners (sócios) e redFlags (alertas: inativa, aberta há menos de 1 ano, capital zero, sem sócios, sem contato).
Detalhes úteis: o CNPJ alfanumérico novo é aceito; os dígitos verificadores são conferidos antes da consulta; CNPJs repetidos na lista são consultados uma vez só. Os dados vêm do Minha Receita, que republica os arquivos abertos da Receita Federal, então a atualização segue esses arquivos.
O que é grátis: CNPJ inválido, não encontrado ou com falha na fonte sai no resultado com o campo error e não é cobrado. Você paga só pelos perfis de empresa entregues.
Quanto custa: $0.002 por resultado (company-profile); 1.000 resultados saem por $2.00. Desconto pelo nível da assinatura Apify: Bronze 10%, Silver 20%, Gold ou acima 30%. Erros e consultas sem resultado não são cobrados. Use também pela API ou por agentes de IA no servidor MCP da Apify (https://mcp.apify.com/?tools=br_data_hub/br-cnpj-lookup).