{"api":{"id":"api_532d0bf09e864f6d51d9ca6d","slug":"hf-dataset-rows","name":"Hugging Face Dataset Rows API","description":"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.","kind":"ready_made","visibility":"public","domain":"huggingface.co","source_url":"https://huggingface.co/docs/dataset-viewer","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T04:12:04.055Z","updated_at":"2026-12-06T04:12:04.055Z","runnable":true},"version":"1.0","contract_hash":"a81dc6a71157ec757a64cff3abb4439fff409683556650f99b9f7bc0ca15881e","fields":[{"name":"row_idx","type":"integer","description":"The row's position in the split, counting from 0.","required":true,"coverage":1,"example":0},{"name":"dataset","type":"string","description":"Dataset id, such as stanfordnlp/imdb.","required":true,"coverage":1,"example":"stanfordnlp/imdb"},{"name":"config","type":"string","description":"Subset (config) the row belongs to.","required":false,"coverage":1,"example":"plain_text"},{"name":"split","type":"string","description":"Split the row belongs to, such as train.","required":false,"coverage":1,"example":"train"},{"name":"url","type":"url","description":"The row in the dataset viewer on huggingface.co.","required":false,"coverage":1,"example":"https://huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=0"},{"name":"columns","type":"object","description":"The row's cells by column name, with numbers, texts, lists and nested values as the dataset holds them.","required":false,"coverage":1,"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}},{"name":"truncated_columns","type":"array","description":"Columns whose text was cut in this row (see the limitations), else empty.","required":false,"coverage":1,"example":["text"]},{"name":"num_rows_total","type":"integer","description":"Rows in the split, or rows that match search and where.","required":false,"coverage":1,"example":25000},{"name":"features","type":"object","description":"Type of each column, such as string, int64, list of string or class label (0=neg, 1=pos).","required":false,"coverage":1,"example":{"text":"string","label":"class label (0=neg, 1=pos)"}},{"name":"license","type":"string","description":"Licence named on the dataset's card, such as mit, cc-by-4.0 or other.","required":false,"coverage":1,"example":"other"},{"name":"is_partial","type":"boolean","description":"True when the viewer covers only the first part of a very large split, so counts and matches cover that part.","required":false,"coverage":1,"example":false},{"name":"dataset_url","type":"url","description":"The dataset's page on huggingface.co.","required":false,"coverage":1,"example":"https://huggingface.co/datasets/stanfordnlp/imdb"}],"inputs":[{"name":"hf_dataset","type":"string","description":"Dataset id as on Hugging Face, owner/name such as stanfordnlp/imdb, or the dataset's link.","example":"stanfordnlp/imdb","required":true},{"name":"config","type":"string","description":"Subset (config) name, such as plain_text. Empty: the dataset's first subset that has the split.","example":"plain_text"},{"name":"split","type":"string","description":"Split such as train, test or validation. Empty: train when the subset has one, else its first split.","example":"train"},{"name":"search","type":"string","description":"Words to find in the text columns; matching rows come back best match first.","example":"excellent"},{"name":"where","type":"string","description":"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"},{"name":"order_by","type":"string","description":"Sort by one column, ascending, or add DESC for highest first, such as score DESC.","example":"label DESC"},{"name":"offset","type":"integer","description":"Skip this many rows first (of the split, or of the matching rows) to read a later slice.","default":0,"example":0}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"columns":{"description":"The row's cells by column name, with numbers, texts, lists and nested values as the dataset holds them.","type":"object"},"config":{"description":"Subset (config) the row belongs to.","type":"string"},"dataset":{"description":"Dataset id, such as stanfordnlp/imdb.","type":"string"},"dataset_url":{"description":"The dataset's page on huggingface.co.","format":"uri","type":"string"},"features":{"description":"Type of each column, such as string, int64, list of string or class label (0=neg, 1=pos).","type":"object"},"is_partial":{"description":"True when the viewer covers only the first part of a very large split, so counts and matches cover that part.","type":"boolean"},"license":{"description":"Licence named on the dataset's card, such as mit, cc-by-4.0 or other.","type":"string"},"num_rows_total":{"description":"Rows in the split, or rows that match search and where.","type":"integer"},"row_idx":{"description":"The row's position in the split, counting from 0.","type":"integer"},"split":{"description":"Split the row belongs to, such as train.","type":"string"},"truncated_columns":{"description":"Columns whose text was cut in this row (see the limitations), else empty.","type":"array"},"url":{"description":"The row in the dataset viewer on huggingface.co.","format":"uri","type":"string"}},"required":["row_idx","dataset"],"title":"Hugging Face Dataset Rows API","type":"object"},"samples":[{"row_idx":0,"dataset":"stanfordnlp/imdb","config":"plain_text","split":"train","url":"https://huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=0","columns":{"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},"truncated_columns":["text"],"num_rows_total":25000,"features":{"text":"string","label":"class label (0=neg, 1=pos)"},"license":"other","is_partial":false,"dataset_url":"https://huggingface.co/datasets/stanfordnlp/imdb"},{"row_idx":1,"dataset":"stanfordnlp/imdb","config":"plain_text","split":"train","url":"https://huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=1","columns":{"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},"truncated_columns":["text"],"num_rows_total":25000,"features":{"text":"string","label":"class label (0=neg, 1=pos)"},"license":"other","is_partial":false,"dataset_url":"https://huggingface.co/datasets/stanfordnlp/imdb"},{"row_idx":2,"dataset":"stanfordnlp/imdb","config":"plain_text","split":"train","url":"https://huggingface.co/datasets/stanfordnlp/imdb/viewer/plain_text/train?row=2","columns":{"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},"truncated_columns":["text"],"num_rows_total":25000,"features":{"text":"string","label":"class label (0=neg, 1=pos)"},"license":"other","is_partial":false,"dataset_url":"https://huggingface.co/datasets/stanfordnlp/imdb"}],"validation":{"checked_at":"2026-12-06T04:12:04.051Z","field_coverage":{"columns":1,"config":1,"dataset":1,"dataset_url":1,"features":1,"is_partial":1,"license":1,"num_rows_total":1,"row_idx":1,"split":1,"truncated_columns":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:12:04.055Z","activated_at":"2026-12-06T04:12:04.055Z","active":true,"contract_hash":"a81dc6a71157ec757a64cff3abb4439fff409683556650f99b9f7bc0ca15881e","fields_count":12}]}