ID Card OCR API

ID Card OCR API for National Identity Cards in 25+ Countries

Turn a photo of a national ID card into structured JSON in seconds. Our ID card OCR API reads native scripts — Thai, Chinese, Arabic and more — and returns the exact fields each country prints, ready for KYC and identity verification.

  • 25+ countries
  • Native-script OCR
  • Per-country fields
  • JSON in seconds
National ID card being processed into structured JSON output

One endpoint, country-specific results

POST an image with a country-specific documentType and get clean JSON back. The documentType (e.g. th_id_card, de_id_card) tells the engine which national ID format to read — see every value in the supported-countries grid below.

Request
curl -X POST "https://pictotext.io/api/v1/ocr" \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-F "image=@id_card.jpg" \
-F "documentType=th_id_card"
JSON responseJSON
{
"documentType": "national_id_card",
"idNumber": "S1234567A",
"fullName": "ALEX MORGAN TAYLOR",
"dateOfBirth": "1990-01-01",
"sex": "M",
"address": "12 CENTRAL AVENUE, CAPITAL CITY",
"issueDate": "2020-01-01",
"expiryDate": "2030-01-01"
}

A representative national-ID response. Exact fields — and native-script values where the card uses them — follow each country’s document; open the relevant country in the grid below for its precise schema.

What the ID card OCR API returns

These data categories are returned across national ID cards. Exact field names — and any country-specific extras — follow each document, so different countries return different keys.

idNumber

The national identity number — Thai 13-digit, German document number, Chinese 18-digit, and more — returned as printed.

name (native script)

Full name in the card’s own script — Thai, Chinese or Arabic — preserved exactly as printed, not forced into Latin.

name (Latin)

Romanized or Latin name when the card prints one, so you get a Latin handle alongside the native-script original.

dateOfBirth

Normalized to ISO 8601 (YYYY-MM-DD), including conversion from local calendars such as the Thai Buddhist year.

issue & expiry dates

The validity window, normalized to ISO 8601, returned for the cards that carry issue and expiry dates.

address

The full registered address as printed on the card, in its native script.

sex / gender

Returned where the document prints it, in the document’s own wording.

country-specific fields

Religion (Thailand), ethnicity (China), height and eye color (Germany), place of birth, issuing authority and more — see each country’s reference for the full list.

Need the exact fields for one country? Open that country’s reference from the supported-countries grid below.

How the ID card OCR engine works

Three stages turn a real-world photo of a national ID into clean, structured data.

  1. Detection & preprocessing

    The engine detects the card and its country format, then deskews, de-glares and corrects rotation — built for mobile photos, not just flatbed scans.

  2. Native-script OCR

    Text is recognized in the card’s own script — Thai, Chinese, Arabic and Latin — returning the native-script value and a Latin form when the card prints one.

  3. Field structuring & normalization

    Recognized text is mapped to structured fields, and dates are normalized to ISO 8601 — including local calendars such as the Thai Buddhist year.

Where teams use ID card OCR

Anywhere a national ID has to become structured data for identity verification.

KYC onboarding

Verify a new customer’s identity at signup in fintech and banking — capture the ID, extract the fields, and match them against the application in one step.

eKYC & digital banking

Open accounts remotely. Native-script extraction means a customer in Bangkok or Berlin can onboard with their local ID, no manual data entry.

Gig & marketplace verification

Onboard drivers, couriers and sellers across markets by reading whatever national ID they hold, with per-country fields ready for your risk checks.

Public services & e-government

Digitize citizen identity intake — registrations, benefits, appointments — directly from the national ID card, in the country’s own script.

Telecom SIM registration

Meet KYC-mandated SIM activation rules common across Asia and Africa by extracting ID fields at the point of sale.

AML & cross-border compliance

Pull a consistent, structured identity record from ID cards in different countries to feed sanctions and AML screening.

ID Card OCR API — FAQ

Practical answers on coverage, fields and scripts for developers integrating the ID card OCR API.

ID Card OCR API pricing

Start free, scale as you grow

Free

$0

100 API calls on signup, plus unlimited web OCR. No card required.

Premium

Most popular

$29.90/month

10,000 API calls included. Best value for growing teams.

Enterprise

$249/month

100,000 API calls included. Lowest cost per call.

Pay-as-you-go from $3.33/1,000 calls · credits never expire

Ready to extract ID card data globally?

Start with a free trial — 100 API calls included. Run your real IDs through the ID card OCR API and see the JSON.