How to validate a Chilean RUT
How the check digit works
A RUT/RUN is a 7 or 8-digit number plus a check digit (0–9 or K), computed with mod 11:
- Walk the number right to left multiplying by
2,3,4,5,6,7, then restart at 2. - Add up and compute
r = 11 − (sum mod 11). - If
r = 11the digit is 0; ifr = 10it isK; otherwiser.
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":"CL_RUT","value":"19.818.718-6"}'
# synthetic test data only / solo para pruebas
curl "https://validalatam.ia-latam.app/generate/CL_RUT"Python
import requests
BASE = "https://validalatam.ia-latam.app"
r = requests.post(f"{BASE}/validate", json={"type": "CL_RUT", "value": "19.818.718-6"})
print(r.json()["valid"], r.json()["formatted"])
Real API response (synthetic value from /generate)
19.818.718-6 (CL_RUT):
{"valid":true,"type":"CL_RUT","country":"CL","input":"19.818.718-6","normalized":"198187186","formatted":"19.818.718-6","error":null,"details":null}
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-mcpgithub.com/elmatis172/validalatam-mcp
← All guides · Contact: faucolabs@gmail.com