Hugging Face Scraper — AI Models, Datasets & Spaces avatar

Hugging Face Scraper — AI Models, Datasets & Spaces

Pricing

from $1.50 / 1,000 results

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

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

Haketa

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Categories

Features

Limited permissions

Share

Apify Actor Maintenance Data Format Zero Login Deep Pagination

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

FeatureSpecification
Target HubHugging Face (Models, Datasets, Spaces)
Search CapabilitiesMulti-keyword search, author / organization filter, task tags
Sorting ModesMost downloads, most likes, trending score, newest, recently updated
Data FormatsJSON, CSV, Excel (XLSX), XML, HTML Table, RSS
Speed & RuntimePure HTTP engine (~100 items per cursor page in 0.8–1.5 seconds)
Pagination & ScaleUnlocked deep cursor pagination (1,000+ items per run)
Proxy RequirementApify Proxy (automatic IP rotation prevents rate limits)
DeduplicationAutomatic natural key deduplication on canonical id
Metadata CoverageDownloads, 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), and spaces (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 TagModalityPrimary Use CasesCommon Models
text-generationNLPChatbots, code generation, reasoning, instruction-followingLlama 3.1, Mistral, Qwen 2.5
text-classificationNLPSentiment analysis, spam detection, topic taggingRoBERTa, DeBERTa, BERT
translationNLPCross-lingual machine translationNLLB, MarianMT
text-to-imageVisionGenerative diffusion, concept rendering, digital artStable Diffusion, FLUX, SDXL
image-classificationVisionObject recognition, medical imaging, feature taggingResNet, ViT, Swin Transformer
automatic-speech-recognitionAudioVoice transcription, audio subtitles, meeting notesWhisper, Wav2Vec 2.0
text-to-speechAudioVoice synthesis, audiobook generation, avatar dubbingBark, Parler-TTS
feature-extractionMultimodalEmbedding models for RAG, vector search, semantic clusteringBGE, 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 SlugLicense TypeCommercial UseAttribution RequiredDerivative Sharing
apache-2.0Permissive Open Source✅ PermittedYesPermissive
mitPermissive Open Source✅ PermittedYesPermissive
bsd-3-clausePermissive Open Source✅ PermittedYesPermissive
llama3.1Custom Commercial🟡 Conditional (<700M MAU)YesCustom Agreement
gemmaCustom Commercial🟡 Conditional (Google Terms)YesCustom Agreement
cc-by-4.0Creative Commons✅ PermittedYesPermissive
cc-by-nc-4.0Creative Commons❌ Non-Commercial OnlyYesNon-Commercial
otherBespoke / Proprietary⚠️ Review Model CardVariableVariable

📥 Input parameters

The scraper accepts flexible JSON input configurations. All parameters are optional, with intelligent defaults provided for instant test runs:

ParameterTypeDefaultDescription
entityTypeString"models"Target Hugging Face vertical: models, datasets, or spaces.
searchTermsArray["llama"]One or more search keywords. Each term executes an independent search and merges results.
authorString""Restrict collection to a specific user or organization (e.g. meta-llama, mistralai).
sortString"downloads"Ordering criteria: downloads, likes, trendingScore, createdAt, lastModified.
maxItemsInteger0Maximum items to collect across all queries. Set to 0 for unlimited scraping. Fast prefill is set to 100.
proxyConfigurationObjectDatacenterProxy settings. Apify Proxy prevents rate-limiting during batch operations.

Example input configurations

{
"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
}
{
"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

FieldTypeCoverageDescription
idString🟢 HighCanonical Hugging Face item identifier (e.g. "meta-llama/Llama-3.1-8B-Instruct").
entityTypeString🟢 HighHub vertical classification: "models", "datasets", or "spaces".
authorString🟢 HighAuthor or organization account handle (e.g. "meta-llama").
urlString🟢 HighCanonical public web URL pointing to the item on Hugging Face.

📈 Popularity & metrics fields

FieldTypeCoverageDescription
downloadsInteger🟢 HighTotal all-time download volume (for models and datasets).
likesInteger🟢 HighCommunity favorites / upvotes count.
trendingScoreFloat / Int🟡 ConditionalCurrent trending ranking score (populated when sorting by trending).

🏷️ Technical & license attributes

FieldTypeCoverageDescription
pipelineTagString🟢 HighMachine learning task classification (e.g. "text-generation").
libraryNameString🟢 HighPrimary framework library (e.g. "transformers", "diffusers").
licenseString🟢 HighStandardized license identifier (e.g. "apache-2.0", "llama3.1").
languagesArray🟡 ConditionalArray of ISO language codes supported by the resource.
tagsArray🟢 HighFull list of published metadata tags and taxonomy keywords.
sdkString🟡 ConditionalWeb app framework for Spaces (e.g. "gradio", "streamlit", "docker").
gatedBoolean / Str🟢 HighAccess gating status (false, "manual", or "auto").
createdAtString🟢 HighISO-8601 UTC timestamp when the repository was created.
lastModifiedString🟢 HighISO-8601 UTC timestamp when the repository was last updated.
scrapedAtString🟢 HighISO-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: 0 traverses 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

  1. 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.
  2. Track Single Organizations: To track updates from labs like nvidia or Qwen, provide the organization name in author and leave searchTerms empty.
  3. 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.
  4. 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: 2500 and 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 ApifyClient
import pandas as pd
client = 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: 0 now 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.