Main API Docs
Searchโ€ฆ
Nigeria ๐Ÿ‡ณ๐Ÿ‡ฌ
Extract PII data from Nigerian ID documents

How It Works

Appruve's OCR API allows you to extract the Personally identifiable information from a Nigeria ID document including the ID face photo. The endpoint is constructed as follows.
1
https://api.appruve.co/v1/verifications/selfie_image/ocr/ng/{id_type}
Copied!
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.
1
curl --location --request POST 'https://api.appruve.co/v1/verifications/selfie_image/ocr/ng/driver_license' \
2
--header 'Authorization: Bearer TOKEN' \
3
--form '[email protected]"/path/ng_driver_license_1.jpg"'
Copied!
An example response is given below.
1
{
2
"id_details": {
3
"id_number": "12345678",
4
"first_name": "John",
5
"middle_name": "Doe",
6
"date_of_birth": "2017-07-21",
7
"gender": "M",
8
"id_photo": "Signed URL of the extracted id face photo"
9
},
10
"transaction_reference": "faf2b8d7-0699-4102-8ee8-c83150a7cadd",
11
"face_sharpness": 38.9,
12
"face_brightness": 65.23
13
}
Copied!
The returned transaction_reference value should be used for the Upload Selfie endpoint.
Copy link