KYC
Voter ID OCR API
Read Election Commission voter ID cards, front and back. Works with cards that show a date of birth or only an age.
Fields returned
| Field | What it is |
|---|---|
epic_number | 3 letters + 7 digits, format checked |
name | Elector's name |
relative_name | Father's or husband's name (relation reported) |
gender | As printed |
dob / age | Date of birth, or age where only age is printed |
address, pincode | From the back side |
Every field comes with a confidence score from 0 to 1.
Checks
- EPIC number format
- Date of birth is a real, past date
If a required field is missing, unsure, or a check fails, the response hasneeds_review: true and a warning explaining why.
Used for
- Identity and address proof
- Rural and MFI lending
Request
Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Leave out document_type to detect it automatically.
curl https://api.lendocr.com/v1/documents:extract \
-H "Authorization: Bearer lo_test_..." \
-F file=@document.jpg \
-F document_type=voter_idQuestions about the voter id API
What if the card shows age instead of date of birth?
Older voter ID cards print 'Age as on' a date. LendOCR returns the age in that case, and the date of birth when it is printed.
Can I send a phone photo of a voter id?
Yes. Send a JPEG, PNG, WebP, TIFF, BMP or PDF up to 10 MB. Tilted and low-resolution photos are handled; if an image is too unclear, the response is flagged for review and says why.
Do you store the voter id after reading it?
No. On the extract API the document is processed in memory and dropped. For background jobs it is kept encrypted only until processed, and results are erased after 24 hours.