# Hugging Face Scraper: Models, Datasets, Spaces (`parselab/huggingface-models-datasets-scraper`) Actor

Scrape the Hugging Face hub for models, datasets and spaces. Get downloads, likes, trend score, parameter count, license, languages, base model, benchmark scores and inference providers. Filter by task, size, license, date and popularity. Export to CSV or Excel.

- **URL**: https://apify.com/parselab/huggingface-models-datasets-scraper.md
- **Developed by:** [ParseLab](https://apify.com/parselab) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hugging Face Scraper: Models, Datasets, Spaces and Benchmarks

This Hugging Face scraper turns the hub into clean rows you can sort, filter and export. Search models, datasets and spaces (the demo apps) by word, author, task, library, license, language or tag and get one row per item with downloads in the last 30 days, downloads of all time, likes, the trend score, size in parameters, license, languages, the base model it was built from, the datasets and papers it cites, the benchmark scores the authors list and the inference providers that serve it.

The model rows answer the questions that teams ask every week: what is rising right now, which models of 8 billion parameters or less are popular, which ones have an open license, which are quantized versions of a base model, which ones can I call through a provider today, and how good is each one on the benchmarks its authors report.

AI engineers, product teams, researchers, investors, tool builders and analysts use it to scout models, track releases and build leaderboards of their own.

### What can you do with this Hugging Face scraper?

- Find the models that are trending now, by task, size or license
- Keep only small models, for example up to 8 billion parameters
- Keep only models with an open license such as Apache 2.0 or MIT
- Find quantized and fine-tuned versions of a base model
- See the benchmark scores that authors list on the model card
- Find models that an inference provider serves
- Look up a list of known models, datasets or spaces by id
- Find datasets by task, language, size and license
- Find spaces by SDK and see the models they use
- Export to CSV or Excel, or send new releases to your own tools

### What data can you extract?

| Mode | One row is | Highlights |
|---|---|---|
| Models | One model | Id, author, link, task, library, license, languages, downloads 30 days and all time, likes, trend score, likes per 1,000 downloads, parameters and size class, precisions, GGUF flag with context length and file size, base models and relation (fine-tune, quantized, adapter or merge), datasets used, papers, gated flag, inference providers, number of spaces, benchmark scores, created and updated dates, age, tags |
| Datasets | One dataset | Id, author, link, license, tasks, modalities, languages, size category, formats, libraries, downloads 30 days and all time, likes, trend score, gated flag, short description, dates, tags |
| Spaces | One space | Id, author, link, live app address, title, short description, SDK, running stage, hardware, license, likes, trend score, models and datasets used, dates, tags |

### How to scrape Hugging Face

1. Choose **Models**, **Datasets** or **Spaces**.
2. Type search words, or exact ids, or leave them empty and use the filters.
3. Add filters: author, task, library, license, language, minimum downloads, size, dates.
4. Choose the order, set **Max Items** and click **Start**.
5. Export the dataset as CSV, Excel or from the Apify console.

### Input example

```json
{
  "mode": "models",
  "searchTerms": ["qwen"],
  "maxParametersBillions": 10,
  "licenses": ["apache-2.0"],
  "sortBy": "trending",
  "maxItems": 100
}
```

### Model output example

```json
{
  "id": "nvidia/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B",
  "task": "automatic-speech-recognition",
  "library": "nemo",
  "license": "other",
  "downloads30d": 38942,
  "likes": 734,
  "trendingScore": 650,
  "parametersBillions": 33.698,
  "sizeClass": "30B to 100B",
  "baseRelation": "finetune",
  "inferenceProviders": ["deepinfra"],
  "benchmarkCount": 8,
  "ageDays": 27
}
```

### How much does it cost to scrape Hugging Face?

You pay per result: $18 per 1,000 rows plus a tiny start fee. The free plan returns up to 10 rows per run.

### Tips for better results

- Downloads are counted over the last 30 days, and the all time count is next to it. A new model has both equal.
- The trend score is the hub's own measure of what is rising now. Sort by it to find new releases that people are using.
- Size is the number of parameters that the model files report. Models that do not list it, such as some quantized files, have an empty size and are dropped by a size filter.
- Search words look in the names of items. Use several words, or an author, for a wider net.
- A task is the hub's name for it, such as text-generation, text-to-image or automatic-speech-recognition. Libraries are names such as transformers, diffusers or gguf.
- Several values in one filter work as alternatives. A word and an author together work as a combination.
- Benchmark scores are the ones that authors list on the model card, and the verified flag says whether the hub verified them. They are not run again by this Actor.
- Inference providers come from the hub and change often. Treat the list as a snapshot.
- Gated items ask you to accept terms before download. Their metadata is public and is included.
- The Actor reads public pages only, so private or deleted items are not returned.

### Who uses this data?

- **AI engineers and product teams** pick and track models for their stack.
- **Researchers** follow releases, datasets and citations.
- **Investors and analysts** measure which models and labs gain adoption.
- **Tool builders** feed catalogs, leaderboards and alerts.
- **Journalists** report on releases and trends in open models.

### Automate and connect

Schedule the Actor every day sorted by newest and send new models to Slack, Google Sheets, Zapier, Make or n8n, or trigger a webhook when a run ends.

### FAQ

**Do I need an account or a login?**
No. The Actor works without any login.

**Does it download model files?**
No. It returns information about models, datasets and spaces, and links to their pages.

**Can I get every model of the hub?**
You can collect as many as match your filters. The hub has millions of items, so use filters or a minimum of downloads to keep runs useful.

**How current is the data?**
The Actor reads the hub when you run it, so counts and trend scores are current.

**What does the trend score mean?**
It is a number from the hub that grows with recent attention to an item. It is useful to compare items on the same day, not across weeks.

**Are benchmark scores comparable between models?**
Only when the benchmark, the settings and the date match. The notes of the authors are not included.

### Legal note

This Actor collects information that is publicly visible on the website. Model, dataset and space licenses belong to their authors and are shown in the rows. Check the source site's terms and your local rules before using the data.

### Support

Missing a field or found a bug? Open an issue from the Actor page.

# Actor input Schema

## `maxItems` (type: `integer`):

Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000.

## `mode` (type: `string`):

Models, datasets or spaces (the demo apps) of the Hugging Face hub.

## `searchTerms` (type: `array`):

Words searched in the names, for example llama, qwen, whisper or embedding. Each word is a separate search. Leave empty to browse by the filters.

## `ids` (type: `array`):

Look up known items by id, for example meta-llama/Llama-3.1-8B. Other search settings are ignored.

## `authors` (type: `array`):

Keep items of these accounts, for example google, meta-llama, mistralai or openai.

## `tasks` (type: `array`):

Models mode. Task names as the hub writes them, for example text-generation, text-to-image, automatic-speech-recognition, feature-extraction.

## `libraries` (type: `array`):

Models mode. For example transformers, diffusers, sentence-transformers, gguf, peft.

## `licenses` (type: `array`):

License names as the hub writes them, for example apache-2.0, mit, llama3.1, cc-by-4.0.

## `languages` (type: `array`):

Language codes, for example en, es, zh, fr, de.

## `extraTags` (type: `array`):

Any other tag that every result must have, for example gguf, safetensors, conversational, text-generation-inference.

## `sortBy` (type: `string`):

Order of the results, largest or newest first.

## `minDownloads` (type: `integer`):

Keep items downloaded at least this many times in the last 30 days.

## `minLikes` (type: `integer`):

Keep items with at least this many likes.

## `minTrendingScore` (type: `integer`):

Keep items with at least this trend score.

## `minParametersBillions` (type: `number`):

Models mode. Keep models with at least this many billions of parameters. Models that do not list their size are dropped.

## `maxParametersBillions` (type: `number`):

Models mode. Keep models with at most this many billions of parameters, for example 8 for models that run on one GPU.

## `createdAfter` (type: `string`):

Keep items created on or after this date, in the form 2026-09-30.

## `updatedAfter` (type: `string`):

Keep items updated on or after this date, in the form 2026-09-30.

## `gated` (type: `string`):

Gated items need you to accept terms before download.

## `onlyWithBenchmarks` (type: `boolean`):

Models mode. Keep models that list evaluation results.

## `onlyWithProviders` (type: `boolean`):

Models mode. Keep models that at least one inference provider serves.

## `includeBenchmarks` (type: `boolean`):

Models mode. Adds up to 15 benchmark scores to each model row.

## Actor input object example

```json
{
  "maxItems": 10,
  "mode": "models",
  "searchTerms": [
    "qwen"
  ],
  "sortBy": "downloads",
  "gated": "any",
  "onlyWithBenchmarks": false,
  "onlyWithProviders": false,
  "includeBenchmarks": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 10,
    "searchTerms": [
        "qwen"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parselab/huggingface-models-datasets-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxItems": 10,
    "searchTerms": ["qwen"],
}

# Run the Actor and wait for it to finish
run = client.actor("parselab/huggingface-models-datasets-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 10,
  "searchTerms": [
    "qwen"
  ]
}' |
apify call parselab/huggingface-models-datasets-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parselab/huggingface-models-datasets-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ql5G75jsqyjlJUDp5/builds/6pZ2Y2oWcntYnUvbv/openapi.json
