FreetierapisFree APIs you can call right now

Brazil API

Community driven API for Brazil Public Data

Called and docs checked Measured by usFrom the public-apis list
Our call
HTTP 200
Latency
1,116 ms
From a browser
Allowed
Key
No key
Docs link
Answered
GEThttps://brasilapi.com.br/api/cep/v1/01001000

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

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

Brazil docsMore Government APIs

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

Our test call Measured by us

Request
GET https://brasilapi.com.br/api/cep/v1/01001000
Result
HTTP 200 in 1,116 ms (1,124 ms with the body)
From a browser
Browser OK Access-Control-Allow-Origin: *
HTTPS
Yes
Response
application/json, 157 bytes, a JSON object
Fields
cep state city neighborhood street service ibge
Rate-limit headers
none sent (that doesn't mean unlimited)

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
Government
Auth
No key
CORS
Yes
Docs link
brasilapi.com.br answered 200 in 3742 ms on 2026-11-06 Measured

Brazil is listed in Government. Brazil needs no key: you can call it without signing up. The list says it sends CORS headers, so JavaScript on a web page can call it straight from the browser.

The list has 102 Government APIs: 70 need no key, 28 need an API key and 4 use OAuth, and 20 of them are marked as allowing browser calls. 12 others have the same setup, such as Apostille Finder, Ayes and Noes and Brazil CNPJ.

Brazil and other Government APIs

FactBrazil (this page)Federal RegisterApi ColombiaAyes and NoesBank Negara Malaysia Open Data
Key needed From the public-apis listNo keyNo keyNo keyNo keyNo key
CORS, as listed From the public-apis listYesNot recordedNot recordedYesNot recorded
Our test call Measured by us1,116 ms408 msNot testedNot testedNot tested
Browser call Measured by usAllowedAllowed———
Docs link Measured by usAnsweredAnsweredAnsweredAnsweredAnswered

All 102 Government APIs

Questions

Does Brazil need an API key?

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

Can I call Brazil 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 Brazil docs?

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

What are some alternatives to Brazil?

Other Government APIs in the list include Apostille Finder, Ayes and Noes, Brazil CNPJ and City, Toronto Open Data.

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

Report a problem with this page