HuggingFace Models Scraper
Pricing
from $5.00 / 1,000 results
Go to Apify Store
HuggingFace Models Scraper
Fetches AI model listings from the HuggingFace Hub API. Returns model ID, author, task, downloads, likes, tags, and URL.
Pricing
from $5.00 / 1,000 results
Rating
0.0
(0)
Developer
Ganesh B
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Security
Limited permissionsShare
Fetches AI model listings from the HuggingFace Hub API. Returns model ID, author, task, downloads, likes, tags, and direct URL — ready for dataset export.
What it does
- Queries the public HuggingFace Hub REST API (no auth required)
- Filters by ML task (e.g.
text-generation,image-classification,translation) - Sorts by downloads, likes, or last-modified date
- Paginates automatically until
maxItemsis reached - Outputs one record per model to the Apify dataset
Input
| Field | Type | Default | Description |
|---|---|---|---|
task | string | text-generation | ML task filter (pipeline tag). Leave empty for all tasks. |
sortBy | string | downloads | Sort field: downloads, likes, or lastModified. |
maxItems | integer | 100 | Max models to return. Set to 0 for unlimited. |
Output
Each record contains:
| Field | Description |
|---|---|
model_id | Full model identifier (e.g. meta-llama/Llama-2-7b) |
author | Organization or user who published the model |
task | Primary ML task (pipeline_tag) |
downloads | Total download count |
likes | Number of likes |
last_modified | ISO 8601 date of last update |
tags | Comma-separated model tags |
url | Link to the model page on HuggingFace |
scrapedAt | ISO 8601 timestamp of when the record was fetched |
Quick Start
- Find the actor in Apify Store
- Click Try for free and set your inputs
- Click Start and wait for the run to finish
- Download results as JSON, CSV, or via the API
Sample Output
Each item in the dataset looks like this:
{"model_id": "meta-llama/Llama-3.1-8B-Instruct","author": "meta-llama","task": "text-generation","downloads": 18432100,"likes": 24830,"last_modified": "2024-10-02T14:22:00.000Z","tags": "transformers, llama, text-generation, pytorch, safetensors","url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct","scrapedAt": "2024-11-01T10:00:00.000Z"}
Example use cases
- Track the most-downloaded models in a given ML category
- Monitor new model releases in your area of interest
- Build a research index of available models by task
API
This actor uses the public HuggingFace Hub API:
GET https://huggingface.co/api/models?limit=100&sort=downloads&direction=-1&filter=text-generation&p=0
No authentication is required for public model listings.