Skip to main content

Face Search 1:N (Crops)

Endpoint​

POST https://api.verifik.co/v2/face-recognition/search/crops

Performs 1:N search optimized for small face crops, ideal when you cannot upscale images.

Headers​

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params​

NameTypeRequiredDescription
imagesstring[]YesArray of small base64 face crops (e.g., ≀120x120).
collection_idstringNoRestrict search to this collection.
max_resultsnumberNoMaximum results to return.
min_scorenumberYesMatch threshold (0.5–1.0).
search_modestringYesOne of FAST or ACCURATE.

Request​

const fetch = require("node-fetch");

async function run() {
const res = await fetch("https://api.verifik.co/v2/face-recognition/search/crops", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
body: JSON.stringify({
images: ["<base64-small>"],
collection_id: "<collection_id>",
min_score: 0.7,
search_mode: "FAST",
max_results: 10
}),
});
console.log(await res.json());
}

run();

Response​

{
"id": "SC01",
"data": [
{ "id": "person_id", "score": 0.91 }
],
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "January 16, 2024 3:44 PM"
}
}

Notes​

  • Provide tightly cropped faces; oversized images are less effective here.