Brazil

Community API for Brazilian public data (CEP, CNPJ, banks…)

🏛 GovernmentHEALTHYchecked 1h ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

A single friendly gateway to scattered Brazilian public datasets — postal codes (CEP), companies (CNPJ), banks, DDD area codes, holidays and more. This sample resolves a CEP to its street, neighborhood, city, and state. Keyless, but the maintainers ask you not to loop through every code.

96HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 96 · healthy
Uptime history
100%90 days
100%30 days
122P50 · ms
862P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 30 ms, slowest 727 ms, most recent 56 ms.
Live response samplecaptured by our last successful check
GET https://brasilapi.com.br/api/cep/v1/01001000

{
  "cep": "01001000",
  "state": "SP",
  "city": "São Paulo",
  "neighborhood": "Sé",
  "street": "Praça da Sé",
  "service": "open-cep"
}
Call itcurl · fetch · python
curl "https://brasilapi.com.br/api/cep/v1/01001000"
const res = await fetch("https://brasilapi.com.br/api/cep/v1/01001000");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://brasilapi.com.br/api/cep/v1/01001000")
print(res.json())
Endpoints · 6HealthyFULL DOCS ↗
Monitored path responding — GET /cep/v1/01001000122 mschecked 1h ago
GET/cep/v1/01001000PROBED

Community API for Brazilian public data (CEP, CNPJ, banks…)

GET/cep/v1

V1 — documented GET route.

GET/cep/v1/1

V1 details by ID (example: 1).

GET/cep

Cep — documented GET route.

GET/cep/1

Cep details by ID (example: 1).

GET/cep?limit=10

Cep — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

Brazil: common questions

Is Brazil free to use?

Yes — Brazil is a free government API. Free tier: Free — no key (beta). Whether the free tier allows commercial use is unclear — check the provider docs.

Does Brazil need an API key?

No — Brazil needs no API key or signup. You can call it straight away; rate limits still apply (Fair use — no loops or full-range scanning).

Can I call Brazil from the browser?

Yes — Brazil returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is Brazil up right now?

As of our last scheduled check, Brazil is healthy with 100% uptime over 90 days and a 122 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.