HuggingFace Scraper: Hugging Face Models, Datasets & Spaces avatar

HuggingFace Scraper: Hugging Face Models, Datasets & Spaces

Pricing

from $0.70 / 1,000 repositories

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

HuggingFace Scraper: Hugging Face Models, Datasets & Spaces

HuggingFace Hub scraper. Search Hugging Face models, datasets and Spaces by name, author, task, library, license, language and tags. One row per repository: downloads, likes, trending, license, base model, parameters, architecture, files, storage, inference status. Official Hub API, no key.

Pricing

from $0.70 / 1,000 repositories

Rating

0.0

(0)

Developer

Konstantin Semin

Konstantin Semin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Hugging Face Hub Scraper: Models, Datasets & Spaces

Search the Hugging Face Hub, the largest registry of open AI models (2M+), datasets and demo apps, and get every matching repository as one clean row: downloads in the last 30 days, likes, trending score, task, library, license, languages, base model, parameter count and precision, architecture, file list with sizes, storage used, inference status, how many Spaces use the model, and optionally the full README (model card).

The Actor uses the official Hugging Face Hub API. No login, no browser, no proxies, no API key.

What you can do with it

  • AI market research and investing: which models, authors and licenses are gaining downloads; new releases by an organization; trending repositories per task.
  • Model selection: every text-generation model under Apache-2.0 with 7 billion parameters or less, sorted by downloads, with file sizes to judge the download.
  • Dataset discovery: datasets by task, language and size category with licenses and descriptions.
  • Compliance and due diligence: licenses, gated status, base models and training datasets of the models a team uses.
  • Monitoring: schedule a run sorted by "Recently created" for an author or task to catch new releases.

Input

FieldTypeDescription
typestringmodels (default), datasets or spaces.
queriesarrayWords searched in repository names, one search per line. Empty means browse by filters.
authorstringUser or organization, for example meta-llama, google.
taskstringPipeline tag (text-generation, text-to-image, automatic-speech-recognition...) or dataset task category.
librarystringModels: transformers, diffusers, gguf, onnx, sentence-transformers...
licensestringapache-2.0, mit, llama3.1, cc-by-4.0...
languagestringTwo-letter code: en, de, zh, vi...
tagsarrayAny other Hub tags, for example conversational, safetensors.
sortBystringdownloads (default, last 30 days), likes, trending, lastModified, createdAt.
minDownloads, minLikesintegerSkip repositories below these counts.
idsarraySpecific repositories, for example meta-llama/Llama-3.1-8B-Instruct.
includeDetailsbooleanAdd license, base model, parameters, architecture, files, storage, inference status. Default true.
includeReadmebooleanAdd the full README text. Default false.
maxFilesPerItemintegerCap on the file list. Default 100.
maxItemsintegerMaximum number of repositories saved. Default 100.

Example input

{
"type": "models",
"task": "text-generation",
"license": "apache-2.0",
"library": "transformers",
"sortBy": "downloads",
"minDownloads": 10000,
"maxItems": 200
}

Output

One dataset item per repository.

{
"type": "model",
"id": "meta-llama/Llama-3.1-8B-Instruct",
"url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct",
"author": "meta-llama",
"name": "Llama-3.1-8B-Instruct",
"downloads": 4538631,
"likes": 8892,
"trendingScore": 12,
"license": "llama3.1",
"languages": ["en", "de", "fr", "it", "pt", "hi", "es", "th"],
"tags": ["transformers", "safetensors", "llama", "text-generation", "conversational", "arxiv:2204.05149", "license:llama3.1"],
"gated": true,
"private": false,
"createdAt": "2024-07-18T08:56:00.000Z",
"lastModified": "2024-09-25T17:00:57.000Z",
"sha": "0e9e39f249a16976918f6564b8830bc894c89659",
"task": "text-generation",
"library": "transformers",
"baseModels": ["meta-llama/Meta-Llama-3.1-8B"],
"datasetsUsed": [],
"arxivIds": ["2204.05149"],
"licenseName": null,
"filesCount": 17,
"files": [{ "name": "model-00001-of-00004.safetensors", "sizeBytes": 4976698672 }],
"usedStorageBytes": 32123357950,
"downloadsAllTime": null,
"parameters": 8030261248,
"parameterDtypes": ["BF16"],
"architectures": ["LlamaForCausalLM"],
"modelType": "llama",
"inferenceStatus": "warm",
"spacesUsingCount": 100,
"evalResultsCount": 0,
"disabled": false,
"scrapedAt": "2026-11-12T08:30:00.000Z"
}

Dataset rows add description, taskCategories, sizeCategory, formats, modalities, configs and prettyName. Space rows add title, emoji, sdk, appUrl, runtimeStage, hardware and the models and datasets the Space uses. Fields the Hub does not have for a repository are null or empty lists.

A RUN_SUMMARY record in the key-value store lists how many repositories each search returned.

Good to know

  • Scale. Lists come 1,000 repositories per request, so browsing a whole task or author is quick. With includeDetails on, one extra request per repository runs five in parallel: about 1,000 repositories in three to four minutes.
  • Downloads are the Hub's rolling 30-day count, the same number shown on the website.
  • Parameters come from the safetensors metadata and are null for models stored in other formats (GGUF, older PyTorch files).
  • Gated repositories (Llama, Gemma and similar) return all metadata but no README, because the card requires accepting a license.
  • Spaces have no download count; they are sorted by likes unless you choose another order.
  • Polite by design. Requests go to the public API with small pauses and a plain user agent.
  • Price. $1 per 1,000 repositories, no start fee; platform usage is included.
  • Works with n8n, Make, Zapier and AI agents. The official Apify node for n8n runs this Actor and returns the rows inside a workflow, Make and Zapier use the Apify integration, and AI agents call it as a tool through the Apify MCP server.

FAQ

Can I get a model's files? Every file row has a name and size; download it from https://huggingface.co/{id}/resolve/main/{file} for public repositories.

Does it cover private repositories? No. Only public repositories are listed by the Hub API without authentication.

How do I get download counts for Hugging Face models? Filter by task, author or keyword and run. Every row has downloads (last 30 days), likes and the trending score.

Does Hugging Face have a public API? Yes, the Hub API. Public models, datasets and Spaces need no token, and the Actor uses it directly.

How do I export a list of Hugging Face models to CSV? Download the run's dataset as CSV, Excel or JSON, or read it through the Apify API.

Can I use it from n8n or an AI agent? Yes. Start it through the official Apify node for n8n, the Make or Zapier integration, or the Apify MCP server, and read the rows back from the dataset.

Something is missing or broken? Open an issue on the Issues tab and include the input you used.

Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Hugging Face. Repository metadata belongs to the respective authors.