- Takes: Image
- Passive: the target is not contacted
Searches the index for the submitted image within one category. Send either page or multiPage. Results are sorted by quality or date.
Request body (JSON) · 10ShowHide
image
Base64-encoded image to search for
category
duplicates, landmarks, similar or related
sortType
QUALITY_DESCENDING, QUALITY_ASCENDING, DATE_DESCENDING or DATE_ASCENDING
page
Page number, from 1; give page or multiPage
multiPage
List of page numbers, from 1; give page or multiPage
domain
Search domain filter
domainsToInclude
Domains to include, up to 100
domainsToExclude
Domains to exclude, up to 100
fromDate
yyyy-MM-dd
toDate
yyyy-MM-dd
Response fields · 8ShowHide
imageUrl
URL of the matching image
sourceUrl
Page the image appears on
title
Title of the source page
base64Image
The result image, Base64-encoded
confidenceScore
Match confidence, 0 to 100
date
Indexing date
availablePages
Number of pages available
multiPage[]
Pages the results were merged from
curl -X POST 'https://api.lenso.ai/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"image":"BASE64_ENCODED_IMAGE","category":"duplicates","sortType":"QUALITY_DESCENDING","page":1}'{
"results": [
{
"urlList": [
{
"imageUrl": "https://example.com/images/photo.jpg",
"sourceUrl": "https://example.com/gallery",
"title": "Example gallery"
}
],
"base64Image": "BASE64_RESULT_IMAGE",
"confidenceScore": 92.5,
"date": "2025-01-01"
}
],
"availablePages": 3
}