Hugging Face AI Models, Datasets & Trends Scraper avatar

Hugging Face AI Models, Datasets & Trends Scraper

Pricing

from $0.40 / 1,000 extracted hugging face items

Go to Apify Store
Hugging Face AI Models, Datasets & Trends Scraper

Hugging Face AI Models, Datasets & Trends Scraper

Extract trending AI models, LLMs, datasets, download counts, like velocity, tags, and pipeline architectures via direct Hugging Face REST API.

Pricing

from $0.40 / 1,000 extracted hugging face items

Rating

0.0

(0)

Developer

Morgane Flamant

Morgane Flamant

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

πŸ€— Hugging Face AI Models, Datasets & Trends Scraper

A high-performance Apify Actor built in Python to extract trending AI models, open-source LLMs, datasets, download velocity, upvote counts, task pipeline tags, and architecture metadata directly from Hugging Face's REST APIs.


🌟 Key Features

  • ⚑ Direct REST API: Hits official Hugging Face API endpoints (huggingface.co/api/models and huggingface.co/api/datasets) directly. No headless browser overhead (~128MB RAM footprint).
  • πŸ€– Models & Datasets Support: Seamlessly switch between extracting machine learning models or open-source datasets.
  • 🏷️ Task & Pipeline Filtering: Filter AI models by task pipeline (e.g., text-generation, text-to-image, automatic-speech-recognition, zero-shot-classification).
  • πŸ“ˆ Popularity & Recency Metrics: Sort records by downloads, likes, lastModified, or createdAt.
  • πŸ“Š Store-Ready Output: Automatically pushes Pydantic-validated dataset records with built-in tabular overview support.

πŸ“₯ Input Parameters

The Actor accepts the following input settings in JSON format:

ParameterTypeDefaultDescription
resourceTypestring"models"Resource type to scrape: "models" or "datasets".
pipelineTagstring"text-generation"Filter models by task tag (e.g. text-generation, text-to-image). Leave blank for all.
searchQuerystring""Optional keyword or architecture filter (e.g. "qwen", "llama", "whisper").
sortstring"downloads"Metric to sort by: downloads, likes, lastModified, or createdAt.
maxItemsinteger100Maximum number of records to retrieve.

Example Input JSON

{
"resourceType": "models",
"pipelineTag": "text-generation",
"searchQuery": "llama",
"sort": "downloads",
"maxItems": 50
}

πŸ“€ Output Format

Each item pushed to the output dataset follows a structured schema:

{
"id": "meta-llama/Llama-3.1-8B-Instruct",
"item_type": "model",
"author": "meta-llama",
"repo_name": "Llama-3.1-8B-Instruct",
"hf_url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct",
"pipeline_tag": "text-generation",
"downloads_count": 8421090,
"likes_count": 4820,
"library_name": "transformers",
"tags": ["transformers", "llama", "text-generation", "en", "license:llama3.1"],
"created_at": "2024-07-23T12:00:00.000Z",
"last_modified": "2024-08-20T14:30:00.000Z",
"is_private": false,
"is_gated": true
}

πŸš€ Running Locally

Step 1: Install Dependencies

$pip install -r requirements.txt

Step 2: Run the Actor

$python -m src.main

🐳 Docker Support

To build and run containerized:

docker build -t huggingface-scraper .
docker run -it huggingface-scraper