Nigeria ๐Ÿ‡ณ๐Ÿ‡ฌ

Verify if a Nigerian ID document is legit through OCR

How It Works

The endpoint is constructed as follows.

https://api.appruve.co/v1/ocr_jobs/ng/{id_type}

id_type should be replaced with the specific ID type. Supported ID types are passport, voter, driver_license, and national_id

The request is a multipart POST request as shown in the example below. The id_image parameter is required and the value could be a File Object or a web URL.

curl --location --request POST 'https://api.appruve.co/v1/ocr_jobs/ng/driver_license' \
--header 'Authorization: Bearer TOKEN' \
--form 'id_image=@"/path/ng_driver_license_1.jpg"'

An example response is given below.

{
    "id_details": {
        "front_id": {
            "id_number": "12345678",
            "first_name": "John",
            "middle_name": "",
            "last_name": "Doe",
            "date_of_birth": "1993-05-02",
            "gender": "M",
            "issue_date": "2020-03-11",
            "expiry_date": "2025-05-02",
        },
        "back_id": null
    },
    "front_id_submitted": "URL",
    "back_id_submitted": null,
    "front_id_face_photo": "URL",
    "document_analyses": [
        {
            "type": "TEMPLATE_MATCHING",
            "is_check_successful": true,
            "data": null
        }
    ],
    "id_confidence_score": 100
}

Last updated