Hugging Face Hub Scraper: Models, Datasets, Spaces, Papers
Pricing
from $1.00 / 1,000 results
Hugging Face Hub Scraper: Models, Datasets, Spaces, Papers
Extract models, datasets, spaces, and daily papers from Hugging Face Hub using the official public API. Captures likes, downloads, licenses, tags, and metadata with pay-per-event pricing.
Pricing
from $1.00 / 1,000 results
Rating
0.0
(0)
Developer
Mohammed Mohie
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Hugging Face Hub Scraper: Models, Datasets, Spaces & Daily Papers
Extract structured metadata from Hugging Face Hub using the official public Hub API. Collect metrics, licensing, task types, framework tags, and research summaries for models, datasets, spaces, and daily papers.
What It Extracts
This scraper queries Hugging Face's official public REST endpoints without requiring web scraping or browser emulation:
- Models: Repository ID, author, download metrics (period and all-time), likes, trending scores, task pipeline (such as
text-generationorsentence-similarity), library tag (such astransformersorsentence-transformers), tags, license, gating status, and timestamps. - Datasets: Repository ID, author, downloads, likes, trending score, description text, license, tags, and timestamps.
- Spaces: Space ID, author, likes, trending score, application SDK (such as
gradio,streamlit,docker,static), runtime stage (such asRUNNING), title, short summary, license, and tags. - Daily Papers: arXiv identifier, paper title, abstract summary, upvotes, comment count, author list, published date, and links to Hugging Face Papers and arXiv.
Use Cases
- AI trend tracking: Track download spikes, like velocity, and trending score shifts across open architectures and domains.
- Model and dataset discovery: Scan for checkpoints and datasets matching specific licenses, framework compatibility, or task tags.
- Newsletter and content research: Retrieve top daily papers and community demo spaces to monitor active machine learning research.
- Competitive analysis: Benchmark repository adoption, release frequency, and developer interest across organizations.
Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | String | "models" | Entity type to scrape: "models", "datasets", "spaces", or "daily_papers". |
search | String | null | Keyword query to filter records. |
author | String | null | Organization or user username (for example: google, meta-llama). |
tags | Array | [] | Filter tags (for example: ["text-generation", "safetensors"]). |
sort | String | "downloads" | Sort order: "downloads", "likes", "trendingScore", "lastModified", or "createdAt". |
maxItems | Integer | 100 | Maximum items to collect (1 to 10,000). |
includeCardData | Boolean | false | When true, includes raw card metadata dictionary in card_data. |
hfToken | String | null | Optional Hugging Face user access token for higher API rate limits. |
date | String | null | Optional date in YYYY-MM-DD format for daily_papers mode. |
maxConcurrency | Integer | 4 | Maximum parallel requests (1 to 4). |
Input Example
{"mode": "models","search": "bert","author": "google-bert","tags": ["fill-mask"],"sort": "downloads","maxItems": 20}
Output Dataset
Each record is returned as a flat dictionary. Missing or mode-inapplicable fields are returned as null.
Output Example (Model Record)
{"type": "model","id": "sentence-transformers/all-MiniLM-L6-v2","author": "sentence-transformers","url": "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2","downloads": 165041501,"downloads_all_time": 4322842809,"likes": 6176,"trending_score": 27,"pipeline_tag": "sentence-similarity","library_name": "sentence-transformers","tags": ["sentence-transformers","pytorch","tf","rust","onnx","safetensors","openvino","bert","feature-extraction","sentence-similarity","transformers","en","license:apache-2.0"],"license": "apache-2.0","created_at": "2022-03-02T23:29:05.000Z","last_modified": "2026-06-01T06:29:13.000Z","gated": false,"private": false,"sdk": null,"runtime_stage": null,"title": null,"summary": null,"published_at": null,"upvotes": null,"num_comments": null,"authors": null,"arxiv_url": null,"card_data": null}
Output Example (Paper Record)
{"type": "paper","id": "2611.31198","author": "Rui Sun","url": "https://huggingface.co/papers/2611.31198","downloads": null,"downloads_all_time": null,"likes": 3,"trending_score": null,"pipeline_tag": null,"library_name": null,"tags": [],"license": null,"created_at": "2026-11-22T19:00:00.000Z","last_modified": null,"gated": false,"private": false,"sdk": null,"runtime_stage": null,"title": "ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents","summary": "Recent multimodal search agents use reasoning, vision, and live web search...","published_at": "2026-11-22T19:00:00.000Z","upvotes": 3,"num_comments": 1,"authors": ["Rui Sun","Junhua Huang","Luca Zancato","Md Mofijul Islam","Kai-Wei Chang"],"arxiv_url": "https://arxiv.org/abs/2611.31198","card_data": null}
Pricing
This actor uses Apify's Pay-Per-Event (PPE) model:
- $1.00 per 1,000 results ($0.001 per result item).
- You only pay for records delivered to your dataset. If a targeted query returns 85 items, you are billed for 85 events.
- Empty queries that yield zero records incur zero event charges.
Frequently Asked Questions
Is it legal to scrape Hugging Face Hub?
Yes. This actor queries Hugging Face's official public REST API endpoints (/api/models, /api/datasets, /api/spaces, /api/daily_papers). It uses standard public API parameters, does not access private repositories, does not bypass authentication guards, and complies with Hugging Face terms of service.
Do I need a Hugging Face API token?
No. An API token is optional. The actor functions immediately without any credentials. Providing a personal access token in the hfToken field applies higher authenticated rate limits to your run.
What rate limits apply?
Unauthenticated API requests are subject to Hugging Face's public window of 500 requests per 300 seconds. The actor automatically throttles concurrent requests (maximum 4 concurrent connections) and uses exponential backoff retry logic that observes Retry-After headers if rate limits are reached.