curl -X POST "https://verification.didit.me/v3/database-validation/" \
-H "x-api-key: YOUR_API_KEY" \
-F "issuing_state=NGA" \
-F "services=nga_national_id_facial" \
-F "vendor_data=user-1234" \
-F "national_id=11111111111" \
-F "selfie=@./selfie.jpg"
from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.database_validation.validate(
issuing_state="NGA",
services=["nga_national_id_facial"],
national_id="11111111111",
vendor_data="user-1234",
selfie=open("selfie.jpg", "rb"),
)
print(result)
import Didit, { fileFromPath } from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.databaseValidation.validate({
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: await fileFromPath("selfie.jpg"),
});
console.log(result);
ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.DatabaseValidation.Validate(ctx, didit.DatabaseValidationValidateParams{
IssuingState: "NGA",
Services: didit.Some([]string{"nga_national_id_facial"}),
NationalID: didit.String("11111111111"),
VendorData: didit.String("user-1234"),
Selfie: didit.Some(didit.FileFromPath("selfie.jpg")),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)
import java.nio.file.Path;
import java.util.List;
import me.didit.Didit;
import me.didit.types.DatabaseValidationValidateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.databaseValidation().validate(DatabaseValidationValidateParams.builder()
.issuingState("NGA")
.services(List.of("nga_national_id_facial"))
.nationalId("11111111111")
.vendorData("user-1234")
.selfie(Path.of("selfie.jpg"))
.build());
System.out.println(result);
<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
use Didit\File;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->databaseValidation->validate([
'issuing_state' => 'NGA',
'services' => ['nga_national_id_facial'],
'national_id' => '11111111111',
'vendor_data' => 'user-1234',
'selfie' => File::fromPath('selfie.jpg'),
]);
print_r($result->toArray());
require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.database_validation.validate(
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: Pathname("selfie.jpg")
)
puts result.to_h
using System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.DatabaseValidation.ValidateAsync(new DatabaseValidationValidateParams
{
IssuingState = "NGA",
Services = new string[] { "nga_national_id_facial" },
NationalId = "11111111111",
VendorData = "user-1234",
Selfie = FileUpload.FromPath("selfie.jpg"),
});
Console.WriteLine(JsonSerializer.Serialize(result));
{
"request_id": "req_01H…",
"status": "Approved",
"issuing_state": "NGA",
"match_type": "full_match",
"validations": [
{
"outcome_code": "MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-01-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "full_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": "partial_match",
"validations": [
{
"outcome_code": "PARTIAL_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-02-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "no_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "BIOMETRIC_NO_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"face_match_score": 12.5,
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": null,
"validations": [
{
"outcome_code": "INCONCLUSIVE",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {},
"validation": {}
}
]
}
{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "DOCUMENT_NOT_FOUND",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
🇳🇬 Nigeria
Nigeria National ID + Selfie (NIMC) Verification API
Nigeria National ID + Selfie (NIMC): authoritative Nigeria database lookup via Didit. Pay-per-call from $0.35, no contracts, no minimums.
POST
/
v3
/
database-validation
/
curl -X POST "https://verification.didit.me/v3/database-validation/" \
-H "x-api-key: YOUR_API_KEY" \
-F "issuing_state=NGA" \
-F "services=nga_national_id_facial" \
-F "vendor_data=user-1234" \
-F "national_id=11111111111" \
-F "selfie=@./selfie.jpg"
from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.database_validation.validate(
issuing_state="NGA",
services=["nga_national_id_facial"],
national_id="11111111111",
vendor_data="user-1234",
selfie=open("selfie.jpg", "rb"),
)
print(result)
import Didit, { fileFromPath } from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.databaseValidation.validate({
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: await fileFromPath("selfie.jpg"),
});
console.log(result);
ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.DatabaseValidation.Validate(ctx, didit.DatabaseValidationValidateParams{
IssuingState: "NGA",
Services: didit.Some([]string{"nga_national_id_facial"}),
NationalID: didit.String("11111111111"),
VendorData: didit.String("user-1234"),
Selfie: didit.Some(didit.FileFromPath("selfie.jpg")),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)
import java.nio.file.Path;
import java.util.List;
import me.didit.Didit;
import me.didit.types.DatabaseValidationValidateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.databaseValidation().validate(DatabaseValidationValidateParams.builder()
.issuingState("NGA")
.services(List.of("nga_national_id_facial"))
.nationalId("11111111111")
.vendorData("user-1234")
.selfie(Path.of("selfie.jpg"))
.build());
System.out.println(result);
<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
use Didit\File;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->databaseValidation->validate([
'issuing_state' => 'NGA',
'services' => ['nga_national_id_facial'],
'national_id' => '11111111111',
'vendor_data' => 'user-1234',
'selfie' => File::fromPath('selfie.jpg'),
]);
print_r($result->toArray());
require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.database_validation.validate(
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: Pathname("selfie.jpg")
)
puts result.to_h
using System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.DatabaseValidation.ValidateAsync(new DatabaseValidationValidateParams
{
IssuingState = "NGA",
Services = new string[] { "nga_national_id_facial" },
NationalId = "11111111111",
VendorData = "user-1234",
Selfie = FileUpload.FromPath("selfie.jpg"),
});
Console.WriteLine(JsonSerializer.Serialize(result));
{
"request_id": "req_01H…",
"status": "Approved",
"issuing_state": "NGA",
"match_type": "full_match",
"validations": [
{
"outcome_code": "MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-01-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "full_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": "partial_match",
"validations": [
{
"outcome_code": "PARTIAL_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-02-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "no_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "BIOMETRIC_NO_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"face_match_score": 12.5,
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": null,
"validations": [
{
"outcome_code": "INCONCLUSIVE",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {},
"validation": {}
}
]
}
{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "DOCUMENT_NOT_FOUND",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
Verifies a Nigerian National Identification Number (NIN) against the National Identity Management Commission register. Requires a selfie: the enrolment portrait held against the NIN is face-matched with it, and the record is only returned when the two are the same person. Didit exposes this service through
POST /v3/database-validation/ so you can verify the submitted data against the authoritative source and receive normalized match results.
Coverage
- Coverage: ~ 100%
- Country: Nigeria
- Service ID:
nga_national_id_facial - Data domain: Identity
- Category: NationalIDRegistry
Inputs
| Field | Required | Example |
|---|---|---|
national_id | Yes | 11111111111 |
selfie | Yes | @./selfie.jpg |
first_name | No | John |
last_name | No | Doe |
date_of_birth | No | 1990-01-01 |
vendor_data | No | user-1234 |
- Required inputs:
national_id,selfie - Optional inputs:
first_name,last_name,date_of_birth,vendor_data - Consent: Not required
- Workflow availability: Available in workflow
- Coverage: ~ 100%
- Price: $0.35 per successful query
Body parameters
Array containing this service ID. Pinning the service keeps the request scoped to this exact database.Example:
nga_national_id_facialSelfie image file to upload for biometric database validation. Accepted formats: JPEG, PNG, or WebP.Example:
@./selfie.jpgYour stable user reference for this person, such as your internal user ID. Didit uses it to link standalone checks to the same end user and reduce duplicate-detection noise.Example:
user-1234Input rules & validation notes
first_namemust match[A-Za-zÀ-ÖØ-öø-ÿ .'-]+.national_idmust contain digits only; remove spaces, hyphens, and punctuation before sending the request.national_idmust be exactly 11 characters long.
How to call it
curl -X POST "https://verification.didit.me/v3/database-validation/" \
-H "x-api-key: YOUR_API_KEY" \
-F "issuing_state=NGA" \
-F "services=nga_national_id_facial" \
-F "vendor_data=user-1234" \
-F "national_id=11111111111" \
-F "selfie=@./selfie.jpg"
from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.database_validation.validate(
issuing_state="NGA",
services=["nga_national_id_facial"],
national_id="11111111111",
vendor_data="user-1234",
selfie=open("selfie.jpg", "rb"),
)
print(result)
import Didit, { fileFromPath } from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.databaseValidation.validate({
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: await fileFromPath("selfie.jpg"),
});
console.log(result);
ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.DatabaseValidation.Validate(ctx, didit.DatabaseValidationValidateParams{
IssuingState: "NGA",
Services: didit.Some([]string{"nga_national_id_facial"}),
NationalID: didit.String("11111111111"),
VendorData: didit.String("user-1234"),
Selfie: didit.Some(didit.FileFromPath("selfie.jpg")),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)
import java.nio.file.Path;
import java.util.List;
import me.didit.Didit;
import me.didit.types.DatabaseValidationValidateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.databaseValidation().validate(DatabaseValidationValidateParams.builder()
.issuingState("NGA")
.services(List.of("nga_national_id_facial"))
.nationalId("11111111111")
.vendorData("user-1234")
.selfie(Path.of("selfie.jpg"))
.build());
System.out.println(result);
<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
use Didit\File;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->databaseValidation->validate([
'issuing_state' => 'NGA',
'services' => ['nga_national_id_facial'],
'national_id' => '11111111111',
'vendor_data' => 'user-1234',
'selfie' => File::fromPath('selfie.jpg'),
]);
print_r($result->toArray());
require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.database_validation.validate(
issuing_state: "NGA",
services: ["nga_national_id_facial"],
national_id: "11111111111",
vendor_data: "user-1234",
selfie: Pathname("selfie.jpg")
)
puts result.to_h
using System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.DatabaseValidation.ValidateAsync(new DatabaseValidationValidateParams
{
IssuingState = "NGA",
Services = new string[] { "nga_national_id_facial" },
NationalId = "11111111111",
VendorData = "user-1234",
Selfie = FileUpload.FromPath("selfie.jpg"),
});
Console.WriteLine(JsonSerializer.Serialize(result));
Every successful call returns HTTP 200. The outcome_code field tells you what actually happened — distinguishing, for example, a real biometric mismatch (BIOMETRIC_NO_MATCH) from a selfie that could not be read (BIOMETRIC_IMAGE_UNUSABLE). The status shown is the default feature status; your configured Partial Match / No Match actions can override it.MATCH — The registry confirmed the identity and every checked field matched.{
"request_id": "req_01H…",
"status": "Approved",
"issuing_state": "NGA",
"match_type": "full_match",
"validations": [
{
"outcome_code": "MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-01-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "full_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
PARTIAL_MATCH — The selfie matched the registered photo and the NIN is on record, but a name or date of birth you sent differs from the NIMC record. The record is returned so you can see which field differs.{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": "partial_match",
"validations": [
{
"outcome_code": "PARTIAL_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"address": "1 SAMPLE STREET",
"birth_country": "nigeria",
"birth_lga": "Ikeja",
"birth_state": "Lagos",
"date_of_birth": "1990-02-01",
"face_match_score": 92.4,
"first_name": "JOHN",
"gender": "Male",
"identification_number": "11111111111",
"last_name": "DOE",
"marital_status": "single",
"middle_name": "SAMUEL",
"phone_number": "08000000000",
"photo_available": true,
"residence_lga": "Ikeja",
"residence_state": "Lagos",
"residence_town": "IKEJA"
},
"validation": {
"date_of_birth": "no_match",
"full_name": "full_match",
"identification_number": "full_match"
}
}
]
}
BIOMETRIC_NO_MATCH — The NIN is on record, but the selfie is not the same person as the NIMC enrolment photo (face-match score below the acceptance threshold). Nothing from the record is returned - only the score.{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "BIOMETRIC_NO_MATCH",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"face_match_score": 12.5,
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
INCONCLUSIVE — The NIN is on record, but the face match could not be made - no enrolment photo on file, or no face detected. Nothing from the record is returned, match_type is null and the check is sent to review.{
"request_id": "req_01H…",
"status": "In Review",
"issuing_state": "NGA",
"match_type": null,
"validations": [
{
"outcome_code": "INCONCLUSIVE",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {},
"validation": {}
}
]
}
DOCUMENT_NOT_FOUND — The NIN is well formed but the NIMC register holds no record for it. The lookup is charged.{
"request_id": "req_01H…",
"status": "Declined",
"issuing_state": "NGA",
"match_type": "no_match",
"validations": [
{
"outcome_code": "DOCUMENT_NOT_FOUND",
"service_id": "nga_national_id_facial",
"service_name": "Nigeria National ID + Selfie (NIMC)",
"source_data": {
"identification_number": "NO_MATCH"
},
"validation": {
"identification_number": "no_match"
}
}
]
}
Returned data
The exact fields surfaced insource_data depend on what the registry returns. The generated example for nga_national_id_facial currently documents this normalized shape:
addressbirth_countrybirth_lgabirth_statedate_of_birthface_match_scorefirst_namegenderidentification_numberlast_namemarital_statusmiddle_namephone_numberphoto_availableresidence_lgaresidence_stateresidence_town
Pricing & SLAs
Nigeria National ID + Selfie (NIMC) queries are billed only when Didit receives a conclusive result from the validation source.- Per-call price: $0.35 USD.
- Billing: per successful query. You are not charged when the registry is unreachable, when required fields are missing, or when the request is rejected before reaching the source.
- Latency: typical p95 < 2 s.
- Availability: 99.9% per quarter on Didit’s side; downstream source availability varies by country and dataset.
Selfie and face match
The NIMC register answers a valid NIN with the holder’s full record, so knowing a number is not proof of being its owner. Every lookup is therefore tied to a selfie: it is face-matched against the enrolment photo NIMC holds for that NIN, and the record is returned only when both are the same person.- Match:
source_datacarries the NIMC record andface_match_score. Names and date of birth you send are compared against it and reported invalidation; send them to get a name and date-of-birth verdict, or omit them and read the registry’s values fromsource_data. - Different person:
BIOMETRIC_NO_MATCH. Onlyface_match_scoreis returned - no personal data. - Match not possible:
INCONCLUSIVEwhen NIMC holds no photo for the NIN or no face could be found. Nothing is returned and the check is sent to review. - Unknown NIN:
DOCUMENT_NOT_FOUND. The lookup is charged.
Continue reading
Last modified on October 29, 2026