Hugging Face Models Scraper
Search public Hugging Face Hub models or fetch one model repo's public metadata through the Hugging Face Hub API, returning normalized model IDs, authors, tasks, libraries, downloads, likes, licenses, tags, timestamps, URLs, and filenames.
Overview
Hugging Face Models Scraper gives agents a structured route into public Hugging Face Hub model metadata. Search models by keyword and sort by downloads, likes, created date, update time, or trending score, or fetch one exact model repo by ID or URL. The tool normalizes model IDs, authors, Hub URLs, pipeline tasks, library names, license hints, download counts, likes, public/private and gated labels, tags, created and last-modified timestamps, and sibling filenames. It is designed for AI model discovery, LLM ecosystem monitoring, open-source competitive research, model catalog enrichment, leaderboard preparation, DevRel research, and RAG-ready AI tooling inventories.
Last validated: Jul 3, 2026
Playground
Input
mode"search" | "details"default: "search"search = search public Hub models; details = fetch one exact model repo.
sort"downloads" | "likes" | "lastModified" | "createdAt" | "trendingScore"default: "downloads"Sort field for search mode.
limitintegerdefault: 10Maximum model rows to return.
querystringSearch query for search mode, such as llama, bert, diffusion, or sentence-transformers.
model_idstringModel ID or Hugging Face model URL for details mode, such as bert-base-uncased or meta-llama/Llama-3.1-8B-Instruct.
direction"desc" | "asc" | "-1" | "1"default: "desc"Sort direction for search mode.
Output
modestringrequiredMode used for this run
countintegerrequiredNumber of model rows returned
modelobjectExact public Hugging Face model metadata
model.idstringModel repository ID
model.rankintegerResult rank
model.tagsstringComma-separated tags
model.gatedstringGated label when returned
model.likesintegerLike count
model.authorstringAuthor or namespace
model.licensestringLicense tag hint
model.privatebooleanPrivate flag when returned
model.siblingsstringComma-separated public sibling filenames
model.downloadsintegerDownload count
model.model_urlstringHugging Face model URL
model.created_atstringCreated timestamp
model.library_namestringLibrary name
model.pipeline_tagstringPipeline/task tag
model.last_modifiedstringLast modified timestamp
querystringSearch query used
modelsobject[]Public Hugging Face model rows
model_idstringExact model ID used
source_urlstringrequiredHugging Face Hub API URL fetched
Examples
llama-search
{
"mode": "search",
"sort": "downloads",
"limit": 3,
"query": "llama",
"direction": "desc"
}bert-details
{
"mode": "details",
"model_id": "bert-base-uncased"
}Use cases
FAQ
Does Hugging Face Models Scraper require a Hugging Face token?
No. Version 0.1 uses public Hugging Face Hub API endpoints and only returns public metadata visible without account-specific access.
Does it download model weights?
No. It returns metadata and public sibling filenames. It does not download model files, bypass gated repositories, or access private models.
Is this tool affiliated with Hugging Face?
No. Better Fetch is not affiliated with or endorsed by Hugging Face. The logo mark is used only to identify the public target service.
Use it anywhere
MCP (Claude, Cursor, any client)
# Add the Better Fetch MCP connector (or paste the URL into # Claude → Settings → Connectors → Add custom connector): claude mcp add --transport http better-fetch https://betterfetch.co/api/mcp \ --header "Authorization: Bearer bf_your_key_here" # Then ask for the tool by name: huggingface_models_scraper
REST
curl -sS -X POST "https://betterfetch.co/api/tools/huggingface_models_scraper/run" \
-H "Authorization: Bearer bf_your_key_here" \
-H "Content-Type: application/json" \
-d '{"input": {"mode":"search","sort":"downloads","limit":3,"query":"llama","direction":"desc"}}'Run locally
git clone https://github.com/better-fetch/tools/tree/main/tools/huggingface-models-scraper && cd huggingface-models-scraper && npm i
BETTER_FETCH_API_KEY=bf_your_key_here npx bf-tool run --input '{"mode":"search","sort":"downloads","limit":3,"query":"llama","direction":"desc"}'