Hugging Face Scraper — AI Models, Datasets & Spaces
Pricing
from $1.50 / 1,000 results
Hugging Face Scraper — AI Models, Datasets & Spaces
Scrape Hugging Face models, datasets and Spaces with downloads, likes, trending scores, licenses, tags and authors. Search by keyword or author, sort by popularity, and export clean JSON or CSV for LLM research, model discovery and AI market analysis. Ideal for ML teams and AI product research.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer
Haketa
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
15 days ago
Last modified
Categories
Features
Share
Scrape Hugging Face models, datasets, and Spaces as clean, structured data — downloads, likes, trending scores, commercial licenses, pipeline tasks, machine learning libraries, tags, and authors. No login, no API key, no coding required. This high-performance Hugging Face scraper turns the global open-weights AI ecosystem into an analysis-ready dataset in seconds, empowering your team to build AI model leaderboards, conduct LLM competitive research, track open-source ML adoption, and discover fine-tuning datasets at scale.
Export every record directly to JSON, CSV, Excel, or consume via REST API and Webhooks.
Built for machine learning engineers, AI product managers, quantitative researchers, DevRel teams, and tech investors who need real-time, reproducible market intelligence on models, datasets, and apps published on the Hugging Face Hub.
⚡ At a glance
| Feature | Specification |
|---|---|
| Target Hub | Hugging Face (Models, Datasets, Spaces) |
| Search Capabilities | Multi-keyword search, author / organization filter, task tags |
| Sorting Modes | Most downloads, most likes, trending score, newest, recently updated |
| Data Formats | JSON, CSV, Excel (XLSX), XML, HTML Table, RSS |
| Speed & Runtime | Pure HTTP engine (~100 items per cursor page in 0.8–1.5 seconds) |
| Pagination & Scale | Unlocked deep cursor pagination (1,000+ items per run) |
| Proxy Requirement | Apify Proxy (automatic IP rotation prevents rate limits) |
| Deduplication | Automatic natural key deduplication on canonical id |
| Metadata Coverage | Downloads, likes, trending scores, licenses, pipeline tasks, languages |
🔎 Why scrape Hugging Face?
Hugging Face serves as the undisputed central registry and collaborative platform for modern open-source artificial intelligence. With well over 1.5 million AI models, hundreds of thousands of specialized datasets, and tens of thousands of deployed Spaces (Gradio and Streamlit interactive demos), it is the primary repository documenting open AI innovation:
- Ecosystem Adoption & Traction: Which foundation models (Llama, Mistral, Qwen, DeepSeek, Gemma, Phi) are gaining real-world developer traction based on monthly downloads and community likes.
- Commercial Licensing Compliance: Track open model weights licensed under commercially viable frameworks (
apache-2.0,mit) versus custom gated or non-commercial licenses (llama3.1,cc-by-nc-4.0). - Domain-Specific Training Corpora: Discover text, audio, image, and tabular datasets filtered by language, modality, and task.
- Breakout Applications & Trending Demos: Monitor Spaces trending algorithms to uncover emergent generative AI applications and popular architectures.
Because Hugging Face's web interface is designed for human discovery rather than bulk analytics, extracting tabular intelligence manually is slow, incomplete, and quickly outdated. This Hugging Face scraper automates deep collection, normalizing metadata into clean, machine-readable datasets.
Key business use cases
- 📊 LLM & Open-Weights Leaderboards: Compile competitive benchmarks of top-performing open LLMs, vision transformers, and speech models by download velocity and stars.
- ⚖️ Open-Source License Auditing: Pre-screen third-party AI models for commercial permissibility before integrating them into enterprise production stacks.
- 🎯 AI Competitor Intelligence: Monitor model release cadences, fine-tunes, and quantized checkpoints from key research labs (e.g.
meta-llama,mistralai,Qwen,google). - 📚 Dataset Discovery for Fine-Tuning: Mine curated training corpora across languages, conversational formats, and synthetic data tags.
- 📈 Venture Capital & AI Market Tracking: Gauge developer sentiment, library adoption (
transformers,diffusers,vllm,mlx), and open-source traction.
✨ Features & capabilities
- 🚀 Full Hub Multi-Entity Support: Toggle seamlessly between
models(foundation weights & checkpoints),datasets(training data), andspaces(interactive web demos). - 🔍 Multi-Query Keyword Batching: Provide multiple search terms (e.g.
llama,quantized,vision-language); the scraper runs each query independently and merges records without duplicates. - 🏢 Targeted Author / Organization Filtering: Scope collection to specific model creators or enterprise AI labs (e.g.,
meta-llama,mistralai,nvidia,openai). - 🔄 Unlocked 1,000+ Deep Pagination: Walks through cursor links automatically without artificial caps until your target item count is reached.
- 🏷️ Normalized Metadata Extraction: Extracts clean task pipeline identifiers, library frameworks, languages array, and licenses.
- ⚡ Zero Browser Overhead: Optimized HTTP requests deliver fast, lightweight extraction with minimal memory usage and zero browser crashes.
- 🔒 Zero Duplicate Guarantee: Integrated in-memory ID hash sets verify that every item pushed to your dataset is 100% unique.
🤖 Common AI tasks (pipelineTag) reference
When analyzing scraped models, the pipelineTag field standardizes the model's intended machine learning capability:
| Pipeline Tag | Modality | Primary Use Cases | Common Models |
|---|---|---|---|
text-generation | NLP | Chatbots, code generation, reasoning, instruction-following | Llama 3.1, Mistral, Qwen 2.5 |
text-classification | NLP | Sentiment analysis, spam detection, topic tagging | RoBERTa, DeBERTa, BERT |
translation | NLP | Cross-lingual machine translation | NLLB, MarianMT |
text-to-image | Vision | Generative diffusion, concept rendering, digital art | Stable Diffusion, FLUX, SDXL |
image-classification | Vision | Object recognition, medical imaging, feature tagging | ResNet, ViT, Swin Transformer |
automatic-speech-recognition | Audio | Voice transcription, audio subtitles, meeting notes | Whisper, Wav2Vec 2.0 |
text-to-speech | Audio | Voice synthesis, audiobook generation, avatar dubbing | Bark, Parler-TTS |
feature-extraction | Multimodal | Embedding models for RAG, vector search, semantic clustering | BGE, E5, Sentence-Transformers |
📜 Open-source AI licenses reference
Commercial and non-commercial model adoption hinges upon software licenses. The scraper lifts declared licenses into a dedicated license attribute:
| License Slug | License Type | Commercial Use | Attribution Required | Derivative Sharing |
|---|---|---|---|---|
apache-2.0 | Permissive Open Source | ✅ Permitted | Yes | Permissive |
mit | Permissive Open Source | ✅ Permitted | Yes | Permissive |
bsd-3-clause | Permissive Open Source | ✅ Permitted | Yes | Permissive |
llama3.1 | Custom Commercial | 🟡 Conditional (<700M MAU) | Yes | Custom Agreement |
gemma | Custom Commercial | 🟡 Conditional (Google Terms) | Yes | Custom Agreement |
cc-by-4.0 | Creative Commons | ✅ Permitted | Yes | Permissive |
cc-by-nc-4.0 | Creative Commons | ❌ Non-Commercial Only | Yes | Non-Commercial |
other | Bespoke / Proprietary | ⚠️ Review Model Card | Variable | Variable |
📥 Input parameters
The scraper accepts flexible JSON input configurations. All parameters are optional, with intelligent defaults provided for instant test runs:
| Parameter | Type | Default | Description |
|---|---|---|---|
entityType | String | "models" | Target Hugging Face vertical: models, datasets, or spaces. |
searchTerms | Array | ["llama"] | One or more search keywords. Each term executes an independent search and merges results. |
author | String | "" | Restrict collection to a specific user or organization (e.g. meta-llama, mistralai). |
sort | String | "downloads" | Ordering criteria: downloads, likes, trendingScore, createdAt, lastModified. |
maxItems | Integer | 0 | Maximum items to collect across all queries. Set to 0 for unlimited scraping. Fast prefill is set to 100. |
proxyConfiguration | Object | Datacenter | Proxy settings. Apify Proxy prevents rate-limiting during batch operations. |
Example input configurations
1. Trending LLM foundation models
{"entityType": "models","searchTerms": ["llama", "mistral", "qwen"],"sort": "downloads","maxItems": 150}
2. Lab-specific model monitoring
{"entityType": "models","author": "meta-llama","sort": "lastModified","maxItems": 50}
3. High-quality instruction-tuning datasets
{"entityType": "datasets","searchTerms": ["instruction", "dpo", "synthetic"],"sort": "likes","maxItems": 100}
4. Top trending AI Spaces & web apps
{"entityType": "spaces","sort": "trendingScore","maxItems": 100}
📊 Output data structure
Every scraped record provides a unified, structured schema formatted for direct querying or export into data warehouses:
🤖 Model & identity fields
| Field | Type | Coverage | Description |
|---|---|---|---|
id | String | 🟢 High | Canonical Hugging Face item identifier (e.g. "meta-llama/Llama-3.1-8B-Instruct"). |
entityType | String | 🟢 High | Hub vertical classification: "models", "datasets", or "spaces". |
author | String | 🟢 High | Author or organization account handle (e.g. "meta-llama"). |
url | String | 🟢 High | Canonical public web URL pointing to the item on Hugging Face. |
📈 Popularity & metrics fields
| Field | Type | Coverage | Description |
|---|---|---|---|
downloads | Integer | 🟢 High | Total all-time download volume (for models and datasets). |
likes | Integer | 🟢 High | Community favorites / upvotes count. |
trendingScore | Float / Int | 🟡 Conditional | Current trending ranking score (populated when sorting by trending). |
🏷️ Technical & license attributes
| Field | Type | Coverage | Description |
|---|---|---|---|
pipelineTag | String | 🟢 High | Machine learning task classification (e.g. "text-generation"). |
libraryName | String | 🟢 High | Primary framework library (e.g. "transformers", "diffusers"). |
license | String | 🟢 High | Standardized license identifier (e.g. "apache-2.0", "llama3.1"). |
languages | Array | 🟡 Conditional | Array of ISO language codes supported by the resource. |
tags | Array | 🟢 High | Full list of published metadata tags and taxonomy keywords. |
sdk | String | 🟡 Conditional | Web app framework for Spaces (e.g. "gradio", "streamlit", "docker"). |
gated | Boolean / Str | 🟢 High | Access gating status (false, "manual", or "auto"). |
createdAt | String | 🟢 High | ISO-8601 UTC timestamp when the repository was created. |
lastModified | String | 🟢 High | ISO-8601 UTC timestamp when the repository was last updated. |
scrapedAt | String | 🟢 High | ISO-8601 UTC execution timestamp. |
Example JSON output item
{"entityType": "models","id": "meta-llama/Llama-3.1-8B-Instruct","author": "meta-llama","downloads": 4892104,"likes": 9120,"pipelineTag": "text-generation","libraryName": "transformers","license": "llama3.1","languages": ["en"],"tags": ["transformers","safetensors","llama","text-generation","meta","pytorch","license:llama3.1"],"gated": "manual","sha": "0e9e39f249a16976918f6564b8830bc894c89659","createdAt": "2024-07-18T08:56:00.000Z","lastModified": "2024-09-25T17:00:57.000Z","url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct","scrapedAt": "2026-11-10T13:49:00.000Z"}
📈 Pagination & scale guide
- Cursor-Based Traversal: Hugging Face exposes 100 items per batch. The scraper follows pagination tokens via the HTTP
Link: <...>; rel="next"response header seamlessly. - Deep Pagination: Setting
maxItems: 0traverses through thousands of models without artificial limits, bounded only by available items for that search. - Multi-Query Merging: When passing multiple keywords in
searchTerms, the scraper executes consecutive queries and merges records against an in-memory Set to eliminate duplicates. - Throughput & Speed: Because extraction requires no headless browser, fetching 500 items takes under 30 seconds while consuming under 200 MB of RAM.
💡 Practical scraping tips
- Sort Selection Strategy:
- Use
"sort": "downloads"to identify established industry standard models. - Use
"sort": "trendingScore"to uncover newly viral research papers and model weights. - Use
"sort": "createdAt"to build a live watch-feed of newly published AI checkpoints.
- Use
- Track Single Organizations: To track updates from labs like
nvidiaorQwen, provide the organization name inauthorand leavesearchTermsempty. - Filter Commercial Weights Downstream: Export your dataset to CSV or pandas and filter on
license in ['apache-2.0', 'mit', 'bsd-3-clause']for instant commercial compliance vetting. - Scheduled Ecosystem Monitoring: Set up a weekly Apify schedule to capture download velocity trends and identify breakout open-source models before they become mainstream.
🛠️ Step-by-step workflow guide
Step 1: Select entity type
Navigate to the Actor console. In the input configuration form:
- Select whether you wish to collect Models, Datasets, or Spaces.
Step 2: Define keywords or author
- Enter search terms (e.g.
llama,vision-language,code-generation), OR - Provide an author handle (e.g.
meta-llama,mistralai,google).
Step 3: Configure limits
- For a fast validation check, leave
maxItems: 100. - For comprehensive market mapping, set
maxItems: 2500and choose your preferred sort order.
Step 4: Run and export
Click Start. As records are collected, they stream into your default dataset. Download results in JSON, CSV, or Excel, or sync via API.
🗄️ Dataset storage & retention
Data extracted by this actor is preserved in your Apify account within the assigned run dataset:
- Format Flexibility: Download items anytime in JSON, CSV, Excel, XML, or HTML table formats via the Apify Console.
- Historical Analysis: Append weekly runs into an Apify Named Dataset to establish long-term tracking of open-source model download trajectories.
- Schema Reliability: All fields conform strictly to the dataset schema, ensuring predictable integration into visualization dashboards.
🔗 Compatible tools & export formats
- Direct Downloads: Instantly download your collected dataset in JSON, CSV, TSV, XML, or Excel (XLSX).
- Automation Workflows: Connect with Make.com, Zapier, n8n, ActiveCampaign, or Google Sheets webhooks.
- Developer API: Fetch data directly into your Python (Pandas/Polars) or Node.js pipeline using the standard Apify Client library:
Python integration example
from apify_client import ApifyClientimport pandas as pdclient = ApifyClient("YOUR_APIFY_TOKEN")run = client.actor("haketa/huggingface-scraper").call(run_input={"entityType": "models","searchTerms": ["llama", "mistral"],"sort": "downloads","maxItems": 250})items = list(client.dataset(run["defaultDatasetId"]).iterate_items())df = pd.DataFrame(items)print(f"Loaded {len(df)} models. Top 5 by downloads:\n{df[['id', 'downloads', 'license']].head()}")
Node.js integration example
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('haketa/huggingface-scraper').call({entityType: 'models',author: 'meta-llama',sort: 'downloads',maxItems: 50,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(`Fetched ${items.length} Meta Llama models from Hugging Face.`);
❓ Frequently Asked Questions
Do I need a Hugging Face token or API key?
No. The scraper queries publicly accessible Hub metadata feeds directly without requiring account tokens, API keys, or user logins.
Can I scrape datasets and Spaces in addition to models?
Yes. Simply toggle the entityType input parameter between models, datasets, and spaces. The output fields remain standardized across all three verticals.
Does the scraper download model weights or binary files?
No. The scraper collects repository metadata (download counts, likes, licenses, tags, and commit SHAs). Binary checkpoints and tensor weights are not downloaded, keeping runs fast and bandwidth minimal.
How frequently do download counts update on Hugging Face?
Hugging Face updates official download counts and community likes periodically throughout the day. Running a daily or weekly crawl provides high-accuracy tracking of adoption velocity.
What happens if I search multiple keywords at once?
The actor processes each keyword query consecutively and uses an internal hash set to deduplicate items by id. You receive a single, combined dataset with zero duplicated entries.
What is the maximum number of items I can scrape?
There is no hard internal limit. Setting maxItems: 0 traverses cursor links until all matching records in the Hugging Face catalog for your query are harvested.
Can I filter for specific machine learning frameworks?
Yes. The libraryName field identifies frameworks like transformers, diffusers, vllm, timm, and peft. You can filter by framework in downstream tools or apply framework keywords directly in searchTerms.
Are gated models like Llama 3 or Gemma included in the output?
Yes. Metadata for gated models is publicly visible on Hugging Face and is captured by this scraper. The gated field indicates whether a model requires terms acceptance ("manual" or "auto").
Can I extract models in specific languages like Spanish or Japanese?
Yes. When publishers declare language codes, they are captured in the languages array (e.g. ["es"], ["ja"]). You can filter by language code in post-processing.
📋 Changelog
v1.2 (2026-11)
- 1,000+ Deep Pagination Unlocked: Removed artificial ceilings; setting
maxItems: 0now enables seamless multi-thousand item cursor traversal. - Fast Prefill Execution: Streamlined default validation run to 100 items for instant verification in under 30 seconds.
- Enhanced Normalization: Added emoji-grouped coverage indicators and standardized licensing extraction logic.
- Robust Network Pipeline: Upgraded cursor link parsing with exponential backoff on transient network interruptions.
v1.1 (2026-10)
- Multi-query keyword batching with automatic deduplication.
- Added Spaces app SDK detection (
gradio,streamlit,docker). - Standardized ISO timestamp attributes.
v1.0 (2026-09)
- Initial release featuring lightweight HTTP discovery of Hugging Face models, datasets, and Spaces.