Cédula EC Validator
Ecuadorian cédula (national ID) · Issuer: Registro Civil. Onboarding, SRI invoicing with cédula, forms.
Free online validator
Validated with the public algorithm; we don't store your input.Format
10 digits: province (01–24 or 30), third digit < 6, 6 digits and a check digit.
Check-digit algorithm
- Luhn-like mod 10: weights 2,1,2,1,2,1,2,1,2.
- If a product exceeds 9, subtract 9.
- DV = (10 − sum mod 10) mod 10.
Use cases
Onboarding, SRI invoicing with cédula, forms.
Code examples
# curl (RapidAPI)
curl -X POST "https://validalatam.p.rapidapi.com/validate" -H "Content-Type: application/json" \
-H "X-RapidAPI-Key: $RAPIDAPI_KEY" -H "X-RapidAPI-Host: validalatam.p.rapidapi.com" \
-d '{"type":"EC_CEDULA","value":"0459849154"}'
# Python
import requests
r = requests.post("https://validalatam.p.rapidapi.com/validate", json={"type": "EC_CEDULA", "value": "0459849154"},
headers={"X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com"})
print(r.json()["valid"], r.json()["formatted"])
// JavaScript (fetch)
const r = await fetch("https://validalatam.p.rapidapi.com/validate", { method: "POST",
headers: { "Content-Type": "application/json", "X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com" },
body: JSON.stringify({ type: "EC_CEDULA", value: "0459849154" }) });
const { valid, formatted, error } = await r.json();
# Response
{
"valid": true,
"type": "EC_CEDULA",
"country": "EC",
"input": "0459849154",
"normalized": "0459849154",
"formatted": "045984915-4"
}
API plans on RapidAPI
Free plan to get started; paid plans for production volume and batch validation (up to 1000 per request).
FAQ
How is the Cédula EC check digit calculated?
Luhn-like mod 10: weights 2,1,2,1,2,1,2,1,2. If a product exceeds 9, subtract 9. DV = (10 − sum mod 10) mod 10.
What is the Cédula EC format?
10 digits: province (01–24 or 30), third digit < 6, 6 digits and a check digit.
What is province code 30?
It's assigned to Ecuadorians registered abroad.
Is this validator free?
Yes, the web tool is free. To integrate it, use the API: there's a free plan on RapidAPI.
Does the API store the numbers I validate?
No. Validation is deterministic, with no storage and no third-party lookups.