Main API Docs
Searchโ€ฆ
Ghana ๐Ÿ‡ฌ๐Ÿ‡ญ
Extract PII data from Ghanaian ID documents

How It Works

Appruve's OCR API allows you to extract the Personally identifiable information from a Ghana ID document including the ID face photo. The endpoint is constructed as follows.
1
https://api.appruve.co/v1/verifications/selfie_image/ocr/gh/{id_type}
Copied!
id_type should be replaced with the specific ID type. Supported ID types are passport, voter, driver_license, and ssnit.
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/gh/driver_license' \
2
--header 'Authorization: Bearer TOKEN' \
3
--form '[email protected]"/path/gh_driver_license_1.jpg"'
Copied!
An example response is given below.
1
{
2
"id_details": {
3
"full_name": "John Doe",
4
"date_of_birth": "1900-02-25",
5
"date_of_issue": "2018-11-11",
6
"date_of_expiry": "2024-11-10",
7
"certificate_date": "",
8
"certificate_of_competence": "12345678",
9
"class_of_licence": "B",
10
"id_photo": "Signed URL of the extracted id face photo"
11
},
12
"transaction_reference": "91cb3447-9437-409e-a62b-c7f5a2492d6e",
13
"face_sharpness": 92,
14
"face_brightness": 92,
15
"is_reenrollment": true
16
}
Copied!
The returned transaction_reference value should be used for the Upload Selfie endpoint.
Copy link