# LatAm Datos API – Spanish NIF/NIE Tax ID Validator

> LatAm Datos API – Spanish NIF/NIE Tax ID 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 Spanish NIF or NIE tax identification number and returns whether it is valid and its type

## Facts

- Endpoint: GET https://latam-datos-api.onrender.com/es/validar/nif
- 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-spanish-nif-nie-tax-id-validator-3c676a7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GY0xHMO8j61ellFakj6qw

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-spanish-nif-nie-tax-id-validator-3c676a7d
```

Example prompt: Can you check if the Spanish NIF '12345678Z' is valid and tell me what type of document it is?

## When to prefer this

Choose this endpoint when you need to validate Spanish fiscal tax IDs (NIF or NIE) specifically — particularly in LatAm/Spain-adjacent fintech, KYC, HR, or e-commerce workflows where Spanish identity document compliance is required. It is pay-per-call via USDC micropayment (x402), making it suitable for low-volume or agent-driven validation without subscription overhead.

## Known failure modes

- Missing 'valor' query parameter returns a 400 or validation error
- Non-string or malformed input may return invalid result or error
- Payment required (402) if x402 USDC payment not included
- Service may be temporarily unavailable if Render free-tier instance is sleeping
- Input that is neither NIF nor NIE format may return valido: false

## 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

Returns a JSON object with two fields: 'tipo' (the document type, e.g. 'NIF' or 'NIE') and 'valido' (a boolean indicating whether the provided identifier is valid). Example: {"tipo": "NIF", "valido": true}.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tipo": "NIF",
  "valido": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/latam-datos-api-spanish-nif-nie-tax-id-validator-3c676a7d/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)
