For KYC and identity verification
ID OCR API. Passports and IDs in. Typed JSON out.
PicToText is an ID OCR API for KYC. Send a photo of a passport, national ID card or driver's license to one endpoint and get the fields back as JSON, with nothing to train or configure.
No card required. 3 tries a day without an account.
L898902C36UTO7408122F1204159ZE184226B<<<<<10
- passportNumber
- L898902C3
- name
- ANNA MARIA ERIKSSON
- gender
- Female
- birthDay
- 1974-08-12
- nationality
- UTO
- expiryDay
- 2012-04-15
- mrz
- 2 lines, verbatim
OCR APIs for passports, ID cards and driver's licenses
One endpoint covers 44 document types. Each page lists the fields you get back and shows a sample response.
Passport OCR API
Visual-zone fields plus the MRZ, copied character for character.
Passport fields →ID card OCR
National IDs from Asia, Europe, Africa and the Americas, including Aadhaar, KTP and My Number.
ID card fields →Driver's license OCR
Licenses from the US, Canada, the UK, Japan and five more countries.
License fields →{
"name": "…",
"birthDay": "…",
"expiryDay": "…"
}KYC OCR API
Fill onboarding and identity checks with typed fields instead of manual entry.
How it fits a KYC flow →One ID OCR API request. Typed fields back.
Upload the image as multipart form data, name the document type, read the JSON. Errors come back as plain HTTP status codes with a reason you can act on.
Send the image
curl -X POST https://pictotext.io/api/v1/ocr \
-H "Authorization: Bearer $PICTOTEXT_KEY" \
-F "image=@passport.jpg" \
-F "documentType=passport"Read the fields
{
"passportNumber": "L898902C3",
"name": "ANNA MARIA ERIKSSON",
"birthDay": "1974-08-12",
"expiryDay": "2012-04-15",
"mrz": "P<UTOERIKSSON<<ANNA<MARIA…"
}Handle the edge cases
- 400
- Unsupported image or document type
- 401
- Missing or revoked API key
- 429
- Rate limited. Retry after Retry-After; not charged
- null
- A field it could not read, instead of a guess
44 supported ID documents, 30+ countries
Is yours on the list? Search by country or name; each links to its field schema.
44 document types
- PassportpassportInternational
- Argentina ID Cardar_id_cardAmericas
- Canada Provincial Driver's Licenseca_drivers_licenseAmericas
- Colombia ID Cardco_id_cardAmericas
- Mexican ID Cardmx_id_cardAmericas
- Peru ID Cardpe_id_cardAmericas
- US Driver's Licenseus_drivers_licenseAmericas
- Bangladesh ID Cardbd_id_cardAsia
- Chinese ID Cardcn_id_cardAsia
- Hong Kong ID Cardhk_id_cardAsia
- India Aadhaar Backin_aadhaar_backAsia
- India Aadhaar Frontin_aadhaar_frontAsia
Before you integrate
What happens to the images?
Uploaded files and OCR results are deleted automatically after 30 days.
What if a field is unreadable?
It comes back as null. MRZ lines are copied character for character or not at all.
What are the limits?
Free accounts get 10 requests per 60 seconds, 2 at a time. Any paid plan or credit pack removes both caps.
How is it billed?
One credit per successful call; rejected requests are free. Plan calls are used first, then prepaid credits, which never expire.
OCR API pricing
Estimate your monthly cost →Premium
Most popular$29.90/ month
10,000 API calls a month. Extra credits from $2.70 per 1,000.
Start PremiumYour first response is a few minutes away
Sign up, verify your email, copy the key into the snippet. Every call then shows up in your dashboard.