Brazil API
Community driven API for Brazil Public Data
- Our call
- HTTP 200
- Latency
- 1,116 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://brasilapi.com.br/api/cep/v1/01001000Press 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);curl -sS 'https://brasilapi.com.br/api/cep/v1/01001000'import requests
r = requests.get("https://brasilapi.com.br/api/cep/v1/01001000", timeout=10)
r.raise_for_status()
print(r.json())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
cepstatecityneighborhoodstreetserviceibge- 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
| Fact | Brazil (this page) | Federal Register | Api Colombia | Ayes and Noes | Bank Negara Malaysia Open Data |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Yes | Not recorded | Not recorded | Yes | Not recorded |
| Our test call Measured by us | 1,116 ms | 408 ms | Not tested | Not tested | Not tested |
| Browser call Measured by us | Allowed | Allowed | — | — | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
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.