Hugging Face AI Models, Datasets & Trends Scraper
Pricing
from $0.40 / 1,000 extracted hugging face items
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
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/modelsandhuggingface.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, orcreatedAt. - π 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:
| Parameter | Type | Default | Description |
|---|---|---|---|
resourceType | string | "models" | Resource type to scrape: "models" or "datasets". |
pipelineTag | string | "text-generation" | Filter models by task tag (e.g. text-generation, text-to-image). Leave blank for all. |
searchQuery | string | "" | Optional keyword or architecture filter (e.g. "qwen", "llama", "whisper"). |
sort | string | "downloads" | Metric to sort by: downloads, likes, lastModified, or createdAt. |
maxItems | integer | 100 | Maximum 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