Hugging Face Scraper | Models, Datasets & Spaces avatar

Hugging Face Scraper | Models, Datasets & Spaces

Pricing

from $2.10 / 1,000 results

Go to Apify Store
Hugging Face Scraper | Models, Datasets & Spaces

Hugging Face Scraper | Models, Datasets & Spaces

Extract public Hugging Face models, datasets, Spaces, papers, collections and repository metadata. Include available author details and export structured rows. Pay per delivered row plus a start fee.

Pricing

from $2.10 / 1,000 results

Rating

0.0

(0)

Developer

kane liu

kane liu

Maintained by Community

Actor stats

1

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

Share

Export public Hugging Face models, datasets, Spaces, papers and repository metadata as structured rows.

  • Search catalogs and inspect specific repositories.
  • Read dataset samples, file inventories and repository activity.
  • Include public author details where available.
  • Export rows to spreadsheets or use them through the API.
  • Pay $3.00 per 1,000 rows on the Free plan, plus a start fee.

What does Hugging Face Scraper do?

Hugging Face Scraper collects public data from huggingface.co without a Hugging Face account, covering the global Hub.

  • Catalogs and details: models, datasets, Spaces, papers and collections.
  • Dataset content: sample rows, text search, statistics and Parquet information.
  • Repositories: file metadata, discussions, commits, references and Space runtime metadata.
  • Author details: enrichDetails is on by default; it adds profile information to existing rows, not separately billed rows.

What data can you extract from Hugging Face?

Fields depend on kind and the selected mode. These tables show shared fields followed by fields specific to each row type.

Shared fields

FieldDescriptionExample
idEntity identifieropenai/whisper-tiny
nameDisplay namewhisper-tiny
kindRow typemodel
urlPublic page, where availablehttps://huggingface.co/openai/whisper-tiny
statusListing or discussion statuslisted
countryFixed label, not author locationUS
authoritySite namehuggingface.co
scrapedAtCollection time2026-10-24T00:00:00Z
authorNamePublic author nameJane Doe
emailsPublished contact information, usually empty[]
web.socialsPublic profile links[]

Model rows (model)

FieldDescriptionExample
pipelineTagModel taskautomatic-speech-recognition
downloadsPublished download count1200
likesPublished likes50
licenseLicense labelapache-2.0
tagsUp to 40 tags["pytorch"]
numParametersParameter count, when supplied39000000

Dataset metadata rows (dataset)

FieldDescriptionExample
descriptionShort descriptionExample dataset
languagesLanguages on detail rows["en"]
downloadsPublished download count1200

Space metadata rows (space)

FieldDescriptionExample
sdkApplication toolkitgradio
runtimeStageReported runtime stateRUNNING

Paper rows (paper)

FieldDescriptionExample
titlePaper titleExample paper
summaryAbstract excerptExample abstract
authorsAuthor names["Jane Doe"]
upvotesPublished votes20

Collection rows (collection)

FieldDescriptionExample
titleCollection titleExample collection
itemCountNumber of listed entries5
itemIdsUp to 20 entry identifiers["openai/whisper-tiny"]

Dataset content rows (dataset_row)

FieldDescriptionExample
datasetDataset identifierrajpurkar/squad
rowIdxRow index0
cellsColumn values{"question":"Example question"}
numRowsTotalReported split size100

Dataset statistics rows (dataset_statistics)

FieldDescriptionExample
payloadStatistics object{}

Dataset Parquet rows (dataset_parquet)

FieldDescriptionExample
payloadParquet information object{}

File metadata rows (file_meta)

FieldDescriptionExample
pathRepository-relative pathconfig.json
locationLocation and file metadata{}

File location rows (file_download)

FieldDescriptionExample
locationFile location information{}
downloadedBytesNo file content downloadedfalse

Path rows (file_entry)

FieldDescriptionExample
pathRepository-relative pathconfig.json
sizeFile size in bytes1024

Space runtime rows (space_runtime)

FieldDescriptionExample
stageReported runtime stateRUNNING
replicasReported replica count1

Discussion rows (discussion)

FieldDescriptionExample
numDiscussion number1
titleDiscussion titleExample discussion
isPullRequestWhether it is a pull requestfalse

Commit rows (commit)

FieldDescriptionExample
messageCommit messageUpdate documentation
dateCommit time2026-10-24T00:00:00Z

Reference rows (ref)

FieldDescriptionExample
refTypeReference typebranch
nameBranch or tagmain

The files mode returns one repository row containing files and fileCount, not one row per file. Each tree preview contains at most 200 entries. Use pathsInfo for separate file rows.

How to scrape Hugging Face

  1. Open Hugging Face Scraper in Apify Console.
  2. Choose searchType and fill the matching input below.
  3. Set maxResults to 3 for a first run.
  4. Click Start and wait for completion.
  5. Open the dataset and download your rows.

Empty {} uses the form example: query: "bert", at most 3 rows. Normal event charges apply. A query alone searches models; detailUrls selects page types from their URLs. A repoId alone does not select detail mode: set searchType explicitly.

models

Search models with query; narrow by pipelineTag or author.

datasets

Search dataset metadata; language and modality narrow the catalog.

spaces

Search Spaces; spaceFilter selects a toolkit such as gradio.

papers

List papers; keywords do not filter this catalog.

collections

List collections; keywords do not filter this catalog.

model

Get one model using repoId.

dataset

Get one dataset using repoId.

space

Get one Space using repoId; the Actor does not launch it.

paper

Use a paper identifier in repoId.

collection

Use a collection slug in repoId.

files

Read a repository tree preview, without downloading files.

datasetRows

Supply repoId, datasetConfig and datasetSplit for sample content.

datasetSearch

Add query to search within a dataset split.

datasetStatistics

Request statistics for a dataset configuration and split.

datasetParquet

Request Parquet information for repoId, not file content.

fileMeta

Supply repoId and targetPath for file metadata.

fileDownload

Return file location information only, despite the mode name.

pathsInfo

Supply filePaths to return separate file metadata rows.

spaceRuntime

Read reported runtime metadata for a Space.

collectionDetail

Get collection details using its slug.

dailyPapers

Get daily papers; an empty paperDate means today in UTC.

discussions

List repository discussions using repoId and, if needed, repoKind.

commits

List repository commits; rev selects the revision.

refs

List repository branches and tags.

community

Use this alternative name for repository discussions.

What to fill in

FieldWhat to enterDefault
searchTypeMode listed abovemodels
queryCatalog keyword or dataset search textEmpty
detailUrlsHub page links or owner/name; batch shares one cap[]
repoIdRepository ID, paper ID or collection slugEmpty
owner, nameTogether identify a repository when repoId is absentEmpty
maxResultsRow cap, from 1 to 20070
repoKindmodels, datasets or spaces when neededInferred
pipelineTagModel task, such as fill-maskEmpty
modalityDataset modality: text, audio, imageEmpty
spaceFilterSpace toolkit, such as gradioEmpty
filterTagsTags, such as license:mit[]
languageDataset language code, such as enEmpty
authorCatalog author filterEmpty
sortdownloads, likes, createdAt or lastModifiedDefault order
maxPagesListing page setting, from 1 to 201
enrichDetailsInclude public author detailstrue
datasetConfig, datasetSplitDataset configuration and splitEmpty
datasetOffsetStarting dataset row index0
datasetLengthDataset page size, from 1 to 100100
filePathsRepository-relative paths[]
targetPathSingle file pathEmpty
revRevision for file metadata, paths or commitsmain
paperDateDaily papers date, YYYY-MM-DDToday in UTC
expandFieldsAdditional listing fields, such as author[]
wantFull, wantConfigRequest additional listing metadatafalse
cursornextCursor from an earlier run's RUN_SUMMARY, to continue itEmpty

To browse without a keyword, set a listing filter such as author or sort; otherwise empty targets trigger the example. language filters datasets only, and does not translate search text.

Input examples

Each example uses a supported mode and requests at most 3 rows. Repository availability and dataset configurations can change.

models

{
"searchType": "models",
"query": "bert",
"maxResults": 3
}

datasets

{
"searchType": "datasets",
"query": "squad",
"language": "en",
"maxResults": 3
}

spaces

{
"searchType": "spaces",
"query": "image",
"spaceFilter": "gradio",
"maxResults": 3
}

papers

{
"searchType": "papers",
"sort": "likes",
"maxResults": 3
}

collections

{
"searchType": "collections",
"sort": "likes",
"maxResults": 3
}

model

{
"searchType": "model",
"repoId": "openai/whisper-tiny",
"maxResults": 3
}

dataset

{
"searchType": "dataset",
"repoId": "rajpurkar/squad",
"maxResults": 3
}

space

{
"searchType": "space",
"repoId": "openai/whisper",
"maxResults": 3
}

paper

{
"searchType": "paper",
"repoId": "1706.03762",
"maxResults": 3
}

collection

{
"searchType": "collection",
"repoId": "Quivr/quivr-65907b4b12f6d870e1cd0e01",
"maxResults": 3
}

files

{
"searchType": "files",
"repoId": "openai/whisper-tiny",
"maxResults": 3
}

datasetRows

{
"searchType": "datasetRows",
"repoId": "rajpurkar/squad",
"datasetConfig": "plain_text",
"datasetSplit": "train",
"datasetLength": 3,
"maxResults": 3
}

datasetSearch

{
"searchType": "datasetSearch",
"repoId": "rajpurkar/squad",
"datasetConfig": "plain_text",
"datasetSplit": "train",
"query": "university",
"datasetLength": 3,
"maxResults": 3
}

datasetStatistics

{
"searchType": "datasetStatistics",
"repoId": "rajpurkar/squad",
"datasetConfig": "plain_text",
"datasetSplit": "train",
"maxResults": 3
}

datasetParquet

{
"searchType": "datasetParquet",
"repoId": "rajpurkar/squad",
"maxResults": 3
}

fileMeta

{
"searchType": "fileMeta",
"repoId": "openai/whisper-tiny",
"targetPath": "config.json",
"maxResults": 3
}

fileDownload

{
"searchType": "fileDownload",
"repoId": "openai/whisper-tiny",
"targetPath": "config.json",
"maxResults": 3
}

pathsInfo

{
"searchType": "pathsInfo",
"repoId": "openai/whisper-tiny",
"filePaths": [
"config.json"
],
"maxResults": 3
}

spaceRuntime

{
"searchType": "spaceRuntime",
"repoId": "openai/whisper",
"maxResults": 3
}

collectionDetail

{
"searchType": "collectionDetail",
"repoId": "Quivr/quivr-65907b4b12f6d870e1cd0e01",
"maxResults": 3
}

dailyPapers

{
"searchType": "dailyPapers",
"maxResults": 3
}

discussions

{
"searchType": "discussions",
"repoId": "openai/whisper-tiny",
"maxResults": 3
}

commits

{
"searchType": "commits",
"repoId": "openai/whisper-tiny",
"rev": "main",
"maxResults": 3
}

refs

{
"searchType": "refs",
"repoId": "openai/whisper-tiny",
"maxResults": 3
}

community

{
"searchType": "community",
"repoId": "openai/whisper-tiny",
"maxResults": 3
}
  • maxItems and limit are aliases for maxResults; search and keyword map to query; urls and startUrls map to detailUrls.
  • Unknown fields do not fail input resolution. Close misspellings can be corrected; other fields are ignored with a note.
  • Invalid targets stop before row delivery with INVALID_INPUT: <field> — <how to fix>. No rows are charged; the start fee still applies.
  • INPUT_REPORT in the default key-value store records normalization, example inputs, warnings and ignored fields.

Output example

Illustrative model row; counts are examples, not current measurements.

{
"id": "openai/whisper-tiny",
"name": "whisper-tiny",
"kind": "model",
"type": "model",
"status": "listed",
"country": "US",
"authority": "huggingface.co",
"url": "https://huggingface.co/openai/whisper-tiny",
"pipelineTag": "automatic-speech-recognition",
"downloads": 1200,
"likes": 50,
"license": "apache-2.0",
"gated": false,
"emails": [],
"phones": []
}

Export the dataset as JSON, CSV, Excel, XML, RSS or an HTML table.

Why use this Hugging Face scraper?

  • Pay for delivered rows: no row charge for an empty dataset.
  • Keep delivered results: a run that reaches its timeout delivers the rows collected so far and gives you a cursor to continue.
  • Understand the input: inspect INPUT_REPORT, INPUT_ECHO and RUN_SUMMARY; failures also write ERROR_SUMMARY.
  • Batch page inputs: use detailUrls for several pages with a shared cap.
  • No proxy setup: you do not need to set up proxies.

How much does it cost to scrape Hugging Face?

The Actor uses pay-per-event pricing; platform usage is included.

Apify planStart eventPrice per rowPrice per 1,000 rows
Free$0.005$0.003$3.00
Starter$0.005$0.0027$2.70
Scale$0.005$0.0024$2.40
Business$0.005$0.0021$2.10
Platinum$0.005$0.0021$2.10
Diamond$0.005$0.0021$2.10

One start event is charged per GB of memory, minimum one. Default memory is 1024 MB, so the start costs $0.005.

  • maxResults applies per query or repository input; a detailUrls batch shares that allowance. Default 70; larger requests are collected in parts of 70, up to the input maximum of 200.
  • Free Apify plan users are limited to 200 rows per run and 10 runs of this Actor (publisher limits).
  • Maximum cost per run (maxTotalChargeUsd in the API) limits the whole run and can stop delivery early.
  • The Apify Free plan includes $5.00 in monthly usage credit (about 1,666 rows at $0.003 each).

Example: one query delivering 5 rows on the Free plan at 1024 MB costs 5 × $0.003 + $0.005 = $0.020. A zero-row run has no row charge but still incurs the start fee.

What happens when the run timeout is too short

If your run timeout ends before everything is collected, the run does not fail. It stops shortly before the timeout, delivers every row collected so far to the dataset, and finishes as SUCCEEDED. You are charged only for the rows it delivered.

To get the rest, run the Actor again with the same input and set cursor to the value of nextCursor from the run's RUN_SUMMARY record (key-value store). The new run first delivers rows that were already collected, then collects what is left. Rows are never delivered or charged twice. A cursor can be used once and is valid for 6 hours; after that, a run with the same input starts from the beginning.

RUN_SUMMARY also tells you why the run stopped early: partial: true and partialReason: "run_timeout".

Stopping a run yourself? Use Abort gracefully (Console) or POST /v2/actor-runs/{runId}/abort?gracefully=true (API). The run then keeps the rows collected so far and writes a cursor the same way. A plain abort stops the run immediately and delivers nothing.

Calling the Actor synchronously (run-sync, run-sync-get-dataset-items) works as usual: you get the rows delivered before the timeout.

Use with AI agents and the API

Apify MCP server

In Claude, ChatGPT, Cursor, VS Code or another remote MCP client, add:

https://mcp.apify.com?tools=lentic_clockss/huggingface-scraper

Sign in with Apify using OAuth, or send Authorization: Bearer <YOUR_APIFY_TOKEN>. The tool returns run and dataset IDs; read rows with get-dataset-items. For local clients, set APIFY_TOKEN and run:

npx @apify/actors-mcp-server --tools lentic_clockss/huggingface-scraper

Example prompt: "Find three Hugging Face models matching bert and return their IDs, licenses and download counts."

  • Agent execution note: Set maxResults between 5 and 20 on exploratory tool calls to keep responses compact, and read RUN_SUMMARY and INPUT_REPORT from the default key-value store to inspect normalized inputs and delivered row counts. When a run ends SUCCEEDED with partial: true and a nextCursor, start a new run with the same input and that cursor to get the rest.

Apify API

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lentic_clockss/huggingface-scraper").call(
run_input={"query": "bert", "searchType": "models", "maxResults": 3}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lentic_clockss/huggingface-scraper').call({
query: 'bert', searchType: 'models', maxResults: 3
});
const { items: rows } = await client.dataset(run.defaultDatasetId).listItems();
console.log(rows);

Over HTTP, send input JSON to POST https://api.apify.com/v2/acts/lentic_clockss~huggingface-scraper/runs with an Authorization: Bearer <YOUR_APIFY_TOKEN> header. Read GET https://api.apify.com/v2/datasets/<datasetId>/items?format=json after completion.

Integrations

Connect Google Sheets, Make, Zapier, n8n, Slack, Airtable or webhooks from the Integrations tab; use Apify Schedules for recurring runs.

FAQ

This Actor collects public data; you are responsible for the site's terms and applicable data-protection law. Processing personal data requires a lawful basis.

Why did my run end as ABORTED?

Runs no longer pause as ABORTED when the timeout is too short; they end SUCCEEDED with partial results, as described above. ABORTED means the run was aborted. Use Abort gracefully to keep the rows collected so far and get a cursor.

How many results can I get?

maxResults accepts 1–200. Actual delivery depends on available matches and your spending limit; a detail input normally returns one row. Free-plan limits also apply.

Why are some fields empty?

The source may not expose them, or that row type may not contain them. Phones and street addresses are not collected. country is a fixed label, not a discovered location.

Why do leadAbsences reasons look different from earlier runs?

Reasons are now English codes instead of Chinese labels:

Earlier label (JSON-escaped)MeaningNew value
"\u672c\u7ad9\u65e0\uff1a\u672c\u7ad9\u65e0" on phones, geo, address.street, address.unitNot read by the actornot_verified (<note>)
"\u672c\u7ad9\u65e0\uff1a\u672c\u7ad9\u65e0" on emailsProfile read, no email link or namenot_verified (<note>)
"\u672c\u7ad9\u65e0\uff1a\u672c\u7ad9\u65e0" on emailsProfile not fetchednot_collected (<note>)
"\u672c\u7ad9\u65e0\uff1a\u672c\u7ad9\u65e0" on personHugging Face's own accountnot_verified (<note>)
"\u672c\u7ad9\u65e0\uff1a<evidence>" on other fieldsResponse has the key, emptyNot on source: <evidence>
"\u672c\u7ad9\u65e0\uff1a<evidence>" on other fieldsResponse has no such keyEntry removed; see quality.missingFields

Does it download model weights or run Spaces?

No. File modes return metadata or locations, not file content. Space modes do not launch applications or perform inference.

Why do papers and collections ignore my keyword?

These modes list catalogs rather than matching keywords. Use model, dataset or Space search for keyword filtering.

Does it provide author contact details?

Public profile names and social links may be included. Email coverage is limited; the Actor does not crawl authors' external websites for contacts.

What if there are no rows?

Broaden the keyword or remove filters. Check RUN_SUMMARY and any failure message. A genuine no-match response can finish successfully with an empty dataset.

Limitations

  • The enterprise, home, login and inference search types were removed because they are not provided; saved tasks still using one fail input validation.
  • Private content and gated content requiring login are not collected.
  • Discussion and commit page URLs are unsupported in detailUrls; use discussions or commits with repoId.
  • Dataset content uses one page of up to 100 rows; use datasetOffset for another page. Index preparation can delay or prevent delivery.
  • Tree previews are not complete repository inventories. Fields and counters vary by source availability.
  • maxPages is not a strict one-page guarantee: listing collection can increase it to meet the row request, with a hard ceiling of 20.
  • A plain (not graceful) abort stops the run immediately and delivers nothing.

More developer and data tools from the same publisher:

Browse all of our scrapers at apify.com/lentic_clockss.

Support

Report a problem or request a field through the Issues tab of this Actor's page. Include the run ID and the input you used.