✅ ValidaLatam All guides · API docs · RapidAPI · ES

How to validate a Uruguayan ID card (CI)

How the check digit works

A Uruguayan CI has 7 or 8 digits including the check digit (left-padded with zeros to 8).

  1. Multiply the first 7 digits by 2,9,8,7,6,3,4 and add up.
  2. 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":"UY_CI","value":"6.839.402-7"}'

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

Python

import requests

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

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

Real API response (synthetic value from /generate)

6.839.402-7 (UY_CI):

{"valid":true,"type":"UY_CI","country":"UY","input":"6.839.402-7","normalized":"68394027","formatted":"6.839.402-7","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-mcp

github.com/elmatis172/validalatam-mcp

← All guides · Contact: faucolabs@gmail.com