Hugging Face

List Hugging Face dataset rows

List rows from a Hugging Face dataset a page at a time.

GET/v1/hugging-face/datasets/{owner}/{name}/rows
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
6
ownerstringrequiredpath

Owner of the repository: a user or organization name.

pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$

namestringrequiredpath

Repository name, without the owner.

pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$

configstringoptionalquery

Subset (config) name, e.g. `plain_text`. Default: the dataset's first subset. An unknown name is refused with a 400.

min 1 chars · max 200 chars

splitstringoptionalquery

Split name, e.g. `train`. Default: the subset's first split. An unknown name is refused with a 400.

min 1 chars · max 200 chars

pageintegeroptionalquery

Page number (1-based), `limit` rows a page. Default: 1.

≥ 1 · ≤ 1000000

limitintegeroptionalquery

Items per page, 1-100. A page can hold fewer. Default: 20.

≥ 1 · ≤ 100

Response fields
25

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found. `restricted` means it exists but its content is gated.

one of: found, not_found, restricted

dataviewerStatus
string

`available` when Hugging Face can show the dataset's rows; `unavailable` when it cannot.

one of: available, unavailable

datareason
stringnullable

Why no rows are shown: `disabled` (the owner switched it off), `no_data_files`, `empty`, `unsupported_format`, `too_large`, `failed`, or `split_not_found` when a default lookup finds no split in the dataset. Null when rows are available. A `config` or `split` you name that the dataset does not have is refused with a 400.

one of: disabled, no_data_files, empty, unsupported_format, too_large, failed, split_not_found, null

dataconfig
stringnullable

Subset the rows are from.

datasplit
stringnullable

Split the rows are from.

datatotalRows
integernullable

Rows in the split.

Columns of the split.

datacolumns[]name
string

Column name.

datacolumns[]type
string

Column type, e.g. `string`, `int64`, `ClassLabel`, `Image`.

Rows on this page.

datarows[]index
integer

Row number within the split, from 0.

datarows[]values
object

Column values. Images and audio are links to files Hugging Face hosts.

Columns whose long values were cut short.

datarows[]truncatedColumns[]
stringoptional
dataisPartial
booleannullable

Whether the split is only partly available.

Pagination state.

datapageoffset
integer

Offset of the first row.

datapagehasMore
boolean

Whether more rows follow.

datapagenextPage
integernullable

Page number to pass as `page` for the next page; null on the last page.

datapagenextOffset
integernullable

Offset of the next page's first row; null on the last page.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/hugging-face/datasets/stanfordnlp/imdb/rows?limit=5" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Dataset rows page.