# Hugging Face Scraper - Models, Datasets and Spaces (`turboextract/huggingface-models`) Actor

Export Hugging Face models, datasets or Spaces by keyword, task, author or library: downloads, likes, trending score, task, library, license, languages, gated status, base model, tags and dates. Find trending open-source AI fast. No API key.

- **URL**: https://apify.com/turboextract/huggingface-models.md
- **Developed by:** [Moses Ndambuki](https://apify.com/turboextract) (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

$0.50 / 1,000 item delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 and Spaces with Downloads and Likes

**Export Hugging Face models, datasets or Spaces by keyword, task, author or library, with downloads, likes, trending score, task, library, license, languages, gated status, base model, arXiv papers, tags and dates.** Find what's trending in open-source AI, track a lab's releases, or build a model catalog. No API key.

In one test, the trending text-generation models returned 120 rows in about 4 seconds.

***

### Who this is for

- **AI engineers and researchers** tracking new open models
- **AI startups and investors** watching which labs and models gain traction
- **Developer marketers** finding models that use their library or platform
- **Analysts and journalists** reporting on open-source AI
- **Catalog and directory builders** listing models, datasets and demos

***

### What you get

```json
{
  "id": "maxwell-model/Maxwell-V1-Flash",
  "type": "model",
  "author": "maxwell-model",
  "url": "https://huggingface.co/maxwell-model/Maxwell-V1-Flash",
  "downloads": 3639,
  "downloadsAllTime": 3639,
  "likes": 377,
  "trendingScore": 120,
  "task": "text-generation",
  "license": "apache-2.0",
  "gated": false,
  "tags": ["safetensors", "moe", "text-generation", "conversational"],
  "createdAt": "2026-10-13T07:53:39.000Z",
  "lastModified": "2026-11-14T03:50:21.000Z"
}
```

***

### How it works

```mermaid
flowchart LR
    A[Keyword] --> D[Hugging Face Hub API]
    B[Task or library] --> D
    C[Authors] --> D
    D --> E[Filter: downloads]
    E --> F[Model, dataset or Space rows]
```

***

### Quick start

1. Click **Try for free**.
2. Pick **Type**: models, datasets or Spaces.
3. Add a **Keyword**, **Task** like `text-generation`, **Library** like `gguf`, or **Authors** like `mistralai`.
4. Pick **Sort**: trending, most downloads, most likes, newest or recently updated.
5. Click **Start**, then export to CSV, JSON, Excel or Google Sheets.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~huggingface-models/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "models", "task": "text-to-image", "sort": "downloads", "maxResults": 200}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/huggingface-models").call(run_input={
    "authors": ["meta-llama", "mistralai", "Qwen"],
    "sort": "createdAt",
})
for m in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(m["id"], m["downloads"], m["likes"])
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `type` | models | Models, datasets or Spaces |
| `search` | – | Keyword in names |
| `authors` | – | Users or organizations |
| `task` | – | Model task, like text-generation |
| `library` | – | Model library, like transformers |
| `sort` | trending | Trending, downloads, likes, newest, updated |
| `minDownloads` | 0 | 30-day downloads floor |
| `maxResults` | 50 | Total cap per run |

***

### Pricing

**$0.0005 per item delivered.** 1,000 models cost $0.50.

| Option | 1,000 models |
|---|---|
| **Hugging Face Scraper** | **$0.50** |
| AI market intelligence tools | $100+ a month |

***

### Use cases

- **Trend watch**: the 100 trending models every morning
- **Lab tracking**: new releases from the labs you follow
- **Library adoption**: count models using `gguf`, `mlx` or your own library
- **Dataset discovery**: the most downloaded datasets for a task
- **Demo hunting**: the most liked Spaces for a keyword

***

### Tips

- `downloads` covers the last 30 days. `downloadsAllTime` is the total.
- Task names match the Hub filters, like `automatic-speech-recognition` or `image-text-to-text`.
- Spaces have no downloads, so they sort by likes.
- `gated` means users must accept terms before downloading.

***

### Pairs well with

- [GitHub Trending Repos](https://apify.com/Turboextract/github-trending-repos): the code side of new AI projects
- [npm Packages Scraper](https://apify.com/Turboextract/npm-packages): AI SDK adoption by downloads
- [Hacker News Search](https://apify.com/Turboextract/hacker-news-search): what developers say about new models

***

### FAQ

**Do I need a Hugging Face token?** No. The actor reads public Hub data.

**Are private or gated files downloaded?** No. It exports metadata only.

**How fresh is the data?** It is read live on every run.

**Can I get model cards?** Not yet. Tags, license, languages and base models are included.

**Is it legal?** It uses Hugging Face's public Hub API for public repositories.

***

### SEO keywords

Hugging Face scraper, Hugging Face API export, trending AI models, Hugging Face models to CSV, open source LLM tracker, Hugging Face datasets list, Hugging Face Spaces scraper, AI model downloads data, model leaderboard data, AI market research

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/huggingface-models
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

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

What to export.

## `search` (type: `string`):

Search names, like llama, whisper or sentiment.

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

Hugging Face users or orgs, like meta-llama, mistralai or google.

## `task` (type: `string`):

Model task, like text-generation, image-text-to-text, automatic-speech-recognition or text-to-image.

## `library` (type: `string`):

Model library, like transformers, diffusers, gguf or mlx.

## `sort` (type: `string`):

Order of results. Spaces have no downloads, so Most downloads sorts Spaces by likes.

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

Skip items with fewer downloads in the last 30 days.

## `maxResults` (type: `integer`):

Stop after this many items in total.

## Actor input object example

```json
{
  "type": "models",
  "sort": "trendingScore",
  "minDownloads": 0,
  "maxResults": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per model, dataset or Space with downloads, likes, task, license and tags.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/huggingface-models").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("turboextract/huggingface-models").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 '{}' |
apify call turboextract/huggingface-models --silent --output-dataset

```

## MCP server setup

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

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/vBFD4AyIvbGfM0RE5/builds/y3RW3VrjqRrotca7i/openapi.json
