HuggingFace Models Scraper avatar

HuggingFace Models Scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
HuggingFace Models Scraper

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

Ganesh B

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Security

Limited permissions

Share

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 maxItems is reached
  • Outputs one record per model to the Apify dataset

Input

FieldTypeDefaultDescription
taskstringtext-generationML task filter (pipeline tag). Leave empty for all tasks.
sortBystringdownloadsSort field: downloads, likes, or lastModified.
maxItemsinteger100Max models to return. Set to 0 for unlimited.

Output

Each record contains:

FieldDescription
model_idFull model identifier (e.g. meta-llama/Llama-2-7b)
authorOrganization or user who published the model
taskPrimary ML task (pipeline_tag)
downloadsTotal download count
likesNumber of likes
last_modifiedISO 8601 date of last update
tagsComma-separated model tags
urlLink to the model page on HuggingFace
scrapedAtISO 8601 timestamp of when the record was fetched

Quick Start

  1. Find the actor in Apify Store
  2. Click Try for free and set your inputs
  3. Click Start and wait for the run to finish
  4. 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.