Search a Dataset
Use text-based search queries and set filters to better understand datasets in Roboflow.
About
Dataset search lets you find specific images across a project using file-name lookups, structured filters (tags, splits, classes, dimensions, annotation counts), boolean logic, and natural-language semantic search. Use it to audit your data, surface mislabeled or missing annotations, and build targeted subsets for review or export. The same queries are available in the web app and through the search REST API.
Web App
You can search for image files in Roboflow by file name, a search query, and mix and match queries and filters to find specific images and better understand your data.
Images in a split with a certain tag:
tag:factory split:trainThis uses a tag filter and a split filterFind missing labels by using semantic search and a class filter:
person -class:helmetThis uses semantic search and an inverted filter on a class filterIf all images with a class need a certain filter:
class:helmet AND NOT (tag:v1 OR tag:v2)This uses a class filter, boolean logic, and tag filtersFind wide images with a low number of annotations:
min-width:1000 max-annotations:1This uses a minimum width filter and a max annotation count filter
See the full list of search filters, as well as examples below
Semantic Search
You can search for images by describing them. These queries will search for images most closely related to your search terms and can help you find images even when objects are not currently labeled.
Semantic search happens when you enter a text query without any filter selectors (ex: filename:)

Search by File Name
You can search for file names using the filename: filter or the file name textbox, which will create the query for you.

Search by Dataset Split
Search images by the dataset split (train, valid, test)

To reassign images to a different split, select them (or choose "Select all matching" from a search) and click "Change Dataset Split" in the bulk actions menu. Large selections process in the background.
Search by Upload Date
Filter images by the date they were first uploaded to Roboflow using the date: filter. The upload date is immutable and does not change when an image is edited, re-annotated, or moved between splits.
Use date:YYYY-MM-DD for an exact day, or combine comparison operators to search a range:
date>=2026-01-01 date<2026-02-01
Search Filters
Here are the filters available:
like-image:<IMAGE_ID>: Semantic search based on image contenttag: Filter by user-provided tags.filename: Runs a search for file names that match the provided file name. Use * at the beginning and end of a query to run a partial match.split: Filters by split (train, test, valid).job:<JOB_ID>: Shows images with the provided job ID.min-width:X: Shows images with a width of at least X pixels.max-width:X: Shows images with a width of at most X pixels.min-height:X: Shows images with a height of at least X pixels.max-height:X: Shows images with a height of at most X pixels.min-annotations:X: Shows images with at least X annotations.max-annotations:X: Shows images with at most X annotations. Usemax-annotations:0to find images without annotations.class:CLASS: Shows images that have at least 1 annotation with the provided label.date:YYYY-MM-DD: Filters by the immutable date an image was uploaded. Supports comparison operators (ex:date>=2026-01-01 date<2026-02-01).
Boolean Logic
Use AND, OR, NOT, and parentheses to combine multiple filters to form complex queries.
class:helmet AND NOT (tag:v1 OR tag:v2)
Inverted Filters
Add a minus sign before the filter to exclude images matching the filter.
class:helmet -class:vest
Numeric Class Filters
Filter by the number of labeled items in an image.
class:helmet=3 class:vest>=4
API
You can also search your dataset and images on Roboflow via the Search API.
HTTP API
There are two search endpoints: one searches a single project, and one searches the whole workspace with the same query syntax as the web app dataset search.
Search Images in a Project
Filter a project's images by tag, class, batch, annotation job, or Dataset membership. Add prompt to sort results by a text description, or like_image to sort by similarity to another image. Page through results with offset and limit.
Searches the images in one project with filters, text, or a similar image, and pages through results with offset and limit. An API key from the project's workspace can search any of its projects. An API key from another workspace can search public projects only. Requires image:read.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Text to sort results by semantic similarity.
Image ID to sort results by visual similarity.
Base64 image to sort results by visual similarity.
Return only images with this tag.
Return only images with at least one annotation of this class.
Return only images in the project's Dataset.
Return only images in any batch of the project.
Return only images in this batch.
Return only images in any annotation job of the project.
Return only images in this annotation job.
Results to skip.
0Results to return. Values over 250 return 250.
50Successful response.
Images that match.
A field name in fields is unknown, mediaTypes is invalid, or a membership filter is not a boolean.
Authentication is missing or invalid, or the project does not belong to this workspace.
The credential does not have access to this resource.
The project does not exist, or it is private and the API key is from another workspace.
The request rate is too high.
POST /{workspace}/{project}/search HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"prompt": "forklift at night",
"in_dataset": true,
"limit": 50,
"fields": [
"id",
"name",
"tags",
"url"
]
}{
"offset": 0,
"total": 292,
"results": [
{
"id": "image123",
"mediaType": "image",
"name": "humpbackwhale.jpg",
"owner": "owner123",
"url": "https://source.roboflow.com/owner123/image123/original.jpg",
"annotations": {
"count": 5,
"classes": {
"whale": 1,
"fish": 4
}
},
"labels": [],
"tags": [
"cam_x13"
]
}
]
}Search Images Across a Workspace
Send a RoboQL query with any of the search filters. Free text in the query runs a semantic search. Two more filters work here: project:foo returns images in project foo, and dataset:foo returns images in the Dataset of project foo. Repeat a filter to require both (ex: project:foo project:bar). An empty query returns every image in the workspace.
To get the next page, send the continuationToken from the response with the same query.
Searches the images across a workspace with a RoboQL query, the same syntax as dataset search in the web app. To get the next page, send the continuationToken from the response. The API key must belong to this workspace; keys from other workspaces cannot search it, even when it has public projects. Requires image:read.
Roboflow API key or OAuth access token.
Workspace URL slug.
RoboQL query: the filters from the web app dataset search plus project: and dataset:, with free text for semantic search. Leave it out or empty to match every image.
""Results per page.
50Token from the previous page. Send it with the same query to get the next page.
Project folder IDs to limit results to. Not allowed with a folder-scoped API key.
Successful response.
Images that match.
Send it in the next request to get the next page. Not present when there are no results.
query is not a string or is not valid RoboQL, a project: or dataset: filter names a project outside the workspace, mediaTypes is invalid, or includeProjectGroupIds was sent with a folder-scoped API key.
Authentication is missing or invalid.
The credential does not have access to this resource.
The workspace does not exist, or the API key is from another workspace.
The request rate is too high.
POST /{workspace}/search/v1 HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 108
{
"query": "project:my-project nighttime",
"pageSize": 10,
"fields": [
"tags",
"width",
"height",
"filename",
"split"
]
}{
"total": 42,
"continuationToken": "WzE3Njc5MDAwMDAwMDAsImltYWdlMTIzIl0=",
"results": [
{
"id": "image123",
"mediaType": "image",
"filename": "night-001.jpg",
"width": 1280,
"height": 720,
"tags": [
"night"
],
"projectData": {
"my-project": {
"inDataset": true,
"split": "train"
}
}
}
]
}Python SDK
Project.search_all() returns a paginated iterator of search results across the images in a project. Search modes can be combined: a text prompt narrowed by class, an existing-image similarity search filtered to a single batch, etc.
Parameters
prompt(str, optional) - natural-language search prompt (semantic search via CLIP embeddings).like_image(str, optional) - image id to search by visual similarity instead of text.tag(str, optional) - only images carrying this tag.class_name(str, optional) - only images that have an annotation in this class.in_dataset(bool, optional) - whether to restrict results to images in the project's dataset, excluding batch / annotation-job staging areas.batch(bool, optional) andbatch_id(str, optional) - restrict to a specific upload batch.annotation_job(bool, kw-only) andannotation_job_id(str, kw-only) - restrict to a specific annotation job.offset(int, default0) - pagination offset.limit(int, default100) - page size.fields(list[str], optional) - request only the listed fields per result, to reduce response size.
search_all() is a generator - each iteration yields a page of up to limit results, automatically advancing the offset. For a one-shot single-page call, use project.search(...) with the same arguments.
Workspace-wide search
To search across every project in the workspace, use Workspace.search() / Workspace.search_all(). Unlike the per-project methods, these take a single RoboQL query string (for example "class:forklift", "tag:review", or free text for semantic CLIP search) plus optional page_size and fields. Each yielded page is a list of result rows, and the rows include the source project under a projects field.
Export search results as a downloadable dataset
Workspace.search_export() runs a search and packages the results as a downloadable dataset (COCO / YOLO / VOC etc.). It calls the search export endpoints of the Platform API.
CLI
You can search images across your workspace using RoboQL and optionally export matching results as a downloadable dataset.
Search
Options
--limit
Max results to return (default: 50)
--cursor
Continuation token for pagination
--fields
Comma-separated list of fields to include
Examples
Search for images with a specific tag:
Search for images containing a specific class:
Export Search Results
Add --export to download matching images as a dataset:
Export Options
--export
Enable export mode
-f, --format
Annotation format (default: coco)
-l, --location
Local directory to save the export
-d, --dataset
Limit to a specific project
-g, --annotation-group
Limit to a specific annotation group
--name
Optional name for the export
--no-extract
Keep zip file, skip extraction
Examples
Export all reviewed images in COCO format:
Export images from a specific project in YOLOv8 format:
JSON Output
Use the cursor value for pagination:
MCP Server
Connect your AI agent to the MCP Server and it can find images with these tools:
images_search
Search for images inside a project.
images_workspace_search
Search images across the entire workspace using RoboQL.
Last updated
Was this helpful?