Brazilayer — Brazilian Company Data (CNPJ)

Official registration data for all ~69 million Brazilian companies, from the Receita Federal (Brazilian IRS) public CNPJ registry, updated monthly. No API keys, no signup: paid endpoints use the x402 payment protocol (USDC on Base).

Datasets

CNPJ Registry (live) — every Brazilian company, from the official Receita Federal registry. More Brazilian public datasets (official gazettes, court records, public tenders) are on the roadmap under the same payment rails.

Start here (free)

GET /v1/health         → service status + data reference month
GET /v1/cnpj/amostra   → full sample response, learn the schema before paying

CNPJ Registry — paid endpoints

EndpointPrice
GET /v1/cnpj/empresa/{cnpj} — registration card$0.005
GET /v1/cnpj/empresa/{cnpj}/socios — partners/shareholders$0.005
GET /v1/cnpj/empresa/{cnpj}/completo — full bundle + branches$0.01
GET /v1/cnpj/busca — company search (name/state/city/activity)$0.01
GET /v1/cnpj/socio/busca?nome=… — reverse partner lookup$0.02

How payment works

Call any paid endpoint → receive HTTP 402 with a payment-required header (base64 JSON: price, USDC asset, pay-to address) → sign an EIP-3009 authorization and retry. Client libraries like @x402/fetch automate the whole flow in one line.

Machine-readable