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, in 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.001 to $0.02 per call
Every company in Brazil, from the official Receita Federal registry, refreshed monthly.
- Status check: does this CNPJ exist and is it active ($0.001)
- 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
Public Contracts
$0.01 per call
Government procurement from the official portal (PNCP), refreshed daily.
- Every contract won by a company, with values and bodies
- Supplier summary: totals, first/last contract, distinct bodies
- Open tenders accepting proposals, live from the source
- The B2G piece of due diligence
Central Bank Registry
$0.005 per check
Licensed financial institutions, from the Central Bank of Brazil, daily.
- Is this company a BCB-authorized bank, credit union or consortium?
- Officially verified internet domains to catch fake-bank phishing
- The instant check for crypto exchanges and fintechs onboarding Brazil
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
Brazil Markets
$0.002 per call
Streaming market data for trading agents, refreshed every 15 minutes.
- BR financial & crypto news with AI sentiment and market relevance
- Selic, IPCA, PTAX and the Focus survey (market forecasts), from the Central Bank
- Live BRL crypto premium (ágio): a classic capital-flow signal
Commodity Signals
$0.002 to $0.10 per call
Brazil prices global commodities: the signals, from official public data.
- Crop-weather stress per belt: rain, drought, frost risk (coffee, soy, sugar…)
- Satellite fire hotspots, exports with YoY, stored hydro energy
- Daily AI Brazil Commodity Briefing in English, with direction flags
Fund Industry
$0.005 to $0.01 per call
The R$ 13.8 trillion Brazilian fund industry, from official CVM filings.
- Daily net flows by fund class: where institutional money is moving
- Verify any fund: registered at the CVM? operating? who manages it?
- Rank and screen ~25,000 fund classes by assets, inflows or shareholders
Deforestation
$0.01 to $0.02 per call
Official satellite alerts since the EU deforestation cutoff of 31 Dec 2020.
- 176,000 km² cleared across 1,450 municipalities (Amazon and Cerrado)
- From a supplier's CNPJ to the record of its municipality
- For coffee, soy, cattle and cocoa entering the EU from December 2026
Causal Chains
$0.05 per chain
Not the measurement: what precedes it, and by how long.
- Rain over the Southeast leads reservoirs by weeks → thermal dispatch risk
- Frost in the coffee belt, drought in Mato Grosso, dollar premium vs fund flows
- Deterministic reading: the rule, its thresholds and its limits travel with the answer
Tax Reform
$0.002 to $0.005 per call
Brazil is replacing 5 taxes between 2026 and 2033. Every seller must reclassify.
- Which IBS/CBS regime applies to a product, by NCM: zero, −60% or standard
- Always with the legal basis: annex, item and the literal wording of the law
- Transition calendar: which taxes are in force in any given year
Company Enrichment
$0.05 per profile
The full KYB profile in one call: entity in, due diligence out.
- Registration + partners + branches + sanctions + Central Bank + contracts
- Replaces 5 separate calls, in the format enrichment buyers expect
- Free sample: a sanctioned company with government contracts
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
# Python: LangChain/CrewAI tools included
pip install brazilayer
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.
Rated like every other x402 service
This API is listed and rated by the Agent Economy Report, an independent observatory of the agent economy (daily trust ratings for every x402 service, a settlement index net of bots and storefronts, monthly reports and an open dataset), by the same code as everyone else. See our rating →