墨西哥 — INE 验证
对照选举登记册验证墨西哥 INE(Credencial para Votar)。发送 documentType=INE 以及 documentNumber 中的主标识符。API 会自动识别该值是 CIC(9 位)、OCR(13 位)还是 clave de elector(18 个字符)。
可选字段覆盖官方来源要求的卡片型号组合:
citizenIdentifier— 型号 E、F、G、H 需与 CIC 一起提供emissionNumber— 型号 C 需与 OCR 和 clave de elector 一起提供model— 可选型号提示(C–H)以选择正确组合
按 CURP 查询姓名请使用 墨西哥公民(CURP)(v2/mx/curp)。从图像提取字段请使用 墨西哥 — INE OCR(v2/mx/ine/ocr)。
API reference
Endpoint
https://api.verifik.co/v2/mx/ine
Submit an INE identifier to obtain electoral status, validity, emission metadata, and related registry fields when the credential is recognized.
Headers
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
documentType | string | Yes | Allowed value: INE. | INE |
documentNumber | string | Yes | CIC (9 digits), OCR (13 digits), or clave de elector (18 alphanumeric). | 187639699 |
citizenIdentifier | string | No | Citizen identifier from the back of the card. Needed for models E–H with CIC. | 031206745 |
emissionNumber | string | No | Emission number. Needed for model C. | 1 |
model | string | No | Optional card model hint: C, D, E, F, G, or H. | E |
Request
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/mx/ine", {
params: {
documentType: "INE",
documentNumber: "187639699",
},
headers: { Accept: "application/json", Authorization: `Bearer ${process.env.VERIFIK_TOKEN}` },
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/mx/ine"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"documentType": "INE", "documentNumber": "187639699"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
Response
- 200
- 404
- 409
{
"data": {
"cic": "187639699",
"documentNumber": "187639699",
"documentType": "INE",
"electorKey": "CSFTGV76061131H400",
"emissionNumber": "1",
"emissionYear": "2018",
"federalDistrict": "04",
"identifierType": "cic",
"localDistrict": "03",
"message": "Vigente como medio de identificacion y puede votar",
"messageCode": "3",
"ocr": "0276031206745",
"registrationYear": "2010",
"status": "OK",
"validity": "31 de diciembre de 2030"
},
"signature": {
"dateTime": "July 14, 2026 10:00 AM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "missing documentNumber\n"
}
Notes
documentTypemust beINE.documentNumberauto-detects CIC (9 digits), OCR (13 digits), or clave de elector (18 alphanumeric).- Models E–H typically need
citizenIdentifierwith CIC; model C needsemissionNumberwith OCR and clave de elector. - Negative electoral verdicts (for example not vigente) still return HTTP 200 with
statusandmessagereflecting the registry result. - Sandbox fixtures:
187639699,0276031206745,CSFTGV76061131H400. Document900404019returns 404. - Related: Mexican Citizen (CURP), Mexico — INE OCR.