Hugging Face Models, Datasets & Spaces Scraper | 2Space avatar

Hugging Face Models, Datasets & Spaces Scraper | 2Space

Pricing

from $0.70 / 1,000 hugging face items scraped

Go to Apify Store
Hugging Face Models, Datasets & Spaces Scraper | 2Space

Hugging Face Models, Datasets & Spaces Scraper | 2Space

Fast Hugging Face Hub scraper for open-source AI models, datasets, and Spaces. Scrapes downloads, likes, pipeline tasks, GGUF/safetensors tags, licenses, authors, and last-modified timestamps.

Pricing

from $0.70 / 1,000 hugging face items scraped

Rating

0.0

(0)

Developer

2Space Group

2Space Group

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Built by 2Space · High-speed, zero-browser Hugging Face scraper, Hugging Face Models API, Hugging Face Datasets scraper, and Hugging Face Spaces metadata extractor engineered for AI agents, MCP clients, ML research teams, and model discovery pipelines.

Apify Actor MCP Ready Zero Browser

Looking for a fast Hugging Face scraper to index open-weight models, training datasets, and interactive Spaces? This Hugging Face Models, Datasets & Spaces scraper queries the official Hugging Face Hub JSON endpoints over direct HTTP to extract structured AI model discovery data—including downloads, likes, licenses, pipeline tags, framework libraries, gating status, and repository timestamps—without headless browser overhead or external LLM API keys.


Key Capabilities & Use Cases

  • AI Model Discovery & Benchmarking: Track trending open-weight models (qwen, llama, deepseek, mistral, flux) sorted by downloads, likes, or recent updates.
  • Dataset Sourcing for Training & Evals: Collect Hugging Face Datasets metadata with license filtering, download counts, and gating flags for RAG, fine-tuning, and evaluation pipelines.
  • Spaces & Demo Tracking: Discover Gradio, Streamlit, Docker, and Static Spaces alongside their SDKs, community likes, and MCP server tags.
  • Flat, Agent-Ready Schema: Every output item uses consistent root scalar fields (repoType, repoId, author, pipelineTag, libraryName, downloads, likes, license, isGated, tags, createdAt, lastModified, url, extractedAt) ready for spreadsheets, SQL warehouses, vector databases, and AI agents.
  • Balanced Multi-Type Extraction: Interleaves results across requested repository types (models, datasets, spaces) and deduplicates by repoType:repoId so combined runs return balanced coverage within maxItems.
  • Empty {} Input Ready: Works immediately with zero configuration—running {} searches "qwen" across ["models", "datasets"] sorted by "downloads" (maxItems: 10, maxCostUsd: 0.25).

Input Parameters

FieldTypeDefaultDescription
repoTypesstring[]["models", "datasets"]Repository types to scrape: "models", "datasets", and/or "spaces".
searchQuerystring"qwen"Search term sent to the Hugging Face Hub API. Leave blank to list top repositories by sort order.
sortBystring"downloads"Sort order: "downloads", "likes", or "lastModified". Spaces automatically fall back to "likes" when "downloads" is chosen.
maxItemsinteger10Maximum number of deduplicated repositories to push and charge (1–10000).
maxCostUsdnumber0.25Pre-charge Pay-Per-Event spending safety cap in USD.

Example JSON Output

Each dataset item contains flat metadata fields:

{
"repoType": "model",
"repoId": "Qwen/Qwen3-4B-Instruct-2507",
"author": "Qwen",
"pipelineTag": "text-generation",
"libraryName": "transformers",
"downloads": 16901693,
"likes": 1055,
"license": "apache-2.0",
"isGated": false,
"tags": [
"transformers",
"safetensors",
"qwen3",
"text-generation",
"license:apache-2.0"
],
"createdAt": "2025-08-05T10:58:03.000Z",
"lastModified": "2026-10-28T03:06:22.000Z",
"url": "https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507",
"extractedAt": "2026-12-03T03:45:00.000Z"
}

A detailed run summary is also written to the default Key-Value Store under RUN_DIAGNOSTICS, recording endpoint status codes, fetched counts, deduplication totals, and cost-limit flags.


1-Prompt MCP Setup & AI Agent Integration

Connect 2space/huggingface-models-datasets-scraper to Claude Desktop, Cursor, ChatGPT, or any MCP-compatible client using the Apify MCP endpoint:

https://mcp.apify.com?tools=2space/huggingface-models-datasets-scraper

Or add it to your mcpServers JSON configuration:

{
"mcpServers": {
"apify-huggingface-scraper": {
"url": "https://mcp.apify.com?tools=2space/huggingface-models-datasets-scraper",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

1-Prompt Example:

"Use 2space/huggingface-models-datasets-scraper to find the top 10 most downloaded qwen models and datasets on Hugging Face with their licenses, download counts, and pipeline tags."

Direct REST API (n8n, Make, Zapier, Custom Scripts)

POST https://api.apify.com/v2/acts/2space~huggingface-models-datasets-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN

Pricing & No Data, No Charge Guarantee

  • Primary Event: hf-item-scraped (count: 1 per validated pushed repository).
  • No Data, No Charge: Actor.charge() is invoked strictly after Actor.pushData() succeeds for a validated item. Failed or empty queries never incur item charges.
  • Spending Controls: Both maxItems and maxCostUsd are enforced prior to pushing/charging, and Apify's eventChargeLimitReached stops execution gracefully once your spending limit is reached.