---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Search Datasets

Retrieve all Datasets based on search params

Searches datasets with column filters and free-text terms, sorts the results by `id`, `name`, `created_at`, or `updated_at` in ascending or descending order, and returns a paged list. Set `with_archived` to include archived datasets, or `only_archived` to return archived datasets only.

## When to use it

Use it to combine several search terms, filter on specific columns, or control the sort order of the results.

## Required parameters

This call takes no required parameters.

Optional body fields: `filters`, `search`, `sort_by`, `sort_direction`, `with_archived`, `only_archived`. Use `page` and `size` to page through the results.

## Response

A successful call returns `200 OK` with a page of `DatasetResponse` objects in `items`, plus the paging fields `total`, `page`, `size`, and `pages`.

**Related:** [List datasets](https://docs.superwise.ai/reference/get_datasets), [Get a dataset](https://docs.superwise.ai/reference/get_dataset), [List datasets with a tag](https://docs.superwise.ai/reference/get_tagged_datasets)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/datasets/search": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Search Datasets",
        "description": "Retrieve all Datasets based on search params",
        "operationId": "search_datasets",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Page number",
              "default": 1,
              "title": "Page"
            },
            "description": "Page number"
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "default": 25,
              "title": "Size"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatasetSearchParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Page_DatasetResponse_Customized"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "DatasetResponse": {
        "properties": {
          "_id": {
            "type": "string",
            "title": "Id"
          },
          "id": {
            "type": "string",
            "title": "Id"
          },
          "name": {
            "type": "string",
            "title": "Dataset Name",
            "description": "A descriptive name for this dataset"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dataset Description",
            "description": "Relevant information about the context of this dataset"
          },
          "model_version_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Version Id"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "updated_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated By",
            "description": "User who last updated this dataset"
          },
          "tags": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/DatasetTag"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tags"
          },
          "schema": {
            "$ref": "#/components/schemas/Schema-Output",
            "default": {}
          },
          "tenant_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tenant Id"
          },
          "tag_ids": {
            "items": {
              "type": "string",
              "format": "uuid4"
            },
            "type": "array",
            "title": "Tag Ids"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          }
        },
        "type": "object",
        "required": [
          "_id",
          "id",
          "name",
          "created_by"
        ],
        "title": "DatasetResponse",
        "example": {
          "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "created_by": "1514f337-7b42-435d-bc19-99be46c13098",
          "description": "Some Dataset Description",
          "id": "Training_16101988",
          "model_version_id": "catboost_v365",
          "name": "Name for Some Dataset",
          "tags": {
            "project": "churn_prediction",
            "type": "training"
          }
        }
      },
      "DatasetSearchParams": {
        "properties": {
          "filters": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filters",
            "description": "Filter on db columns",
            "examples": [
              [
                "name",
                "eq",
                "active"
              ],
              [
                [
                  "id",
                  "eq",
                  "5c05dc9f-f04a-4ce8-9d57-2ec63ee76aac"
                ],
                "and",
                [
                  "description",
                  "ilike",
                  "Construction"
                ]
              ]
            ]
          },
          "search": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Search",
            "description": "Free text search on searchable fields"
          },
          "sort_by": {
            "type": "string",
            "enum": [
              "id",
              "name",
              "created_at",
              "updated_at"
            ],
            "title": "Sort By",
            "description": "Field to sort by",
            "default": "updated_at"
          },
          "sort_direction": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "title": "Sort Direction",
            "description": "Sort direction (ascending or descending)",
            "default": "desc"
          },
          "with_archived": {
            "type": "boolean",
            "title": "With Archived",
            "description": "Include archived datasets in the response",
            "default": false
          },
          "only_archived": {
            "type": "boolean",
            "title": "Only Archived",
            "description": "Include only archived datasets in the response",
            "default": false
          }
        },
        "type": "object",
        "title": "DatasetSearchParams"
      },
      "DatasetTag": {
        "properties": {
          "key": {
            "type": "string",
            "title": "Key"
          },
          "value": {
            "type": "string",
            "title": "Value"
          }
        },
        "type": "object",
        "required": [
          "key",
          "value"
        ],
        "title": "DatasetTag"
      },
      "Page_DatasetResponse_Customized": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/DatasetResponse"
            },
            "type": "array",
            "title": "Items"
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "title": "Total"
          },
          "page": {
            "type": "integer",
            "minimum": 1,
            "title": "Page"
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "title": "Size"
          },
          "pages": {
            "type": "integer",
            "minimum": 0,
            "title": "Pages"
          }
        },
        "type": "object",
        "required": [
          "items",
          "total",
          "page",
          "size",
          "pages"
        ],
        "title": "Page[DatasetResponse]Customized"
      },
      "Schema-Output": {
        "properties": {
          "fields": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/SchemaItem"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fields"
          },
          "key_field": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Key Field"
          }
        },
        "type": "object",
        "title": "Schema"
      },
      "SchemaItem": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Type"
          },
          "default_value": {
            "title": "Default Value"
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "SchemaItem"
      },
      "Type": {
        "type": "string",
        "enum": [
          "numeric",
          "string",
          "boolean",
          "datetime",
          "date",
          "json",
          "image",
          "image_link"
        ],
        "title": "Type"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```