Send a photo of a German passport and get structured data back in the same HTTP
response – the machine-readable zone parsed, the ICAO 9303 check digits verified and the
visual fields extracted. No SDK to install, no queue to poll.
A Germany passport follows the ICAO 9303 standard: a two-line, 44-character
machine-readable zone (format TD3) printed at the foot of the data page,
below the human-readable visual inspection zone. Its first five characters are P<D<< – the document code, then the issuing stateas D, a code ICAO 9303 keeps for Germany instead of its ISO
3166-1 alpha-3 code DEU. The API reads both zones,
cross-checks the MRZ check digits, and returns one response shape with every key present.
Germany is DE in an alpha-2 list and DEU in ISO 3166-1 alpha-3, and its zone prints neither: ICAO Doc 9303 gives it the code D, filled out with < to three characters (D<<). A parser that maps zone codes to countries through the ISO table alone will not find Germany.
9303 defines three zone layouts, and the API reads all three. Below is one invented holder
– she is nobody, and paradeigma is the Greek word for example – in each
layout, with D as the issuing state. Every check digit is
computed from the characters beside it rather than typed in, so each zone here validates.
TD3 – Germany passport
2 lines of 44. Nationality D. Issuing state and nationality are both D: a passport certifies the nationality of the state that issued it.
TD1 – Identity card or residence permit issued by Germany
3 lines of 30. Nationality GRC. Three lines of 30, with the name on a line of its own. The document code is ID – 9303 part 5 fixes the first character as A, C or I and leaves the second to the issuing state.
No check digit covers the issuing state: on all three layouts the arithmetic runs over the
document number, the dates and the optional data, never over the three characters that say
who issued the document. A zone whose digits all pass has not proved it came from
Germany – the visual zone and the document's own security features do that.
Paste an MRZ into the MRZ parser to validate its check digits, or build one with the MRZ generator.
Fields you get back
Every recognised German passport returns the same structured fields. A value
that could not be read is null, never a missing key.
Run this against the public sandbox – no registration, real recognition, free for a
limited number of documents and 10 requests per hour per IP. Swap the sandbox key for
your own live key to keep recognising German passports.
The zone is Latin transliteration; the visual zone is not. Which reading carries the original script, and how a language identifier resolves to a language.