Hoppa till innehållet
← All data tools

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.

Open in Apify Store

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.

cnpjFormattedlegalNametradeNamestatusopeningDatemainActivityDescriptioncitystatecompanySize
00.000.000/0001-91BANCO DO BRASIL SADIRECAO GERALATIVA1966-08-01Bancos múltiplos, com carteira comercialBRASILIADFDEMAIS
33.000.167/0001-01PETROLEO BRASILEIRO S A PETROBRASPETROBRAS - EDISEATIVA1966-09-28Extração de petróleo e gás naturalRIO DE JANEIRORJDEMAIS
33.683.111/0002-80SERVICO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO)REGIONAL BRASILIA-DFATIVA1967-06-30Consultoria em tecnologia da informaçãoBRASILIADFDEMAIS
60.701.190/0001-04ITAU UNIBANCO S.A.ITAU UNIBANCOATIVA1944-08-22Bancos comerciaisSAO PAULOSPDEMAIS
64.476.071/0001-48PARZIASOFT SOLUCOES EM GESTAO LTDAPARZIASOFT TECNOLOGIA DA INFORMACAOATIVA2026-01-14Desenvolvimento de programas de computador sob encomendaSAO PAULOSPMICRO EMPRESA

Fields

Every row has these fields. Field names are stable between versions.

FieldWhat it holds
cnpjThe CNPJ, 14 characters without punctuation, for example 00000000000191
cnpjFormattedThe same CNPJ with punctuation, for example 00.000.000/0001-91
legalNameRazão social, the registered legal name
tradeNameNome fantasia, the trade name, null when none is registered
isHeadOfficetrue for the head office (matriz), false for a branch (filial)
statusSituação cadastral: ATIVA, SUSPENSA, INAPTA, BAIXADA or NULA
statusDateDate the status took effect
statusReasonReason for the status, when one is registered
openingDateData de início de atividade, YYYY-MM-DD
legalNatureCodeNatureza jurídica code, for example 2062
legalNatureNameName of the legal nature, for example Sociedade Empresária Limitada
mainActivityCodeMain CNAE activity code, for example 6204-0/00
mainActivityDescriptionName of the main CNAE activity, in Portuguese
secondaryActivitiesSecondary CNAE activities, a list of code and description
addressThe full address on one line
streetStreet name
numberStreet number
complementAddress complement, for example floor or suite
districtDistrict (bairro)
cityCity
cityIbgeCodeIBGE municipality code
stateTwo letter state code (UF)
cepPostal code (CEP)
countryCountry
capitalSocialShare capital in BRL
companySizePorte: MICRO EMPRESA, EMPRESA DE PEQUENO PORTE or DEMAIS
sourceName of the data source
sourceUrlAddress the record was read from
retrievedAtWhen the record was read, ISO 8601
errornull 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 ATIVA and 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 onlyNew set to true returns a company only when its status or statusDate has 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.

Open in Apify Store

Built and maintained by Nightwave AB. Questions or bugs: kontakt@nightwave.se