South Star

MRZ Parser ICAO Doc 9303 TD1 TD2 TD3 KYC Verification API

Free tier included · Data
Parse and verify ICAO Doc 9303 MRZ text: TD1, TD2, TD3, visas (MRV-A/B). Age, expiry, per-field and composite check-digits, batch up to 100.

MRZ Parser API extracts, parses, and validates ICAO Doc 9303 machine-readable zones (MRZ) from text input across all major document formats: ID cards (TD1 3x30), passports and visas (TD3/MRV-A 2x44), and passports/visas (TD2/MRV-B 2x36). Beyond basic parsing, newly added endpoints (`/parse/full`, `/verify`, `/batch`, `/check-digit/batch`) provide complete KYC readiness: derived age, adult status, expiration flags, days until expiry, comprehensive checksum summaries, and warnings.

The API runs entirely in-memory with standard libraries, making no external network calls and logging nothing—ensuring total privacy for sensitive identity documents. Date century rules automatically resolve dates (DOB to the nearest past year, expiry to the closest year to today), and composite check digits are verified against published ICAO specimens. TD1 and TD2 document numbers longer than 9 characters (`<` in check position) are automatically joined and checked as a single entity.

Honest limits: Input must be raw text (no built-in OCR). Visas (MRV-A/B) do not use composite check digits (`composite_check` returns null). Batch endpoints accept up to 100 items per request, and individual check-digit strings are capped at 80 characters.

Endpoints

MethodPathWhat it does
GET/API root metadata and endpoints overview.
GET/healthLiveness probe checking process health.
POST/parseParse ICAO Doc 9303 machine-readable zones from text lines into structured identity fields with check-digit validation.
POST/check-digitCompute the ICAO 9303 7-3-1 weighted check digit for a single MRZ substring.
POST/parse/fullMRZ parse with derived age, expiry status, checksum summary and warnings.
POST/verifyKYC check of an MRZ: validity, expiration status, age, adult status, and minimum age validation.
POST/batchParse and verify up to 100 MRZ documents in a single request.
POST/check-digit/batchCompute up to 100 ICAO 9303 check digits in a single request.

Quick start

curl -X POST "https://mrz.p.rapidapi.com/parse" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: mrz.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"lines": ["P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<", "L898902C36UTO7408122F1204159ZE184226B<<<<<10"]}'

FAQ

Does this API perform OCR on uploaded document images?

No. The API expects raw text strings representing the machine-readable zone lines. You should pair this with an OCR text extraction tool of your choice.

How are century dates handled for date of birth and expiry?

Date of birth resolves to the nearest past year (19xx vs 20xx), while expiration date resolves to the candidate century closest to today.

Can I process multiple documents in a single HTTP request?

Yes. Use the `/batch` endpoint to process up to 100 document line sets at once, or `/check-digit/batch` for bulk check-digit calculations. Malformed rows return individual error statuses without failing the entire batch.

Are my document data payloads logged or stored?

No. Processing is entirely stateless and offline in-memory. No logs, databases, or third-party tracking are used.

Try MRZ Parser ICAO Doc 9303 TD1 TD2 TD3 KYC Verification free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs