A comprehensive identity verification suite providing high-performance tools for document validation and data extraction. MRZ Parser: Fully compliant with ICAO standards (TD1, TD2, TD3, MRVA, MRVB) to extract identity info, document types, and all data from Machine Readable Zones. Document Number Validation: Checksum and format verification for Polish ID cards, Passports, Driving Licenses, and more (9-character alphanumeric support). Polish Identity Validators: Dedicated endpoints for local identifiers: PESEL: National ID number validation. NIP: Tax Identification Number (handles formatted and raw input). REGON: Business registry numbers (supports both 9 and 14-digit formats).
{"isValid":false,"mrzType":"TD1","documentType":"I","documentSubType":"","documentDescription":"Identity Card / Residence Permit","documentNumber":"59000002","issuerCountry":"Sweden","issuerCode":"SWE","nationality":"Sweden","nationalityCode":"SWE","firstName":"SVEN","secondName":"","surname":"SPECIMEN","givenNames":"SVEN","birthDate":"1987-03-14","expiryDate":"2017-01-02","gender":"M","validation":{"isAllValid":false,"isCompositeValid":false,"areFieldsValid":true,"errorMessage":"Invalid Composite (overall) check digit.","readDocumentNumberDigit":"8","readBirthDateDigit":"5","readExpiryDateDigit":"7","readCompositeDigit":"8","calculatedDocumentNumberDigit":8,"calculatedBirthDateDigit":5,"calculatedExpiryDateDigit":7,"calculatedCompositeDigit":2}}
curl --location --request POST 'https://zylalabs.com/api/11642/check++mrz+and+document+number+api/21985/machine+readable+zone' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"rawMrzText": "I
[{"isValid":true,"mrzType":"TD3","documentType":"P","documentSubType":"","documentDescription":"Passport","documentNumber":"L898902C","issuerCountry":"UTO","issuerCode":"UTO","nationality":"UTO","nationalityCode":"UTO","firstName":"ANNA","secondName":"MARIA","surname":"ERIKSSON","givenNames":"ANNA MARIA","birthDate":"1969-08-06","expiryDate":"1994-06-23","gender":"F","validation":{"isAllValid":true,"isCompositeValid":true,"areFieldsValid":true,"errorMessage":null,"readDocumentNumberDigit":"3","readBirthDateDigit":"1","readExpiryDateDigit":"6","readCompositeDigit":"4","calculatedDocumentNumberDigit":3,"calculatedBirthDateDigit":1,"calculatedExpiryDateDigit":6,"calculatedCompositeDigit":4}},{"isValid":true,"mrzType":"TD1","documentType":"I","documentSubType":"","documentDescription":"Identity Card / Residence Permit","documentNumber":"D23145890","issuerCountry":"UTO","issuerCode":"UTO","nationality":"UTO","nationalityCode":"UTO","firstName":"ANNA","secondName":"MARIA","surname":"ERIKSSON","givenNames":"ANNA MARIA","birthDate":"1974-08-12","expiryDate":"2012-04-15","gender":"F","validation":{"isAllValid":true,"isCompositeValid":true,"areFieldsValid":true,"errorMessage":null,"readDocumentNumberDigit":"7","readBirthDateDigit":"2","readExpiryDateDigit":"9","readCompositeDigit":"6","calculatedDocumentNumberDigit":7,"calculatedBirthDateDigit":2,"calculatedExpiryDateDigit":9,"calculatedCompositeDigit":6}},{"isValid":true,"mrzType":"TD3","documentType":"P","documentSubType":"","documentDescription":"Passport","documentNumber":"L898902C3","issuerCountry":"UTO","issuerCode":"UTO","nationality":"UTO","nationalityCode":"UTO","firstName":"ANNA","secondName":"MARIA","surname":"ERIKSSON","givenNames":"ANNA MARIA","birthDate":"1974-08-12","expiryDate":"2012-04-15","gender":"F","validation":{"isAllValid":true,"isCompositeValid":true,"areFieldsValid":true,"errorMessage":null,"readDocumentNumberDigit":"6","readBirthDateDigit":"2","readExpiryDateDigit":"9","readCompositeDigit":"0","calculatedDocumentNumberDigit":6,"calculatedBirthDateDigit":2,"calculatedExpiryDateDigit":9,"calculatedCompositeDigit":0}},{"isValid":true,"mrzType":"TD1","documentType":"I","documentSubType":"D","documentDescription":"Identity Card / Residence Permit","documentNumber":"ID9875401","issuerCountry":"Liechtenstein","issuerCode":"LIE","nationality":"Liechtenstein","nationalityCode":"LIE","firstName":"MARISA","secondName":"","surname":"OSPELT BECK","givenNames":"MARISA","birthDate":"1982-05-12","expiryDate":"2019-06-22","gender":"M","validation":{"isAllValid":true,"isCompositeValid":true,"areFieldsValid":true,"errorMessage":null,"readDocumentNumberDigit":"5","readBirthDateDigit":"2","readExpiryDateDigit":"4","readCompositeDigit":"6","calculatedDocumentNumberDigit":5,"calculatedBirthDateDigit":2,"calculatedExpiryDateDigit":4,"calculatedCompositeDigit":6}}]
curl --location --request POST 'https://zylalabs.com/api/11642/check++mrz+and+document+number+api/21986/machine+readable+zone+multiple' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '[
{
"rawMrzText": null,
"mrzLines": [
"P
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Check MRZ And Document Number API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
Each endpoint returns detailed identity information extracted from Machine Readable Zones (MRZ) of documents. This includes document type, issuer country, personal details (name, birth date, gender), and validation results indicating the accuracy of the data.
Key fields in the response include `isValid`, `mrzType`, `documentType`, `documentNumber`, `issuerCountry`, `firstName`, `surname`, `birthDate`, `expiryDate`, and `validation` details, which provide insights into the validity of the document.
The endpoints provide information on document types (passports, ID cards), personal identification details (name, birth date), and validation results (checksum and format checks) for various documents, including Polish IDs and passports.
The response data is structured in JSON format, with each document's details encapsulated in an object. For multiple documents, an array of objects is returned, allowing easy access to individual document validations and extracted data.
The data is sourced from standardized Machine Readable Zones (MRZ) as defined by ICAO standards. This ensures high accuracy and compliance with international document verification protocols.
Typical use cases include identity verification for travel, onboarding processes in financial services, and compliance checks in various sectors where document authenticity is critical.
Users can customize requests by providing either raw MRZ text or an array of MRZ lines. This flexibility allows for different input formats based on user needs, enhancing the API's usability.
If the API returns partial or empty results, users should check the `isValid` field for validation status. The `errorMessage` in the validation object can provide insights into specific issues, guiding users on necessary corrections.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund