# LatAm Datos API – Mexico CURP Validator

> LatAm Datos API – Mexico CURP 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 CURP (Clave Única de Registro de Población) identifier and returns whether it is structurally valid along with the inferred sex of the holder.

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/mx/validar/curp
- 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-curp-validator-64ff96ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mCCzCf-axjGDe85uuIDFd

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-curp-validator-64ff96ec
```

Example prompt: Can you check if the CURP 'LOOA531113HTCPBN07' is valid and tell me what sex it corresponds to?

## When to prefer this

Use this endpoint when you need a quick, low-cost structural validation of a Mexican CURP — especially in agent workflows handling Mexican user onboarding, KYC checks, or government ID verification where you need both a validity flag and basic gender inference from a single call. It charges only $0.001 USDC per call via x402, making it economical for high-volume validation pipelines targeting Mexico.

## Known failure modes

- Missing or empty 'valor' query parameter returns an error response
- Malformed CURP string may return valido: false without additional detail
- Service hosted on Render free tier may have cold-start latency or downtime
- Payment failure via x402/USDC may prevent the request from completing

## 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 CURP passes structural validation) and 'sexo' (string indicating the sex encoded in the CURP, e.g. 'hombre' or 'mujer').

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sexo": "hombre",
  "valido": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-mexico-curp-validator-64ff96ec/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)
