Visual Search
To search by external query image, upload external the image and make it
available as a query image by issuing the following call:
Upload an Image for Search
Request Parameters:
file
: Query image filebounding_box
(optional): X, Y, Width, Height
Visual Layer API - Dataset Exploration
After uploading the image you can call exploration endpoint with anchor media id:
GET /api/v1/explore/{dataset-id}
Query Parameters
entity_type
IMAGES or OBJECTSanchor_type
MEDIA or UPLOAD for when you uploaded the image using the upload endpointanchor_media_id
id of the image you want to use as anchor, returned from the upload for search endpointthreshold
similarity threshold(0-4) the search results are clustered according to this valuePAGE_NUMBER
: Which page of results to view (e.g., 0 for start)
Sample Response
Example:
**Notes: **
- Results are paginated with a fixed page size of 100 clusters per page
- Higher threshold values (0-4 depending on the dataset granularity options) create more granular clusters with stricter similarity requirements
- When using anchor-based similarity search, results are ordered by similarity to the anchor
- The entity_type parameter controls whether to return image clusters, object clusters, or both
- For similarity search with an uploaded image, first use the /search-image-similarity endpoint
More detailed example is here