Get Hugging Face dataset viewer
Get what a Hugging Face dataset viewer can show.
Headers
Get your API keyAPI key (`sfk_...`)
Owner of the repository: a user or organization name.
pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
Repository name, without the owner.
pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
Endpoint-specific response payload.
Whether the item was found. `restricted` means it exists but its content is gated.
one of: found, not_found, restricted
Row viewer facts when found; otherwise null.
`available` when Hugging Face can show the dataset's rows; `unavailable` when it cannot.
one of: available, unavailable
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
Whether the figures cover only part of a very large dataset.
Which row features the dataset supports.
First rows can be previewed.
Rows can be paged through.
Rows can be searched.
Rows can be filtered.
Column statistics are available.
Rows across every subset and split.
Size of the dataset's Parquet files in bytes.
Subsets of the dataset.
Subset (config) name.
Rows in the subset.
Columns in the subset.
Licence the dataset script declares.
Homepage the dataset script declares.
Columns of the subset.
Column name.
Column type, e.g. `string`, `int64`, `ClassLabel`, `Image`.
Class names of a ClassLabel column.
Splits of the subset.
Split name.
Rows in the split.
Size of the split in memory, in bytes.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/hugging-face/datasets/stanfordnlp/imdb/viewer" \
-H "x-api-key: YOUR_API_KEY"Responses
Dataset row viewer facts.