Skip to main content

México — OCR INE

Extraia campos de uma INE mexicana (Credencial para Votar) usando imagens da frente e, opcionalmente, do verso. Envie JSON com:

  • front (obrigatório) — URL pública ou imagem/PDF em base64 da frente
  • back (opcional) — URL pública ou base64 do verso; melhora a precisão de CIC, OCR e MRZ

Retorna nomes, CURP, clave de elector, CIC, OCR, endereço, validade e metadados quando a extração é bem-sucedida.

Para validar o status eleitoral por identificador, use México — Validação INE (v2/mx/ine). Para CURP, use Cidadão mexicano (CURP) (v2/mx/curp).

API reference

Endpoint

https://api.verifik.co/v2/mx/ine/ocr

Submit front (and optional back) images. Verifik runs Gemini OCR, then Nexcar number validation, and returns nested ocr + validation + validateParamsUsed.

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Parameters

NameTypeRequiredDescriptionExample
frontstringYesFront image as a public URL or base64 string (with or without data: prefix). Supported: JPG, JPEG, PNG, GIF, PDF.https://example.com/ine-front.jpg
backstringNoBack image as a public URL or base64 string. Improves OCR accuracy.https://example.com/ine-back.jpg

Request

import axios from "axios";

const { data } = await axios.post(
"https://api.verifik.co/v2/mx/ine/ocr",
{
front: "https://example.com/ine-front.jpg",
back: "https://example.com/ine-back.jpg",
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
}
);
console.log(data);

Response

{
"data": {
"ocr": {
"cic": "187639699",
"citizenIdentifier": "031206745",
"curp": "MAFC760611MYNRLR03",
"documentType": "INE",
"electorKey": "CSFTGV76061131H400",
"fullName": "CARLA ISABEL MARTINEZ FERNANDEZ",
"ocr": "0276031206745",
"subType": "E",
"type": "INE"
},
"validation": {
"cic": "187639699",
"documentNumber": "187639699",
"documentType": "INE",
"status": "OK",
"validity": "31 de diciembre de 2030"
},
"validateParamsUsed": {
"documentType": "INE",
"documentNumber": "187639699",
"ocr": "0276031206745",
"citizenIdentifier": "031206745",
"model": "E"
}
},
"signature": {
"dateTime": "July 14, 2026 10:00 AM",
"message": "Certified by Verifik.co"
}
}

Notes

  • front is required; back is optional but recommended for CIC, OCR, citizen identifier, and MRZ fields.
  • Images may be public URLs or base64 (with or without data: prefix). Supported formats: JPG, JPEG, PNG, GIF, PDF.
  • Allow client timeouts of at least 60 seconds; upstream OCR jobs typically finish in 5–30 seconds.
  • Sandbox: any valid front string returns a fixture; a front value containing 404 returns 404.
  • Related: Mexico — INE Validation, Mexican Citizen (CURP).