Skip to main content

NIN Verification API

API Description

Objective

The NIN Verification API, or the VNIN verification API, retrieves a user's personally identifiable information(PII) based on their Nigerian national identification number(NIN).

InputOutput
The user's NIN.
  • Name
  • National Identification Number (NIN)
  • Birth date and location
  • Educational Level
  • Email
  • Employment status
  • Gender and height
  • Marital status
  • Next of Kin's Name and Address
  • Language details
  • Photo
  • Profession
  • Religion
  • Residence address
  • Signature
  • Telephone Number
  • Title
  • Central ID
  • Tracking ID
Did you know?

The National Identification Number (NIN) consists of 11 non-intelligible numbers assigned to an individual at the completion of enrolment into the National Identity Database (NIDB) that is maintained by the National Identity Management Commission(NIMC).

API URL

https://zaf.thomas.hyperverge.co/v1/ninFetch

Overview

The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

API Request Details

Method - POST

Headers

ParameterMandatory or OptionalDescriptionAllowed Values
content-typeMandatoryThis parameter defines the media type for the request payload.application/json
appIdMandatoryThe application identifier shared by HyperVerge.This should be a unique value.
appKeyMandatoryThe application key shared by HyperVerge.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journey.This should be both unique and easily associated with the specific user's interaction in your application(s).

Input

The following table provides the complete information on the parameters used in the request body for the API calls.

ParameterMandatory or OptionalAllowed ValuesDefault ValueDescription
ninMandatory It should have eleven digitsNot ApplicableThe user's NIN.

Sample Request

The following section shows the standard curl request for the API.

curl --location --request POST 'https://zaf.thomas.hyperverge.co/v1/ninFetch' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"nin": "<Enter_the_NIN>"
}'

Success Response Sample

The following is a sample response from the API.

{
"result": {
"status": "successful",
"message": "Lookup Successful",
"data": {
"birthcountry": "nigeria",
"birthdate": "07-11-1992",
"birthlga": "Mushin",
"birthstate": "Lagos",
"educationallevel": "tertiary",
"email": "<email_placeholder>",
"emplymentstatus": "employed",
"firstname": "OLUWAFUNMIBI",
"gender": "m",
"heigth": "169",
"maritalstatus": "single",
"middlename": "LAWRENCE",
"nin": "<nin_placeholder>",
"nok_address1": "216 BASTABLE AVENUE BARKING",
"nok_address2": "",
"nok_firstname": "OMOTOWOBOLA",
"nok_middlename": "AGATAR",
"nok_surname": "YEDENU-MARTINS",
"nok_town": "LONDON",
"nspokenlang": "YORUBA",
"ospokenlang": "FRENCH",
"othername": "SULAIMON",
"photo": "<photo_url_placeholder>",
"profession": "MASS COMMUNICATION",
"religion": "christianity",
"residence_AdressLine1": "3 ODOFIN CLOSE",
"residence_Town": "ILASAMAJA",
"residence_lga": "Mushin",
"residence_state": "Lagos",
"residencestatus": "birth",
"self_origin_lga": "Yewa North",
"self_origin_place": "YEWA",
"self_origin_state": "Ogun",
"signature": "<signature_url_placeholder>",
"surname": "OSAYEMI",
"telephoneno": "<phone_number_placeholder>",
"title": "mr",
"central_iD": "<central_id_placeholder>",
"tracking_id": "<tracking_id_placeholder>"
}
},
"status": "success",
"statusCode": 200,
"metaData": {
"requestId": "<request_id_placeholder>"
}
}

Success Response Details

The following table provides the details of the fields in a success response.

ResponseDescription
birthcountryThe user's country of birth.
birthdateThe date on which the individual was born.
birthlgaLocal Government Area (LGA) of the individual's birth.
birthstateThe state in Nigeria where the individual was born.
educationallevelThe highest level of education attained by the individual.
emailThe email address associated with the individual's identity.
employmentstatusThe current employment status of the individual (e.g., employed, unemployed, student).
firstnameThe first name of the individual.
middlenameThe middle name of the individual.
genderThe gender of the individual (e.g., male or female).
heightThe height of the individual.
maritalstatusThe marital status of the individual (e.g., married, single, divorced).
ninThe National Identification Number, a unique identification number assigned to individuals.
nok_address1Address details of the next of kin (NOK) - line 1.
nok_address2Address details of the next of kin (NOK) - line 2.
nok_firstnameFirst name of the next of kin.
nok_middlenameMiddle name of the next of kin.
nok_surnameSurname of the next of kin.
nok_lgaLocal Government Area (LGA) of the next of kin.
nok_postalcodePostal code of the next of kin.
nok_stateState of residence of the next of kin.
nok_townTown of residence of the next of kin.
ospokenlangOfficial spoken language(s) of the individual.
photoA photograph of the individual.
professionThe individual's profession or occupation.
religionThe religion to which the individual adheres.
residence_addressThe current residential address of the individual.
residence_lgaLocal Government Area (LGA) of the individual's residence.
residence_stateThe state in Nigeria where the individual currently resides.
residence_townThe town or city where the individual currently resides.
self_origin_lgaLocal Government Area (LGA) of the individual's origin.
self_origin_placePlace of origin of the individual.
self_origin_stateState of origin of the individual.
signatureThe individual's signature.
telephonenoThe telephone number of the individual.
titleThe title or honorific of the individual (e.g., Mr., Mrs., Dr.).
vninVirtual National Identification Number.
central_iDCentral Identification (ID) associated with the individual.
tracking_idA unique identifier used for tracking purposes.

Failure Response Sample

The following is a sample response for no matching records found against the NIN input.

{
"result": {
"status": "failed",
"message": "Sorry, lookup failed. Please check the details and try again"
},
"status": "failure",
"statusCode": 400,
"metaData": {
"requestId": "1702388746563-62ed2d28-ff89-41fe-b27b-ff7c1be197e2"
}
}

Error Response Samples

The following is the sample error response from the API.

{
"message": "Input Validation Error: does not meet minimum length of 11",
"statusCode": 400,
"status": "failure"
}

Failure and Error Response Details

A failure or error response from the API contains a failure status with a relevant status code and error message.


The following table summarizes all the error and failure responses.

Status CodeError MessageError Description
400Input Validation Error: does not meet minimum length of 11Please check the length of the NIN in the request.
400Sorry, lookup failed. Please check the details and try againThe request has an invalid NIN that yielded no match in the database.
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: