Brazil CNPJ Company Lookup API

Look up Brazilian companies by CNPJ number: legal and trade name, registration status, start date, main and secondary activity codes, legal form, size, share capital, address and Simples Nacional option.

$2 per 1,000 records

You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 16 fieldsv1.0

Data from brasilapi.com.br/api/cnpj/v1/33000167000101

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Cnpjs
CNPJ numbers (14 digits, dots, slash and dash are allowed and ignored) One per line, or separated by commas.
Example: 33000167000101

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/brazil-cnpj-lookup/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/brazil-cnpj-lookup/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"cnpjs":["33000167000101"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

cnpjslistrequired
CNPJ numbers (14 digits, dots, slash and dash are allowed and ignored)
example: 33000167000101

What's in each record

16 fields.

Basics

  • Cnpj

    The 14-digit CNPJ number.

    Example 33000167000101

  • Razao social

    Registered legal name of the company.

    Example PETROLEO BRASILEIRO S A PETROBRAS

  • Nome fantasia

    Trade name, when the company has one.

    Example PETROBRAS - EDISE

  • Situacao cadastral

    Registration status in words, such as ATIVA, BAIXADA or SUSPENSA.

    Example ATIVA

  • Cnae fiscal

    Code of the main economic activity (CNAE).

    Example 600,001

  • Cnae fiscal descricao

    Name of the main economic activity.

    Example Extração de petróleo e gás natural

  • Cnaes secundarios

    Secondary activities as text, code and name.

    Example 1921700 Fabricação de produtos do refino de petróleo, 3520401 Produção de gás; processamento de gás natural

  • Natureza juridica

    Legal form of the company.

    Example Sociedade de Economia Mista

  • Porte

    Size class of the company, such as MICRO EMPRESA or DEMAIS.

    Example DEMAIS

  • Capital social

    Registered share capital in Brazilian reais.

    Example 205,431,960,000

  • Logradouro

    Street of the registered business address.

    Example AVENIDA REPUBLICA DO CHILE

  • Municipio

    City of the registered address.

    Example RIO DE JANEIRO

  • Uf

    State code of the registered address.

    Example RJ

  • Cep

    Postal code of the registered address.

    Example 20031170

  • Opcao pelo simples

    Whether the company is in the Simples Nacional tax regime.

    Example No

Dates

  • Data inicio atividade

    Day the company started its activity.

    Example Sep 28, 1966

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
cnpjtextCnpj3 of 3
razao_socialtextRazao social3 of 3
nome_fantasiatextNome fantasia2 of 3
situacao_cadastraltextSituacao cadastral3 of 3
data_inicio_atividadedateData inicio atividade3 of 3
cnae_fiscalnumberCnae fiscal3 of 3
cnae_fiscal_descricaotextCnae fiscal descricao3 of 3
cnaes_secundarioslistCnaes secundarios3 of 3
natureza_juridicatextNatureza juridica3 of 3
portetextPorte3 of 3
capital_socialnumberCapital social3 of 3
logradourotextLogradouro3 of 3
municipiotextMunicipio3 of 3
uftextUf3 of 3
ceptextCep3 of 3
opcao_pelo_simplesyes or noOpcao pelo simples1 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordCnpjRazao socialNome fantasiaSituacao cadastralCnae fiscalCnae fiscal descricaoCnaes secundariosNatureza juridicaPorteCapital socialLogradouroMunicipioUfCepOpcao pelo simplesData inicio atividade
133000167000101PETROLEO BRASILEIRO S A PETROBRASPETROBRAS - EDISEATIVA600,001Extração de petróleo e gás natural1921700 Fabricação de produtos do refino de petróleo, 3520401 Produção de gás; processamento de gás natural, 3520402 Distribuição de combustíveis gasosos por redes urbanas, 4681801 Comércio atacadista de álcool carburante, biodiesel, gasolina e demais derivados de petróleo, exceto lubrificantes, não realizado por transportador reSociedade de Economia MistaDEMAIS205,431,960,000AVENIDA REPUBLICA DO CHILERIO DE JANEIRORJ20031170—Sep 28, 1966
200000000000191BANCO DO BRASIL SADIRECAO GERALATIVA6,422,100Bancos múltiplos, com carteira comercial6499999 Outras atividades de serviços financeiros não especificadas anteriormenteSociedade de Economia MistaDEMAIS120,000,000,000QUADRA SAUN QUADRA 5 BLOCO B TORRE I, II, IIIBRASILIADF70040912NoAug 1, 1966
333592510000154VALE S.A.—ATIVA710,301Extração de minério de ferro990401 Atividades de apoio à extração de minério de ferro, 8211300 Serviços combinados de escritório e apoio administrativoSociedade Anônima AbertaDEMAIS77,800,000,000PRAIA BOTAFOGORIO DE JANEIRORJ22250145—Feb 11, 1969

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • One record needs one request to the source, so a list of 100 CNPJs takes about a minute because requests are spaced out to stay within the source's fair-use limits.
  • Data comes from the Receita Federal open company register through BrasilAPI and is as fresh as their copy, usually a few weeks to a month behind.
  • The list of partners (QSA), phone numbers and e-mail addresses are left out on purpose, because they can identify private people.
  • CNPJs that are not 14 digits, or that the source does not know, are skipped and produce no record.
  • opcao_pelo_simples is empty for companies that never opted in or whose option the source does not report.

Version history

A run uses the live version unless the request names another one with version.