Official registration data for a Brazilian company from the Receita Federal (Brazilian IRS
Official registration data for a Brazilian company from the Receita Federal (Brazilian IRS) CNPJ registry, updated monthly: legal name (razao_social), trade name, registration status (situacao_cadastral: Ativa=active, Baixada=closed), start date, legal nature, share capital, main and secondary CNAE activities with descriptions, full address, contact info and Simples/MEI tax regime flags. Keys are in Portuguese legal terms. Free sample, no payment: https://api.brazilayer.com/v1/cnpj/amostra
5000 (raw units)
price
3
calls / 30d
1
unique payers
2026-09-07
updated
Provider
api.brazilayer.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3Cc1D8ee1dfdFd326c19B0884B8dF4b24B623f0c",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"cnpj": "00000000000191"
},
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"cnae_principal": {
"codigo": "6422100",
"descricao": "Bancos múltiplos"
},
"cnpj": "00000000000191",
"endereco": {
"municipio": "BRASILIA",
"uf": "DF"
},
"razao_social": "BANCO DO BRASIL SA",
"situacao_cadastral": {
"codigo": "02",
"descricao": "Ativa"
}
},
"type": "json"
}
},
"routeTemplate": "/v1/cnpj/empresa/:cnpj",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"cnpj": {
"description": "Brazilian company tax ID (CNPJ), 14 digits, with or without punctuation (e.g. 00000000000191 or 00.000.000/0001-91)",
"type": "string"
},
"type": "object"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.brazilayer.com/v1/cnpj/empresa/:cnpj" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.brazilayer.com/v1/cnpj/empresa/:cnpj");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://api.brazilayer.com/v1/cnpj/empresa/:cnpj")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1509.json, and this resource appears in /discovery/resources and /discovery/search.