ViaCep

Brazilian CEP (zip code) lookups, instantly

🗺 Geo & MapsHEALTHYchecked 12h ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

Resolve a Brazilian CEP into street, neighbourhood, city, state and region plus IBGE and DDD codes. A long-standing, widely used free endpoint for Brazilian address data.

87HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 87 · healthy
Uptime history
98.0%90 days
98.3%30 days
651P50 · ms
2277P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 71 ms, slowest 1661 ms, most recent 537 ms.
Live response samplecaptured by our last successful check
GET https://viacep.com.br/ws/01001000/json/

{
  "cep": "01001-000",
  "logradouro": "Praça da Sé",
  "bairro": "Sé",
  "localidade": "São Paulo",
  "uf": "SP",
  "estado": "São Paulo",
  "ibge": "3550308",
  "ddd": "11"
}
Call itcurl · fetch · python
curl "https://viacep.com.br/ws/01001000/json/"
const res = await fetch("https://viacep.com.br/ws/01001000/json/");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://viacep.com.br/ws/01001000/json/")
print(res.json())
Endpoints · 5HealthyFULL DOCS ↗
Monitored path responding — GET /ws/01001000/json/651 mschecked 12h ago
GET/ws/01001000/json/PROBED

Brazilian CEP (zip code) lookups, instantly

GET/ws

Ws — documented GET route.

GET/ws/1

Ws details by ID (example: 1).

GET/ws?limit=10

Ws — documented GET route.

GET/ws/search?q=test

Search by query parameters.

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.

ViaCep: common questions

Is ViaCep free to use?

Yes — ViaCep is a free geo & maps API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.

Does ViaCep need an API key?

No — ViaCep needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call ViaCep from the browser?

Yes — ViaCep 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 ViaCep up right now?

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