KYC - Nigeria
Verify National Identification Number (NIN)
Verifies Nigerian National Identity Numbers and retrieves holder information from the database, with optional facial matching and data validation capabilities.
POST
/
v2
/
api
/
identity
/
ng
/
nin
Verify National Identification Number (NIN)
curl --request POST \
--url https://api.youverify.co/v2/api/identity/ng/nin \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "11111111111",
"premiumNin": true,
"metadata": {
"requestId": "1209348756"
},
"isSubjectConsent": true,
"validations": {
"data": {
"lastName": "Citizen",
"firstName": "Proud",
"dateOfBirth": "1988-04-04"
},
"selfie": {
"image": "https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg"
}
}
}
'import requests
url = "https://api.youverify.co/v2/api/identity/ng/nin"
payload = {
"id": "11111111111",
"premiumNin": True,
"metadata": { "requestId": "1209348756" },
"isSubjectConsent": True,
"validations": {
"data": {
"lastName": "Citizen",
"firstName": "Proud",
"dateOfBirth": "1988-04-04"
},
"selfie": { "image": "https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg" }
}
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '11111111111',
premiumNin: true,
metadata: {requestId: '1209348756'},
isSubjectConsent: true,
validations: {
data: {lastName: 'Citizen', firstName: 'Proud', dateOfBirth: '1988-04-04'},
selfie: {image: 'https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg'}
}
})
};
fetch('https://api.youverify.co/v2/api/identity/ng/nin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.youverify.co/v2/api/identity/ng/nin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '11111111111',
'premiumNin' => true,
'metadata' => [
'requestId' => '1209348756'
],
'isSubjectConsent' => true,
'validations' => [
'data' => [
'lastName' => 'Citizen',
'firstName' => 'Proud',
'dateOfBirth' => '1988-04-04'
],
'selfie' => [
'image' => 'https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.youverify.co/v2/api/identity/ng/nin"
payload := strings.NewReader("{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.youverify.co/v2/api/identity/ng/nin")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/ng/nin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "success",
"data": {
"id": "6491edda239381d3be87a5fb",
"address": {
"town": "SULEJA",
"lga": "Suleja",
"state": "Niger",
"addressLine": "13B Fake Street, Ilupeju Niger State"
},
"parentId": null,
"status": "found",
"reason": null,
"dataValidation": false,
"selfieValidation": false,
"firstName": "Sarah",
"middleName": "Jane",
"lastName": "Doe",
"image": "data:image/jpg;base64,...",
"signature": "data:image/jpg;base64,...",
"mobile": "08000000000",
"email": null,
"birthState": "Edo",
"nokState": "Niger",
"religion": "christianity",
"birthLGA": "Esan West",
"birthCountry": "nigeria",
"dateOfBirth": "1988-04-04",
"isConsent": true,
"idNumber": "11111111111",
"businessId": "62c2a4868d319373a6280152",
"type": "nin",
"allValidationPassed": true,
"gender": "f",
"requestedAt": "2023-06-20T18:20:11.552Z",
"requestedById": "62c2a4868d3193700828014e",
"country": "NG",
"createdAt": "2023-06-20T18:20:11.657Z",
"lastModifiedAt": "2023-06-20T18:20:11.657Z",
"metadata": {},
"requestedBy": {
"firstName": "API",
"lastName": "User",
"middleName": "",
"id": "62c2a4868d3193700828014e"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 402,
"message": "Insufficient fund",
"name": "PaymentRequiredError",
"data": {}
}{
"success": false,
"statusCode": 403,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Service unavailable",
"name": "Error",
"data": {}
}Authorizations
Your Youverify API secret key. Never expose client-side.
Headers
API secret token
Body
application/json
Valid NIN
Must be true indicating subject consent
Whether to perform premium (high priority) call; default: false
Validation object containing data and selfie sub-objects
Custom metadata (e.g., requestId)
Response
Success
⌘I
Verify National Identification Number (NIN)
curl --request POST \
--url https://api.youverify.co/v2/api/identity/ng/nin \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "11111111111",
"premiumNin": true,
"metadata": {
"requestId": "1209348756"
},
"isSubjectConsent": true,
"validations": {
"data": {
"lastName": "Citizen",
"firstName": "Proud",
"dateOfBirth": "1988-04-04"
},
"selfie": {
"image": "https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg"
}
}
}
'import requests
url = "https://api.youverify.co/v2/api/identity/ng/nin"
payload = {
"id": "11111111111",
"premiumNin": True,
"metadata": { "requestId": "1209348756" },
"isSubjectConsent": True,
"validations": {
"data": {
"lastName": "Citizen",
"firstName": "Proud",
"dateOfBirth": "1988-04-04"
},
"selfie": { "image": "https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg" }
}
}
headers = {
"token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '11111111111',
premiumNin: true,
metadata: {requestId: '1209348756'},
isSubjectConsent: true,
validations: {
data: {lastName: 'Citizen', firstName: 'Proud', dateOfBirth: '1988-04-04'},
selfie: {image: 'https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg'}
}
})
};
fetch('https://api.youverify.co/v2/api/identity/ng/nin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.youverify.co/v2/api/identity/ng/nin",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '11111111111',
'premiumNin' => true,
'metadata' => [
'requestId' => '1209348756'
],
'isSubjectConsent' => true,
'validations' => [
'data' => [
'lastName' => 'Citizen',
'firstName' => 'Proud',
'dateOfBirth' => '1988-04-04'
],
'selfie' => [
'image' => 'https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.youverify.co/v2/api/identity/ng/nin"
payload := strings.NewReader("{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.youverify.co/v2/api/identity/ng/nin")
.header("token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/ng/nin")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"11111111111\",\n \"premiumNin\": true,\n \"metadata\": {\n \"requestId\": \"1209348756\"\n },\n \"isSubjectConsent\": true,\n \"validations\": {\n \"data\": {\n \"lastName\": \"Citizen\",\n \"firstName\": \"Proud\",\n \"dateOfBirth\": \"1988-04-04\"\n },\n \"selfie\": {\n \"image\": \"https://cdn.youverify.co/1655466566309-lLSfNTlhElMTtbXW-QE-q.jpg\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "success",
"data": {
"id": "6491edda239381d3be87a5fb",
"address": {
"town": "SULEJA",
"lga": "Suleja",
"state": "Niger",
"addressLine": "13B Fake Street, Ilupeju Niger State"
},
"parentId": null,
"status": "found",
"reason": null,
"dataValidation": false,
"selfieValidation": false,
"firstName": "Sarah",
"middleName": "Jane",
"lastName": "Doe",
"image": "data:image/jpg;base64,...",
"signature": "data:image/jpg;base64,...",
"mobile": "08000000000",
"email": null,
"birthState": "Edo",
"nokState": "Niger",
"religion": "christianity",
"birthLGA": "Esan West",
"birthCountry": "nigeria",
"dateOfBirth": "1988-04-04",
"isConsent": true,
"idNumber": "11111111111",
"businessId": "62c2a4868d319373a6280152",
"type": "nin",
"allValidationPassed": true,
"gender": "f",
"requestedAt": "2023-06-20T18:20:11.552Z",
"requestedById": "62c2a4868d3193700828014e",
"country": "NG",
"createdAt": "2023-06-20T18:20:11.657Z",
"lastModifiedAt": "2023-06-20T18:20:11.657Z",
"metadata": {},
"requestedBy": {
"firstName": "API",
"lastName": "User",
"middleName": "",
"id": "62c2a4868d3193700828014e"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 402,
"message": "Insufficient fund",
"name": "PaymentRequiredError",
"data": {}
}{
"success": false,
"statusCode": 403,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Service unavailable",
"name": "Error",
"data": {}
}