FreetierapisFree APIs you can call right now

ViaCep API

Brazil RESTful zip codes API

Called and docs checked Measured by usFrom the public-apis list
Our call
HTTP 200
Latency
2,229 ms
From a browser
Allowed
Key
No key
Docs link
Answered
GEThttps://viacep.com.br/ws/01001000/json/

Press Run: the request leaves from your browser, and you see what it gets back.

const res = await fetch("https://viacep.com.br/ws/01001000/json/");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);

ViaCep docsMore Geocoding APIs

Come back to see anything that changed: answers, keys, browser access, rate limits.

Our test call Measured by us

Request
GET https://viacep.com.br/ws/01001000/json/
Result
HTTP 200 in 2,229 ms
From a browser
Browser OK Access-Control-Allow-Origin: *
HTTPS
Yes
Response
application/json, 290 bytes, a JSON object
Fields
cep logradouro complemento unidade bairro localidade uf estado regiao ibge
Rate-limit headers
none sent (that doesn't mean unlimited)
The list has CORS as "not recorded" for ViaCep, but it sent Access-Control-Allow-Origin: * to us, so browser code can call it.

Change log Measured by us

No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.

What the list says From the public-apis list

Category
Geocoding
Auth
No key
CORS
Not recorded Our call disagrees
Docs link
viacep.com.br answered 200 in 2493 ms on 2026-11-06 Measured

ViaCep is listed in Geocoding. ViaCep needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.

The list has 102 Geocoding APIs: 48 need no key, 53 need an API key and 1 uses OAuth, and 51 of them are marked as allowing browser calls. 20 others have the same setup, such as adresse.data.gouv.fr, Cartes.io and Cep.la.

ViaCep and other Geocoding APIs

FactViaCep (this page)BigDataCloud's Free APICountryGeoJSIP Address Details
Key needed From the public-apis listNo keyNo keyNo keyNo keyNo key
CORS, as listed From the public-apis listNot recordedYesYesYesNot recorded
Our test call Measured by us2,229 ms5,159 ms7,868 ms2,866 ms181 ms
Browser call Measured by usAllowedAllowedAllowedAllowedAllowed
Docs link Measured by usAnsweredAnsweredAnsweredAnsweredAnswered

All 102 Geocoding APIs

Questions

Does ViaCep need an API key?

ViaCep needs no key: you can call it without signing up.

Can I call ViaCep from JavaScript in the browser?

Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.

Where are the ViaCep docs?

At https://viacep.com.br. When we checked, the link answered 200 in 2493 ms.

What are some alternatives to ViaCep?

Other Geocoding APIs in the list include adresse.data.gouv.fr, Cartes.io, Cep.la and CitySDK.

Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.

Report a problem with this page