datasets

Preview the contents of a dataset.

get/data/preview

Request

Query parameters

dataset_idstring required

The ID of the dataset to preview. This can be a HuggingFace dataset ID or a local dataset ID.

offsetinteger

The starting index from where to fetch the data.

splitstring

The split to preview. This can be train, test, or validation.

limitinteger

The maximum number of data items to fetch.

streamingboolean

Response

Successful response. Data is a list of column names followed by data, which can be of any datatype.

statusstring required
dataobject required

Changes

No recorded changes to this operation across all 7 revisions of this API.