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.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

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

Hf dataset
Dataset id as on Hugging Face, owner/name such as stanfordnlp/imdb, or the dataset's link.
Example: stanfordnlp/imdb
Configoptional
Subset (config) name, such as plain_text. Empty: the dataset's first subset that has the split.
Example: plain_text
Splitoptional
Split such as train, test or validation. Empty: train when the subset has one, else its first split.
Example: train
Searchoptional
Words to find in the text columns; matching rows come back best match first.
Example: excellent
Whereoptional
Filter on column values, such as label=1, score>0.5 or lang='en'. Join conditions with AND or OR; text values go in single quotes; LIKE and ILIKE take % wildcards.
Example: label=1
Order byoptional
Sort by one column, ascending, or add DESC for highest first, such as score DESC.
Example: label DESC
Offsetoptional
Skip this many rows first (of the split, or of the matching rows) to read a later slice.
Example: 0

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
Endpoint
POSThttps://pullrow.dev/v1/apis/hf-dataset-rows/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

hf_datasettextrequired
Dataset id as on Hugging Face, owner/name such as stanfordnlp/imdb, or the dataset's link.
example: stanfordnlp/imdb
configtext
Subset (config) name, such as plain_text. Empty: the dataset's first subset that has the split.
example: plain_text
splittext
Split such as train, test or validation. Empty: train when the subset has one, else its first split.
example: train
searchtext
Words to find in the text columns; matching rows come back best match first.
example: excellent
wheretext
Filter on column values, such as label=1, score>0.5 or lang='en'. Join conditions with AND or OR; text values go in single quotes; LIKE and ILIKE take % wildcards.
example: label=1
order_bytext
Sort by one column, ascending, or add DESC for highest first, such as score DESC.
example: label DESC
offsetnumber
Skip this many rows first (of the split, or of the matching rows) to read a later slice.
default: 0example: 0

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

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 nameTypeShown on this page asFilled
row_idxnumberRow idx3 of 3
datasettextDataset3 of 3
configtextConfig3 of 3
splittextSplit3 of 3
urllinkLink3 of 3
columnsgroup of valuesColumns3 of 3
truncated_columnslistTruncated columns3 of 3
num_rows_totalnumberNumber rows total3 of 3
featuresgroup of valuesFeatures3 of 3
licensetextLicense3 of 3
is_partialyes or noPartial3 of 3
dataset_urllinkDataset link3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordRow idxDatasetConfigSplitColumnsTruncated columnsNumber rows totalFeaturesLicensePartialLinkDataset link
10stanfordnlp/imdbplain_texttrainText: 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: 0text25,000Text: string · Label: class label (0=neg, 1=pos)otherNohuggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=0huggingface.co/datasets/stanfordnlp/imdb
21stanfordnlp/imdbplain_texttrainText: "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: 0text25,000Text: string · Label: class label (0=neg, 1=pos)otherNohuggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=1huggingface.co/datasets/stanfordnlp/imdb
32stanfordnlp/imdbplain_texttrainText: 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: 0text25,000Text: string · Label: class label (0=neg, 1=pos)otherNohuggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=2huggingface.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.
Known limits
  • 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.