# Toolrail Brazilian CEP Lookup

> Toolrail Brazilian CEP Lookup is a paid API for AI agents from toolrail.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Resolves a Brazilian postal code (CEP) to its full address: street, neighborhood, city, state, and IBGE code.

## Facts

- Endpoint: GET https://toolrail.dev/br/cep?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolrail-brazilian-cep-lookup-6b5b79cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_52SIeWcAQystS5Hw17ThT

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 toolrail-brazilian-cep-lookup-6b5b79cb
```

Example prompt: What address does the Brazilian postal code 01310-100 correspond to? I need the street, neighborhood, city, and state.

## When to prefer this

Use this endpoint whenever you have a Brazilian postal code (CEP) and need structured address data including street, neighborhood, city, state, and IBGE code. It covers 700k+ Brazilian CEPs and is purpose-built for the Brazilian postal system, making it preferable to generic geocoding APIs that may have poor coverage of Brazilian localities.

## Known failure modes

- CEP not found: 'found' field returns false with no address data
- Invalid CEP format: query param malformed or non-numeric characters
- CEP outside the 700k+ covered range: returns found=false
- Network timeout or service unavailability
- Missing cep query parameter returns an error

## How this service works

Brazilian postal code (CEP) lookup: street, neighborhood, city, state and IBGE code for any of Brazil's 700k+ CEPs. Use when you have a Brazilian postal code (CEP) and need the full address.

## Output

Returns a JSON object with the resolved address fields: cep, street (calle), neighborhood (barrio), city (ciudad), state (estado), IBGE code, data source (fuente), and a boolean 'found' flag indicating whether the CEP was matched in the database.

## 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",
     "properties": {
      "cep": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "cep": {
       "type": "string"
      },
      "calle": {
       "type": "string"
      },
      "found": {
       "type": "boolean"
      },
      "barrio": {
       "type": "string"
      },
      "ciudad": {
       "type": "string"
      },
      "estado": {
       "type": "string"
      },
      "fuente": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolrail-brazilian-cep-lookup-6b5b79cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolrail.dev](https://www.zero.xyz/host/toolrail.dev/llms.txt)
