Hugging Face Hub Scraper avatar

Hugging Face Hub Scraper

Pricing

from $0.74 / 1,000 items

Go to Apify Store
Hugging Face Hub Scraper

Hugging Face Hub Scraper

Search Hugging Face and export models, datasets and spaces with downloads, likes, tags, pipeline task, licence and timestamps. Point it at a search term or an author, optionally enrich each row with the model card metadata. No API key, no login.

Pricing

from $0.74 / 1,000 items

Rating

0.0

(0)

Developer

rainminer

rainminer

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Export models, datasets and spaces from Hugging Face with the numbers that decide what to use: downloads, likes, task, licence and when the item last changed. Search by term or by author, or list the most downloaded items with no search term at all.

Hugging Face publishes a public API for its Hub. This Actor turns that into one dataset row per item, so a spreadsheet, a dashboard or a scheduled run can track the ecosystem without writing API code.

What you get

One row per model, dataset or space:

  • kind: model, dataset or space
  • id and author, plus the public Hub url
  • downloads for the last 30 days and likes
  • pipelineTag (the task, such as text-generation) and libraryName
  • license, read from the model card or the licence tag
  • createdAt and lastModified
  • tags: every tag on the item
  • gated, private and, when you turn on enrichment, storageBytes
  • matchedQuery, so you know which search term produced the row

A SUMMARY record in the key-value store reports the queries used, item and request counts, and any term that returned nothing.

Use cases

  1. Track which text-to-image models gained downloads this week.
  2. Watch a competitor organisation's new releases by passing author.
  3. Build a shortlist of Apache-2.0 models for a commercial project.
  4. Monitor datasets for a domain, such as code or medical text.
  5. Feed a model catalogue into an internal AI platform inventory.
  6. Find recently created spaces that solve a problem you are scoping.
  7. Compare download velocity before and after a model release.
  8. Audit which licences your team actually depends on.
  9. Watch for gated releases that need an access request.
  10. Build a leaderboard of models by likes for a niche task tag.

Input

FieldDefaultMeaning
queriesrequiredSearch terms. * lists top items with no filter
kindsmodel, datasetWhich Hub objects to collect, plus space
authoremptyRestrict to one namespace, for example meta-llama
filteremptyKeep only items with this tag, for example license:apache-2.0
sortdownloadsdownloads, likes, lastModified or createdAt
limitPerQuery50Items kept per term and per type, up to 1000
enrichfalseFetch each item again for licence, gated status and storage size

How much it costs

EventPriceCharged when
Item$0.00099 per itemA model, dataset or space is written to the dataset
Enriched item$0.00099 per itemOnly when Enrich is on, once per item fetched again for its card metadata

A default run on one term with 50 models costs about five cents and returns 50 rows. The Hub API is free to read, so no proxy or platform usage is billed on top of these events.

Output example

{
"kind": "model",
"id": "meta-llama/Llama-3.1-8B-Instruct",
"author": "meta-llama",
"url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct",
"downloads": 4113897,
"likes": 9041,
"pipelineTag": "text-generation",
"libraryName": "transformers",
"license": "llama3.1",
"createdAt": "2024-07-18T08:56:00.000Z",
"tags": ["transformers", "safetensors", "license:llama3.1"],
"matchedQuery": "llama"
}

Limits worth knowing before you buy

  • downloads is the last-30-days figure Hugging Face reports, not an all-time total. The all-time number is only available per model page.
  • The list endpoint omits licence, gated status and storage size. Turn on Enrich to fill them, at one extra event and one extra request per item.
  • Search is Hugging Face's own relevance and prefix matching, so a very short term returns a very large result set. limitPerQuery is what caps it.
  • Paging follows the cursor in the Link response header. The Hub ignores the offset query parameter, so a run that asked for 1000 items used to stop at about 100 per term and type. Each page is one request, and limitPerQuery is honoured up to the documented 1000.
  • Spaces expose fewer fields than models. Fields a space does not have stay null rather than being filled with a guess.
  • Private items only appear if you pass credentials, which this Actor does not accept. It reads public data only.

Local development

yarn install
yarn test
yarn start

Tests run against payload shapes recorded from the live API on 2026-11-19 and need no network access.