Hugging Face Dataset Rows API
Rows of any public Hugging Face dataset, ready for a spreadsheet or an agent: pick a subset and split, page through rows, search the text columns or filter and sort on column values, with each row's cells, the column types, the row count and the dataset's licence.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from huggingface.co/docs/dataset-viewer
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/hf-dataset-rows/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"hf_dataset":"stanfordnlp/imdb"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields.
Basics
- Row idx
The row's position in the split, counting from 0.
Example 0
- Dataset
Dataset id, such as stanfordnlp/imdb.
Example stanfordnlp/imdb
- Config
Subset (config) the row belongs to.
Example plain_text
- Split
Split the row belongs to, such as train.
Example train
- Columns
The row's cells by column name, with numbers, texts, lists and nested values as the dataset holds them.
Example Text: I rented I AM CURIOUS-YELLOW from my video store because of all the controversy that surrounded it when it was first… · Label: 0
- Truncated columns
Columns whose text was cut in this row (see the limitations), else empty.
Example text
- Number rows total
Rows in the split, or rows that match search and where.
Example 25,000
- Features
Type of each column, such as string, int64, list of string or class label (0=neg, 1=pos).
Example Text: string · Label: class label (0=neg, 1=pos)
- License
Licence named on the dataset's card, such as mit, cc-by-4.0 or other.
Example other
- Partial
Yes when the viewer covers only the first part of a very large split, so counts and matches cover that part.
Example No
Links
- Link
The row in the dataset viewer on huggingface.co.
Example huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=0
- Dataset link
The dataset's page on huggingface.co.
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
row_idx | number | Row idx | 3 of 3 |
dataset | text | Dataset | 3 of 3 |
config | text | Config | 3 of 3 |
split | text | Split | 3 of 3 |
url | link | Link | 3 of 3 |
columns | group of values | Columns | 3 of 3 |
truncated_columns | list | Truncated columns | 3 of 3 |
num_rows_total | number | Number rows total | 3 of 3 |
features | group of values | Features | 3 of 3 |
license | text | License | 3 of 3 |
is_partial | yes or no | Partial | 3 of 3 |
dataset_url | link | Dataset link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Row idx | Dataset | Config | Split | Columns | Truncated columns | Number rows total | Features | License | Partial | Link | Dataset link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | stanfordnlp/imdb | plain_text | train | Text: I rented I AM CURIOUS-YELLOW from my video store because of all the controversy that surrounded it when it was first released in 1967. I also heard that at first it was seized by U.S. customs if it ever tried to enter this country, therefore being a fan of films considered… · Label: 0 | text | 25,000 | Text: string · Label: class label (0=neg, 1=pos) | other | No | huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=0 | huggingface.co/datasets/stanfordnlp/imdb |
| 2 | 1 | stanfordnlp/imdb | plain_text | train | Text: "I Am Curious: Yellow" is a risible and pretentious steaming pile. It doesn't matter what one's political views are because this film can hardly be taken seriously on any level. As for the claim that frontal male nudity is an automatic NC-17, that isn't true. I've seen R-rated… · Label: 0 | text | 25,000 | Text: string · Label: class label (0=neg, 1=pos) | other | No | huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=1 | huggingface.co/datasets/stanfordnlp/imdb |
| 3 | 2 | stanfordnlp/imdb | plain_text | train | Text: If only to avoid making this type of film in the future. This film is interesting as an experiment but tells no cogent story.<br /><br />One might feel virtuous for sitting thru it because it touches on so many IMPORTANT issues but it does so without any discernable motive. The… · Label: 0 | text | 25,000 | Text: string · Label: class label (0=neg, 1=pos) | other | No | huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=2 | huggingface.co/datasets/stanfordnlp/imdb |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Public, non-gated datasets only, and only those the Hugging Face dataset viewer can open; a private, gated or missing dataset ends the run with a clear message. Rows are as the dataset's authors published them.
- Each dataset keeps its own licence (in license). Text cells of datasets without an open licence (CC0, CC BY, MIT, Apache and the like) are cut to their first 500 characters and listed in truncated_columns; open datasets come back whole up to 50,000 characters per cell.
- At most 5,000 rows per run, 100 per request (about 30 seconds for 5,000 rows); use offset to read a later slice. The first search or filter on a dataset can take 10 to 30 seconds while the viewer loads it.
- On very large datasets the viewer converts only the first part (usually about 5 GB): rows, searches, filters and num_rows_total then cover that part only, and is_partial is true.
- Some datasets can only be previewed: then just their first 100 rows come back, num_rows_total is empty, and search, where and order_by are refused.
- search finds whole words in the text columns, best matches first. Combined with where or order_by it matches the words as one phrase inside any text column instead.
- where takes simple conditions only: a column, a comparison (=, !=, <, >, <=, >=, LIKE, ILIKE) and a value, joined by AND or OR; IN, BETWEEN and NOT are refused by the source. order_by sorts on one column.
- Image and audio cells are links that stop working after a few hours; download them soon after the run.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.