Use when a Brazilian postal code needs to become a real address — filling a form, validati
Use when a Brazilian postal code needs to become a real address — filling a form, validating a delivery, completing a customer record. JSON body { cep } (8 digits). Returns street, complement, neighborhood, city and state (UF). Queries BrasilAPI first and falls back to ViaCEP automatically, so one upstream outage does not fail the task; both sources return the same normalized shape. CEP is postal/geographic data, not personal data.
5000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-17
updated
Provider
tools.miniframe.com.br · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x879933456986877f5d87e6ee24d1e0ebd264f527",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"cep": "01310100"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"cep": "01310100",
"city": "São Paulo",
"complement": "",
"neighborhood": "Bela Vista",
"source": "brasilapi",
"state": "SP",
"street": "Avenida Paulista"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"cep": {
"description": "Brazilian postal code, 8 digits (with or without dash).",
"type": "string"
}
},
"required": [
"cep"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://tools.miniframe.com.br/cep" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://tools.miniframe.com.br/cep");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://tools.miniframe.com.br/cep")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4753.json, and this resource appears in /discovery/resources and /discovery/search.