Hugging Face API Scraper - Models, Datasets, Spaces
Pricing
from $1.00 / 1,000 run start fees
Hugging Face API Scraper - Models, Datasets, Spaces
Rank Hugging Face models, datasets and spaces by downloads, likes or trending score, filter by task, author or search term, or look up repos by id. Get licence, languages, base model, file list, gated status and dates as clean rows. No Hugging Face token needed.
Pricing
from $1.00 / 1,000 run start fees
Rating
0.0
(0)
Developer
SR
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 months ago
Last modified
Categories
Features
Share
This Hugging Face API scraper lists and ranks models, datasets and spaces on the Hugging Face Hub by downloads, likes or trending score. Filter by task, author or search term, or look up specific repos by id, and get licence, languages, base model, file list, gated status and dates back as clean dataset rows you can export to JSON, CSV or Excel.
It reads the official Hub API. No Hugging Face token or API key is needed for public repos, and you never handle pagination yourself.
What the Hugging Face API scraper does
The Hub has a public API, but it answers in raw pages of 100, hides the licence and file list behind a separate call per repo, and names its fields inconsistently across models, datasets and spaces. This Actor does that work for you: one input, one row per repo, the same field names for every repo type.
What you can actually ask it
"What are the most downloaded embedding models right now?" The default run
(models, sorted by downloads) answers it. On 19 September 2026 it returned
sentence-transformers/all-MiniLM-L6-v2 at 254 million downloads in 30 days,
then cross-encoder/ms-marco-MiniLM-L6-v2 at 88.7 million, then
BAAI/bge-small-en-v1.5 at 64.5 million.
"Which models can we legally ship?" Turn on full detail and filter on
license. Apache-2.0 and MIT are shippable; a good number of popular models
are not, and the licence is the field people discover too late.
"What is everyone fine-tuning from?" base_model names the parent, so you
can see which foundation models the ecosystem actually builds on.
"What changed this month?" Sort by createdAt or lastModified and get new
and freshly updated repos.
Input
| Field | Type | Default |
|---|---|---|
repo_type | models, datasets, spaces | models |
search | free text over repo names | — |
task | task tag, e.g. text-generation | — |
author | user or organisation | — |
repo_ids | list of exact repo ids | — |
sort | downloads, likes, lastModified, createdAt, trendingScore | downloads |
direction | desc, asc | desc |
detail | fetch licence, languages, files | false |
token | only for private or gated repos | — |
limit | 1-3000 | 100 |
retries | 1-6 | 3 |
An empty input is a valid run: it returns the 100 most downloaded models.
repo_ids switches to direct lookup and always fetches full detail, so that
path is complete. Example input for a licence check on a few datasets:
{"repo_type": "datasets","repo_ids": ["openai/gsm8k", "rajpurkar/squad"]}
Output
One row per model, dataset or space. Fields:
- Identity:
id,repo_type,author,url - Popularity:
downloads_30d,likes,trending_score - Classification:
pipeline_tag(the task),library_name,tags - Provenance:
base_model,datasets_used,arxiv_ids - Legal:
license - Reach:
languages - Access:
gated,private,disabled - Dates:
created_at,last_modified - Contents:
file_count,files(first 50) - Datasets and spaces:
description - Spaces only:
sdk(gradio, streamlit, docker, static) - Run order:
position
A real row from a run with search: "whisper", author: "openai" and
detail: true (the languages, tags and files lists are cut to their first
five entries here; the real row has 20 languages, 115 tags and 16 files):
{"id": "openai/whisper-tiny","repo_type": "models","author": "openai","url": "https://huggingface.co/openai/whisper-tiny","downloads_30d": 1082703,"likes": 451,"trending_score": null,"pipeline_tag": "automatic-speech-recognition","library_name": "transformers","languages": ["en", "zh", "de", "es", "ru"],"datasets_used": null,"base_model": null,"arxiv_ids": ["2212.04356"],"license": "apache-2.0","tags": ["transformers", "pytorch", "tf", "jax", "safetensors"],"gated": false,"private": false,"disabled": false,"created_at": "2022-09-26 06:50:30","last_modified": "2024-02-29 10:57:33","file_count": 16,"files": [".gitattributes", "README.md", "added_tokens.json", "config.json", "flax_model.msgpack"],"description": null,"sdk": null,"position": 1}
The run summary in the key-value store gives the counts, how many rows carry a
licence, how many repos are gated, and how much of the Hub's rate-limit window
is left. Errors land in a separate errors record with a code and a short
message.
Three things about Hugging Face data that catch people out
downloads_30d is a 30-day figure, not a lifetime total. The Hub reports
downloads over a rolling month. Reading it as all-time understates every new
model and overstates nothing; it simply is not the number most people assume it
is. The field is named for what it holds.
Licence and file list only exist on the detail call. A listing gives you
downloads, likes, tags and task, and a licence only where the repo carries a
license: tag. It does not carry the model card data, which is where the
licence normally lives, nor the file list. Turn on Fetch full detail and the
Actor makes one extra call per repo to fill those in. When you leave it off and
licences come back partly empty, the run summary says so instead of letting you
conclude those models have no licence.
gated is not private. A gated repo is public and listed, but its files
need you to accept terms first. You can read all the metadata; you cannot
download the weights without agreeing.
A missing repo and a private one look identical
The Hub answers HTTP 401 for a repo that does not exist, exactly as it does for one that is private. That is deliberate: it stops the API leaking whether a private repo exists. So this Actor does not pretend to know which it hit. The error names both possibilities; the other repos in the same run are still returned.
The Hugging Face API rate limit is respected
Every Hub response carries its own limit: 500 requests per 300 seconds, with the remaining count and seconds-to-reset on every call. This Actor reads both from the response rather than assuming a figure, and stops with a clear warning when the window is exhausted. Results collected before that point remain available, and the remaining allowance is reported in the run summary.
One listing request returns 100 repos, so the window is generous without detail. With Fetch full detail on, every repo costs an extra request, so a 500-repo run with detail can reach the limit.
Use cases
- Model selection. Rank by downloads within a task, then filter by licence and language to get a shortlist you can actually use.
- Licence audit. Feed your deployed model ids into
repo_idsand read the licences back. - Ecosystem tracking. Sort by
createdAtweekly on a task and watch what is new.base_modelshows the lineage. - Dataset discovery. Switch
repo_typetodatasetsand the same sorting and filtering applies to Hugging Face datasets. - Spaces research. Switch to
spacesto see which demos and apps get the likes, and which SDK they are built on. - Competitive research. Filter by
authorto see an organisation's whole published output, with adoption numbers attached.
Hugging Face API scraper compared with the alternatives
| Hub API directly | huggingface_hub library | This Actor | |
|---|---|---|---|
| Code needed | yes, HTTP and paging | yes, Python | no |
| Licence and files in a listing | one extra call per repo, by hand | one extra call per repo, by hand | one switch (detail) |
| Same fields for models, datasets, spaces | no | no | yes |
| Rate limit handling | yours | yours | built in, reported |
| Export to CSV, Excel, JSON | no | no | yes, from the dataset |
| Scheduling and webhooks | no | no | yes, on Apify |
Other Hugging Face scrapers in the Store mostly cover models or datasets only. This one covers models, datasets and spaces with one input and the same output fields.
Pricing
Pay per event:
- Run start: $0.001 per run, including runs that return nothing.
- Repo returned: $0.001 per model, dataset or space in the dataset.
So 1,000 repos cost about $1.00 plus the start fee. A search that finds nothing costs only the start fee. On the free Apify plan each run returns up to 10 repos.
FAQ
Do I need a Hugging Face API key or token?
No. Public models, datasets and spaces need no token. Supply one only if you need private or gated repos you have access to; it is sent as a bearer token and never stored in the output. The rate limit is the same either way.
Why are some licences empty?
Because the listing call does not return the model card. Turn on detail, or
use repo_ids, and the licence is read from the card.
Is downloads_30d all-time downloads?
No. It is the Hub's rolling 30-day count. There is no all-time figure in the Hub API.
What happens when a search finds nothing?
The run succeeds with an empty dataset and an errors record saying nothing
matched. You pay only the run start.
Can I get more than 3,000 repos?
One run returns up to 3,000. Split larger jobs by task, author or repo type.
How are languages decided?
Tags on the Hub are freeform and inconsistent. languages prefers the model
card's own language field and falls back to language:-prefixed tags,
because most repos declare a bare en tag that carries no reliable meaning on
its own.