---
title: "Check if a dataset is valid"
method: GET
path: "/is-valid"
---

# Check if a dataset is valid

`GET /is-valid`

Returns the capabilities of the dataset: show a preview of the 100 first rows, show the viewer for all the rows, search/filter the rows, have statistics. Use the optional config and split parameters to filter the response.

## Query parameters

- `dataset` string, required
- `config` string
- `split` string

## Response `200`

The capabilities of the dataset.

- IsValidResponse
  - `viewer` boolean, required
  - `preview` boolean, required
  - `search` boolean, required
  - `filter` boolean, required
  - `statistics` boolean, required

## Other responses

- `401` — If the external authentication step on the Hugging Face Hub failed, and no authentication mechanism has been provided. Retry with authentication.
- `404` — If the repository to download from cannot be found. This may be because it doesn't exist, or because it is set to `private` and you do not have access.
- `422` — The 'dataset' parameter has not been provided or is invalid.
- `500` — The server crashed.

---

[API](https://skmtc.net/huggingface/apis/dataset-viewer-server-api.md) · [All operations](https://skmtc.net/huggingface/apis/dataset-viewer-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/dataset-viewer-server-api/versions/5048b8c0f4f9/schema)
