Get Hugging Face dataset statistics
Get per-column statistics of a Hugging Face dataset split.
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}$
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
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
Endpoint-specific response payload.
Whether the item was found. `restricted` means it exists but its content is gated.
one of: found, not_found, restricted
Whether Hugging Face computed statistics for this split.
Subset the statistics are for.
Split the statistics are for.
Rows counted.
Whether only part of the split was counted.
One entry per column.
Column name.
Statistics kind: `int`, `float`, `string_label`, `string_text`, `class_label`, `bool` and more.
Counts, minimum, maximum, mean, histogram or label frequencies, depending on the type.
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/statistics" \
-H "x-api-key: YOUR_API_KEY"Responses
Dataset statistics.