CNPJ lookup for Brazilian companies
Takes a list of CNPJ numbers and returns one row per company from the Receita Federal register: legal name, trade name, registration status, opening date, legal nature, CNAE activities, address, share capital and size.
The CNPJ is the national register number of every company and establishment in Brazil, kept by Receita Federal, the federal revenue service. Its registration data is public open data. This tool looks up each number and returns it with English field names and stable types. Numbers can be given with or without punctuation, and duplicates are looked up once.
Partners and directors (the QSA), phone numbers and e-mail addresses are never returned. Sole proprietors and MEI are left out, since their registration is a private person. Invalid numbers, numbers that are not found and sole proprietors give a row with an error and are not charged. A run with empty input looks up Banco do Brasil, so you can see the output format at once.
Sample from a real run
5 of 50 rows (selected fields) from run ySvknB2ClMsxQzBZT on 3 October 2026, exactly as the tool returned them.
cnpjFormatted | legalName | tradeName | status | openingDate | mainActivityDescription | city | state | companySize |
|---|---|---|---|---|---|---|---|---|
| 00.000.000/0001-91 | BANCO DO BRASIL SA | DIRECAO GERAL | ATIVA | 1966-08-01 | Bancos múltiplos, com carteira comercial | BRASILIA | DF | DEMAIS |
| 33.000.167/0001-01 | PETROLEO BRASILEIRO S A PETROBRAS | PETROBRAS - EDISE | ATIVA | 1966-09-28 | Extração de petróleo e gás natural | RIO DE JANEIRO | RJ | DEMAIS |
| 33.683.111/0002-80 | SERVICO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) | REGIONAL BRASILIA-DF | ATIVA | 1967-06-30 | Consultoria em tecnologia da informação | BRASILIA | DF | DEMAIS |
| 60.701.190/0001-04 | ITAU UNIBANCO S.A. | ITAU UNIBANCO | ATIVA | 1944-08-22 | Bancos comerciais | SAO PAULO | SP | DEMAIS |
| 64.476.071/0001-48 | PARZIASOFT SOLUCOES EM GESTAO LTDA | PARZIASOFT TECNOLOGIA DA INFORMACAO | ATIVA | 2026-01-14 | Desenvolvimento de programas de computador sob encomenda | SAO PAULO | SP | MICRO EMPRESA |
Fields
Every row has these fields. Field names are stable between versions.
| Field | What it holds |
|---|---|
cnpj | The CNPJ, 14 characters without punctuation, for example 00000000000191 |
cnpjFormatted | The same CNPJ with punctuation, for example 00.000.000/0001-91 |
legalName | Razão social, the registered legal name |
tradeName | Nome fantasia, the trade name, null when none is registered |
isHeadOffice | true for the head office (matriz), false for a branch (filial) |
status | Situação cadastral: ATIVA, SUSPENSA, INAPTA, BAIXADA or NULA |
statusDate | Date the status took effect |
statusReason | Reason for the status, when one is registered |
openingDate | Data de início de atividade, YYYY-MM-DD |
legalNatureCode | Natureza jurídica code, for example 2062 |
legalNatureName | Name of the legal nature, for example Sociedade Empresária Limitada |
mainActivityCode | Main CNAE activity code, for example 6204-0/00 |
mainActivityDescription | Name of the main CNAE activity, in Portuguese |
secondaryActivities | Secondary CNAE activities, a list of code and description |
address | The full address on one line |
street | Street name |
number | Street number |
complement | Address complement, for example floor or suite |
district | District (bairro) |
city | City |
cityIbgeCode | IBGE municipality code |
state | Two letter state code (UF) |
cep | Postal code (CEP) |
country | Country |
capitalSocial | Share capital in BRL |
companySize | Porte: MICRO EMPRESA, EMPRESA DE PEQUENO PORTE or DEMAIS |
source | Name of the data source |
sourceUrl | Address the record was read from |
retrievedAt | When the record was read, ISO 8601 |
error | null for a company. Otherwise why there is no company row: invalid number, not found, sole proprietor or MEI, or a failed lookup |
Input example
Paste it into the JSON tab of the actor in Apify Console, or send it to the Apify API.
{
"cnpjs": [
"00000000000191",
"33000167000101",
"33683111000280",
"60701190000104",
"64476071000148"
],
"onlyNew": false,
"maxResults": 5
}What people use it for
- Customer and supplier checks. Confirm that a CNPJ exists, has the status
ATIVAand has the legal name on the contract before you sign or invoice. - List cleaning and enrichment. Add the official name, address, CNAE code and size to a list of Brazilian accounts in a CRM or ERP.
- Counterparty monitoring. A daily run with
onlyNewset to true returns a company only when itsstatusorstatusDatehas changed, for example from ATIVA to BAIXADA or INAPTA.
Price
3 USD per 1 000 companies, plus Apify platform usage.
A run with the default input looks up one company and costs 0.003 USD in results. The run on 3 October 2026 shown above looked up 50 CNPJ numbers in 28 seconds; at the current price 50 companies cost 0.15 USD. Lookups are paced at 2 per second, so 1 000 numbers take about 9 minutes.
Run it on a schedule
Set onlyNew to true and add the actor to a schedule in Apify Console (for example the cron expression 0 7 * * * for 07:00 every day). The actor remembers what it has already delivered for the same input, in a named key-value store in your own Apify account (nightwave-state-brazil-cnpj-companies), and each run returns and charges only what is new. The first run returns everything in the selection. A run with nothing new finishes with 0 rows and costs nothing beyond platform usage.
Source and license
The data is Receita Federal do Brasil's Cadastro Nacional da Pessoa Jurídica, published as open data (Dados Abertos do CNPJ). The tool reads it through the public API of Minha Receita, an open source project that loads the Receita Federal files into one database. The data is as fresh as the latest monthly release, so a status change can show up some weeks later than on the Receita Federal website. The tool is not affiliated with Receita Federal or Minha Receita.
Under the Brazilian Access to Information Law (Lei nº 12.527/2011) and the federal open data policy (Decreto nº 8.777/2016), data the federal executive publishes as open data is free to use by the public. Minha Receita is MIT licensed and sets no restriction on use of its public API. Every row carries source and sourceUrl.
Try it
The tool runs on Apify. Apify handles your account, the runs and the payment, and you can try it with the input above before you schedule anything.
Built and maintained by Nightwave AB. Questions or bugs: kontakt@nightwave.se