✅ ValidaLatam All guides · API docs · RapidAPI · ES

How to validate an Ecuadorian cédula

How the check digit works

The cédula has 10 digits: province (01–24 or 30), a third digit of 0–5 for individuals, and a final mod-10 check digit:

  1. Multiply the first 9 digits by alternating 2,1,2,1,….
  2. If a product is greater than 9, subtract 9. Add everything up.
  3. Check digit = (10 − sum mod 10) mod 10.

Validate with the API

Direct use is free: 50 requests per IP per day, no signup. Endpoints: POST /validate, POST /batch, GET /generate/{doc_type} (for testing only: synthetic data, not real identities).

curl

curl -X POST "https://validalatam.ia-latam.app/validate" -H "Content-Type: application/json" \
  -d '{"type":"EC_CEDULA","value":"1459149769"}'

# synthetic test data only / solo para pruebas
curl "https://validalatam.ia-latam.app/generate/EC_CEDULA"

Python

import requests

BASE = "https://validalatam.ia-latam.app"

r = requests.post(f"{BASE}/validate", json={"type": "EC_CEDULA", "value": "1459149769"})
print(r.json()["valid"], r.json()["formatted"])

Real API response (synthetic value from /generate)

1459149769 (EC_CEDULA):

{"valid":true,"type":"EC_CEDULA","country":"EC","input":"1459149769","normalized":"1459149769","formatted":"145914976-9","error":null,"details":{"province":"14"}}

Plans

For production: Basic free (500 req), Pro US$9, Ultra US$29 and Mega US$99 per month on RapidAPI.

For AI assistants (MCP)

pip install validalatam-mcp

github.com/elmatis172/validalatam-mcp

← All guides · Contact: faucolabs@gmail.com