# BR Intelligence – CEP Postal Code Lookup

> BR Intelligence – CEP Postal Code Lookup is a paid API for AI agents from br-intelligence.brverify-api.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-12).

Looks up Brazilian postal code (CEP) details including street, city, state, and IBGE city code

## Facts

- Endpoint: GET https://br-intelligence.brverify-api.workers.dev/v1/cep?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/br-intelligence-cep-postal-code-lookup-fb0755fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hjp4N-shTj_0FMcIAFoJG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability br-intelligence-cep-postal-code-lookup-fb0755fa
```

Example prompt: Can you look up the address details for Brazilian postal code 38400-100 — I need the street name, city, and state?

## When to prefer this

Choose this endpoint when you need structured Brazilian postal code resolution with machine-readable IBGE city codes and are comfortable with x402 micropayment billing in USDC on Base. It is well-suited for AI agent workflows that process Brazilian addresses at low per-call cost without requiring API key management.

## Known failure modes

- Invalid or non-existent CEP returns an error or empty result
- CEP with wrong digit count or non-numeric characters may be rejected
- Rural or very new CEPs may not be in the database
- Network timeout from Cloudflare Workers edge
- Payment failure via x402/USDC results in 402 response before data is returned

## How this service works

Pay-per-call Brazilian business intelligence for AI agents, paid via x402 in USDC on Base.

## Output

A JSON object containing the normalized CEP, street name (logradouro), city name, two-letter state abbreviation, and the IBGE numeric city code — e.g. {"cep":"38400100","street":"Avenida Floriano Peixoto","city":"Uberlândia","state":"MG","ibge":{"city":"3170206"}}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cep"
     ],
     "properties": {
      "cep": {
       "type": "string",
       "description": "Brazilian postal code (CEP), 8 digits, with or without hyphen."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cep": "38400100",
  "city": "Uberlândia",
  "ibge": {
   "city": "3170206"
  },
  "state": "MG",
  "street": "Avenida Floriano Peixoto"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/br-intelligence-cep-postal-code-lookup-fb0755fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from br-intelligence.brverify-api.workers.dev](https://www.zero.xyz/host/br-intelligence.brverify-api.workers.dev/llms.txt)
