Skip to main content

メキシコ — INE OCR

メキシコの INECredencial para Votar)の表面(および任意の裏面)画像からフィールドを抽出します。JSON で次を送信します:

  • front(必須)— 表面の公開 URL または base64 画像/PDF
  • back(任意)— 裏面の公開 URL または base64。CIC・OCR・MRZ の精度向上

抽出成功時は氏名、CURP、clave de elector、CIC、OCR、住所、有効期限などのメタデータを返します。

識別子で選挙ステータスを検証するには メキシコ — INE 検証v2/mx/ine)を使用してください。CURP は メキシコ市民(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).