Hugging Face Models Scraper - Filter by Task & Library
Pricing
$3.00 / 1,000 model scrapeds
Hugging Face Models Scraper - Filter by Task & Library
Search Hugging Face models by task, library or keyword. Returns id, author, downloads, likes, pipeline tag, library, tags and last modified, sorted by downloads, likes or trending. $0.003 per model.
Why use this scraper
Hugging Face now hosts well over a million model repositories, and new ones land every day across hundreds of tasks and libraries. The Hub's own search UI is built for one person browsing one model at a time, not for pulling a filtered, ranked list of models into a spreadsheet, a research pipeline or an internal tool that tracks what the open-source AI ecosystem is shipping.
This scraper turns the Hub's catalog into structured data: filter by task (text-generation, image-classification, automatic-speech-recognition and 18 other pipeline tags), by library (transformers, diffusers, sentence-transformers), by a free-text keyword, and sort by downloads, likes, last-modified date or trending, and get back a flat JSON row per model with id, author, downloads, likes, pipeline tag, library and tags. No Hugging Face token, login or API client library required.
Overview
The actor takes an optional search query plus task, library and sort filters, and returns one record per matching Hugging Face model. A typical run of a few dozen models finishes in well under a minute. Pricing is pay-per-result at $0.003 per model returned, with a $0.05 minimum charge per run, so even a very small test run costs the minimum and a 200-model pull costs about $0.60.
Supported inputs
- Free-text search (
search): matches against model id and description, the same as typing into the Hub's search box, useful for finding models related to a specific keyword like "sentiment" or "whisper". - Task filter (
pipelineTag): restricts results to one of 21 Hugging Face pipeline tags, includingtext-generation,text-classification,question-answering,summarization,translation,image-classification,image-segmentation,object-detection,text-to-image,text-to-video,automatic-speech-recognitionandreinforcement-learning; leave empty to match any task. - Library filter (
library): restricts results to models tagged with a given library, such astransformers,diffusersorsentence-transformers; leave empty for any library. - Sort order (
sort):downloads(default),likes,lastModifiedortrending, so the same filter set can answer either "what's most used" or "what's new and gaining traction right now". - Result cap (
maxItems): up to 1,000 models per run, default 50.
Use cases
- AI researchers and engineers scanning for the most-downloaded models in a specific task (for example, the top
automatic-speech-recognitionmodels) before picking one to fine-tune or deploy. - ML tooling and MLOps platforms that need a live feed of trending models in a given library to power a "what's new" panel or a model-selection recommendation inside their product.
- Technology journalists and analysts tracking which labs and authors are shipping the most-liked models in a fast-moving category like text-to-image or text-to-video, month over month.
- Competitive and market research teams at AI infrastructure companies tracking which libraries (transformers, diffusers, sentence-transformers) are gaining the most new models and downloads over time.
- Internal model-governance teams at companies that use open-source models, building an inventory of candidate models for a given task filtered by license-adjacent signals like popularity and recency before a security or compliance review.
- Newsletter and content creators covering the open-source AI space, pulling a weekly list of the top trending models across tasks to build a "models to watch" roundup without manually browsing the Hub's trending page every time.
How it works
The actor queries Hugging Face's own public Hub API, the same data source that powers the Hub's website search and model cards, and flattens each model's metadata into one row. Because it reads the Hub's own public listing data rather than scraping rendered HTML pages, it keeps working even when the Hub's website layout changes, and it needs no authentication token for public model data.
Input configuration
Mode 1: most-downloaded text-generation models
{"pipelineTag": "text-generation","sort": "downloads","maxItems": 20}
Mode 2: trending models in a specific library
{"library": "diffusers","sort": "trending","maxItems": 30}
Mode 3: keyword search across all tasks
{"search": "whisper","sort": "likes","maxItems": 15}
Output sample
Real output from a production run, sorted by downloads with pipelineTag set to text-generation:
[{"id": "Qwen/Qwen3-0.6B","author": "Qwen","downloads": 26678187,"likes": 1845,"pipeline_tag": "text-generation","library_name": "transformers","tags": ["transformers", "safetensors", "qwen3", "text-generation", "conversational", "license:apache-2.0"],"createdAt": "2025-04-27T03:40:08.000Z","lastModified": null,"private": false,"gated": false,"url": "https://huggingface.co/Qwen/Qwen3-0.6B"},{"id": "openai-community/gpt2","author": "openai-community","downloads": 18621401,"likes": 3889,"pipeline_tag": "text-generation","library_name": "transformers","url": "https://huggingface.co/openai-community/gpt2"}]
Key output fields
| Field | Type | Description |
|---|---|---|
id | string | Full model repository path (author/model-name) |
author | string | Hugging Face username or organization that published the model |
downloads | number | Total download count reported by the Hub |
likes | number | Total likes/stars on the model card |
pipeline_tag | string | Primary task the model is tagged for |
library_name | string | Library the model is built for (transformers, diffusers, etc.) |
tags | array | Full list of Hub tags, including license, base model and framework tags |
createdAt, lastModified | string or null | Repository creation and last-update timestamps |
private, gated | boolean | Whether the model is private or access-gated |
url | string | Direct link to the model's Hugging Face page |
Pricing
Pay-per-event, billed per model returned:
| Event | Price |
|---|---|
| Model scraped | $0.003 |
| Minimum charge per run | $0.05 |
A 50-model run costs about $0.15; a 200-model pull costs about $0.60.
What makes this richer than the competition
Two other Hugging Face scrapers are active on the Store right now. parseforge/hugging-face-model-scraper (5 users in the last 30 days) adds license and language filters on top of task, library and keyword search, at $0.005 per model on the free tier. logiover/huggingface-hub-intelligence-scraper (2 users in the last 30 days) covers models, datasets and daily papers in one actor, at a lower $0.002 per result, but spreads its focus across three content types instead of going deep on models alone.
This actor's place in that lineup is a sharper price than parseforge ($0.003 versus $0.005 per model) for the same task and library filters, plus a trending sort mode that neither of those two competitors' listed descriptions mention, for teams that specifically want to track what is gaining traction on the Hub right now rather than just what has the most downloads historically.
Notes & limitations
lastModifiedcan come backnullfor some models even when the Hub's website shows a last-updated date; treat it as best-effort rather than guaranteed.- The actor returns model metadata only, not datasets, Spaces or daily papers; it is a models-only tool by design.
- License and language are not currently exposed as filter inputs; narrowing by those attributes today means filtering the
tagsarray in the returned data yourself. - Gated and private models that your account does not have access to will not appear in results, since the actor reads the Hub's public listing API.
downloadsreflects the Hub's own rolling download counter, which Hugging Face itself periodically recalculates; small day-to-day shifts in ranking for closely-ranked models are normal and not a sign of a broken run.- Model cards with very long or malformed
tagsarrays are still returned in full; downstream tooling that expects a fixed number of tags per model should not assume a cap.
FAQ
Do I need a Hugging Face account or API token? No, the actor reads the Hub's public model listing API, which needs no authentication for public models.
Can I filter by more than one task at a time?
No, pipelineTag takes a single task per run; run the actor again with a different task to cover more than one.
What does the trending sort actually track?
It mirrors the Hub's own trending ranking, which weighs recent download and like activity rather than lifetime totals.
Can I search by keyword and task at the same time?
Yes, search and pipelineTag combine, so you can search for "sentiment" within text-classification models only, for example.
Does this return gated or private models? No, only public models the Hub's listing API exposes without authentication.
How many models can I pull in one run?
Up to 1,000 via maxItems.
For AI Agents & LLM Apps
This actor is callable directly from an MCP client via mcp.apify.com, or from any backend via the Apify API's run-sync-get-dataset-items endpoint for a single synchronous call:
curl "https://api.apify.com/v2/acts/gio21~huggingface-models-scraper/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"pipelineTag": "text-generation", "sort": "downloads", "maxItems": 10}'
That makes it a drop-in tool call for an agent helping a developer pick a model for a task, with live popularity and metadata instead of a static training-time snapshot.
Disclaimer
Hugging Face is a trademark of Hugging Face, Inc. This actor is an independent, unofficial tool that reads publicly available model listing data and is not affiliated with, endorsed by or sponsored by Hugging Face, Inc.
SEO Keywords
Hugging Face scraper, Hugging Face models API, Hugging Face Hub data, model popularity tracker, transformers model list, trending AI models scraper.