# LatAm Datos API – Mexico CLABE Validator

> LatAm Datos API – Mexico CLABE Validator is a paid API for AI agents from latam-datos-api.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates a Mexican CLABE interbank account number and returns whether it is valid along with the associated bank code

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/mx/validar/clabe
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/latam-datos-api-mexico-clabe-validator-f87bf4c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6XPbw2rQQej8tOYUeyE1b

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 latam-datos-api-mexico-clabe-validator-f87bf4c3
```

Example prompt: Can you validate this Mexican CLABE number — 032180000118359719 — and tell me if it's valid and which bank it belongs to?

## When to prefer this

Use this endpoint when you need to validate a Mexican CLABE interbank account number before initiating a payment, onboarding a vendor, or verifying user-submitted banking details. It is the right choice when your workflow is Mexico-specific and requires both structural checksum validation and bank identification in a single lightweight call. Prefer this over generic regex-based validators because it returns the actual bank code, not just a pass/fail result.

## Known failure modes

- Missing or empty 'valor' query parameter returns an error
- Malformed CLABE (wrong length, non-numeric) returns valido: false
- Unknown or unrecognized bank prefix may return valido: false even for structurally correct CLABEs
- Network timeout if the Render.com host is cold-starting
- 402 Payment Required if x402 USDC payment is not included or fails

## How this service works

Datos de mercados emergentes para agentes: FX LatAm, inflacion, tasas de bancos centrales, feriados, validacion de IDs fiscales/bancarios, IVA y salarios minimos. Pago por consulta via x402 v2 (USDC en Base).

## Output

A JSON object with two fields: 'valido' (boolean indicating whether the CLABE passes the checksum and structural validation) and 'banco' (a 3-digit string representing the Mexican bank code associated with the CLABE, e.g. '002' for BBVA).

## 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": [
      "valor"
     ],
     "properties": {
      "valor": {
       "type": "string",
       "description": "CLABE a validar"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "banco": "002",
  "valido": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-mexico-clabe-validator-f87bf4c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from latam-datos-api.onrender.com](https://www.zero.xyz/host/latam-datos-api.onrender.com/llms.txt)
