HuggingFace Models Scraper avatar

HuggingFace Models Scraper

Pricing

Pay per usage

Go to Apify Store
HuggingFace Models Scraper

HuggingFace Models Scraper

Scrapes HuggingFace Hub for AI/ML models — trending, most downloaded, by task type, by author. Extracts model name, author, downloads, likes, task category, tags, pipeline tag, last modified, model card URL. Uses the HuggingFace JSON API for reliable structured data extraction.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

alars num

alars num

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Scrape the HuggingFace Hub for AI/ML models and get structured data about trending, most downloaded, and most liked models. Filter by task type (text-generation, image-classification, etc.) or by specific authors/organizations.

Why this Actor?

  • Reliable data — Uses the HuggingFace JSON API (/api/models) instead of HTML scraping, so it won't break when the website UI changes
  • Rich metadata — Extracts downloads, likes, pipeline tags, languages, licenses, library info, model card availability, and more
  • Flexible filtering — Filter by sorting mode, task type, and author in a single run
  • Optional model cards — Fetch full README/model card text for each model when you need descriptions

Use Cases

  • 📊 Market research — Track trending models and their download counts
  • 🏢 Competitive analysis — Monitor models from specific organizations (OpenAI, Meta, Mistral, etc.)
  • 🔍 Model discovery — Find models for specific tasks (text-generation, image-classification, etc.)
  • 📈 Trend tracking — Schedule regular runs to track model popularity over time

Input

ParameterTypeDefaultDescription
modestringtrendingSort mode: trending, downloads, or likes
taskstring(all)Filter by pipeline/task type (e.g. text-generation, image-classification)
authorstring(all)Filter by author/org (e.g. meta-llama, openai, mistralai)
maxItemsinteger100Max models to scrape (1–1000)
includeModelCardbooleanfalseFetch full model card README text for each model

Output

Each dataset item contains:

FieldTypeDescription
modelIdstringFull model identifier (e.g. meta-llama/Llama-3.1-8B)
modelNamestringModel name (last part of ID)
authorstringAuthor/organization
urlstringLink to model page on HuggingFace
downloadsintegerTotal downloads
likesintegerNumber of likes
pipelineTagstringPipeline/task type
tagsarrayAll HuggingFace tags
datasetTagsarrayAssociated datasets
languageTagsarraySupported languages
licensestringLicense identifier
libraryNamestringML library (transformers, diffusers, etc.)
lastModifiedstringLast modification date
createdAtstringCreation date
hasModelCardbooleanWhether a README/model card exists
privatebooleanWhether the model is private
gatedbooleanWhether access requires approval
modelCardstring(optional) Full README text

Example Output

{
"modelId": "meta-llama/Meta-Llama-3.1-8B",
"modelName": "Meta-Llama-3.1-8B",
"author": "meta-llama",
"url": "https://huggingface.co/meta-llama/Meta-Llama-3.1-8B",
"downloads": 8234567,
"likes": 4521,
"pipelineTag": "text-generation",
"tags": ["safetensors", "llama3", "text-generation", "en"],
"languageTags": ["en"],
"license": "llama3.1",
"libraryName": "transformers",
"lastModified": "2024-07-15T10:30:00.000Z",
"createdAt": "2024-07-04T00:00:00.000Z",
"hasModelCard": true,
"private": false,
"gated": true
}

Tips

  • Combine mode + task to find trending models in a specific category
  • Use author to scrape all models from a specific organization
  • Set includeModelCard to true when you need model descriptions, but expect slower runs
  • Use Apify Scheduler for regular tracking runs to build time-series data

Cost

  • ~1 API call per run (no pagination needed for up to 1000 models)
  • Minimal compute — just HTTP + JSON parsing
  • Optional model card fetches add 1 request per model when enabled