This endpoint accepts the following values in the POST body:
{
// when provided, provides results sorted by semantic similarity
"like_image": string,
// when provided, provides results sorted by semantic similarity
"prompt": string,
// defaults to 0
"offset": int,
// default to 50 (max: 250)
"limit": int,
// when present, filters images that have the provided tag
"tag": string,
// when present, filters images that have the provided class name
"class_name": string,
// when present, filters images that are in the provided project
"in_dataset": string,
// when present, returns only images that are in any batch
"batch": boolean
// when present, returns only images present in the provided batch
"batch_id": string
// specify the fields to return, defaults to ["id", "created"]
// options are ["id", "name", "annotations", "labels", "split", "tags", "owner", "embedding", "created"]
"fields": string[]
}
The search API will return a response with the following structure. The values available will vary depending on the additional fields you have specified:
To search for images using the Python SDK, use the search_all() method. The method accepts a prompt value, which is the search query you want to send to Roboflow.
See the search filter documentation for more information on advanced filters supported in searches.