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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
cnpj | text | Cnpj | 3 of 3 |
razao_social | text | Razao social | 3 of 3 |
nome_fantasia | text | Nome fantasia | 2 of 3 |
situacao_cadastral | text | Situacao cadastral | 3 of 3 |
data_inicio_atividade | date | Data inicio atividade | 3 of 3 |
cnae_fiscal | number | Cnae fiscal | 3 of 3 |
cnae_fiscal_descricao | text | Cnae fiscal descricao | 3 of 3 |
cnaes_secundarios | list | Cnaes secundarios | 3 of 3 |
natureza_juridica | text | Natureza juridica | 3 of 3 |
porte | text | Porte | 3 of 3 |
capital_social | number | Capital social | 3 of 3 |
logradouro | text | Logradouro | 3 of 3 |
municipio | text | Municipio | 3 of 3 |
uf | text | Uf | 3 of 3 |
cep | text | Cep | 3 of 3 |
opcao_pelo_simples | yes or no | Opcao pelo simples | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Cnpj | Razao social | Nome fantasia | Situacao cadastral | Cnae fiscal | Cnae fiscal descricao | Cnaes secundarios | Natureza juridica | Porte | Capital social | Logradouro | Municipio | Uf | Cep | Opcao pelo simples | Data inicio atividade |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 33000167000101 | PETROLEO BRASILEIRO S A PETROBRAS | PETROBRAS - EDISE | ATIVA | 600,001 | Extração de petróleo e gás natural | 1921700 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 re | Sociedade de Economia Mista | DEMAIS | 205,431,960,000 | AVENIDA REPUBLICA DO CHILE | RIO DE JANEIRO | RJ | 20031170 | — | Sep 28, 1966 |
| 2 | 00000000000191 | BANCO DO BRASIL SA | DIRECAO GERAL | ATIVA | 6,422,100 | Bancos múltiplos, com carteira comercial | 6499999 Outras atividades de serviços financeiros não especificadas anteriormente | Sociedade de Economia Mista | DEMAIS | 120,000,000,000 | QUADRA SAUN QUADRA 5 BLOCO B TORRE I, II, III | BRASILIA | DF | 70040912 | No | Aug 1, 1966 |
| 3 | 33592510000154 | VALE S.A. | — | ATIVA | 710,301 | Extração de minério de ferro | 990401 Atividades de apoio à extração de minério de ferro, 8211300 Serviços combinados de escritório e apoio administrativo | Sociedade Anônima Aberta | DEMAIS | 77,800,000,000 | PRAIA BOTAFOGO | RIO DE JANEIRO | RJ | 22250145 | — | 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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.