PASAR API

🇧🇷 ViaCEP ~ Brazilian postal code (CEP) address lookup

← directory
ViaCEPMaps & locationtier: openauth: no authpricing: freeverified 2026-07-05

Famous keyless web service that resolves any 8-digit CEP to a full street address (and reverse-searches by state/city/street) in JSON or XML.

View docs ↗ More Maps & location APIs All Brazil APIs

Call it

curl --fail-with-body --location --max-time 30 'https://viacep.com.br/ws/01001000/json/'

AI prompt

I'm building an app using a public Brazil API (no private credentials needed).

API: ViaCEP ~ Brazilian postal code (CEP) address lookup
Provider: ViaCEP
Endpoint: GET https://viacep.com.br/ws/01001000/json/
Response format: JSON

Source: ViaCEP (https://viacep.com.br/)
Source type: Official open-data catalogue
Endpoint type: Open-data catalogue JSON
Integration difficulty: Copy-paste ready
Last checked: 2026-07-05
Production caveat: Still handle empty rows, schema changes, pagination, stale coverage, and temporary upstream failures.

Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.

Related Maps & location APIs

OneMap ~ Singapore's official map: geocoding, routing & themesMapbox Geocoding API ~ forward/reverse geocodingGoogle Maps PlatformHERE Location ServicesRadar Maps PlatformNominatim (OpenStreetMap)Malaysia PostcodesTomTom Maps & RoutingAzure MapsFoursquare Places API