First rows of a split

Changed on

The list of the 100 first rows of a dataset split.

get/first-rows

Request

  • Base URL
    https://datasets-server.huggingface.co
  • URL
    https://datasets-server.huggingface.co/first-rows
  • Auth
    • none
    • or HTTP bearer
    • or HTTP bearer

Query parameters

datasetstring required

The identifier of the dataset on the Hub.

configstring required

The dataset subset (also called 'configuration').

splitstring required

The split name.

Response

The <a href='https://huggingface.co/docs/datasets/about_dataset_features'>features</a>, and the 100 first rows of the split.</br>Note: the response can be truncated (less rows, or truncated cell contents): see examples.

datasetstring required
configstring required
splitstring required
truncatedboolean required

Changes

    • breaking

      added to the /// response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      added to the // response property oneOf list for the response status

    • breaking

      the ////// response's property type changed from array to object for status

    • info

      added the required property /////// to the response with the status

    • info

      added the required property /////// to the response with the status