How it works
Call any endpoint
You get HTTP 402 back with the exact price, the asset (USDC on Base)
and the address to pay โ machine-readable, no account needed.
Pay a fraction of a cent
Your x402 client signs a USDC authorization. Libraries like
@x402/fetch do this automatically โ one line of code.
Get your JSON
Retry with the payment proof and receive the data. The whole loop takes about two seconds, end to end.
Datasets
CNPJ Registry
$0.005 โ $0.02 per call
Every company in Brazil, from the official Receita Federal registry, refreshed monthly.
- Registration card: legal name, status, activities, address, tax regime
- Partners & shareholders, with roles and entry dates
- Full-text company search by name, state, city or activity
- Reverse lookup: every company where a person is a partner
Sanctions & Integrity
$0.01 per screening
Five official government sanction lists in a single call, updated daily.
- Debarred & ineligible companies (CEIS)
- Anti-corruption penalties with fine amounts (CNEP)
- Slave-labor blacklist and barred nonprofits
- Leniency agreements โ plus a simple clean-record flag
See it live
# Free sample โ learn the response format before paying curl https://api.brazilayer.com/v1/cnpj/amostra # Paid endpoint without payment โ returns the 402 quote curl -i https://api.brazilayer.com/v1/integridade/consulta/00000000000191 # With an x402 client, payment is automatic const fetchPay = wrapFetchWithPayment(fetch, client) await fetchPay('https://api.brazilayer.com/v1/cnpj/empresa/00000000000191')
For agents and builders
Straight from the source, nothing added
Brazilayer redistributes official public records from the Brazilian government โ the Federal Revenue company registry and the transparency portals for sanctions โ exactly as published, converted to clean JSON. No scraping, no enrichment, no guessing: personal identifiers arrive masked from the source and stay masked. Every response cites its source and reference date.