Skip to content

Hugging Face API: Search models

Finds public Hugging Face models by search words, with an optional task and sort order. License is null when the model does not publish one.

huggingface.co (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Hugging Face.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Sort optionalsort

Order of results; for example "trending". Defaults to most_downloaded.

most_downloaded (default)

One of most_downloaded, most_liked, trending, recently_updated.

Task optionaltask

Task in plain words, such as "text generation", "image classification", or "sentiment analysis". Defaults to all tasks.

all tasks (default)

Query, requiredquery

Search words for model names, such as "whisper" or "sentiment analysis".

llama

Max Results optionalmax_results

Maximum models to return, for example 20; at most 100.

100

Whole number from 1 to 100. Default 20.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "models": [    {      "task": "Text Generation",      "likes": 8563,      "author": "meta-llama",      "license": "llama3.1",      "model_name": "Llama-3.1-8B-Instruct",      "repository_id": "meta-llama/Llama-3.1-8B-Instruct",      "model_page_link": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct",      "last_updated_date": "2024-09-25",      "downloads_last_30_days": 4864172    },    {      "task": "Text Generation",      "likes": 1883,      "author": "meta-llama",      "license": "llama3.2",      "model_name": "Llama-3.2-1B-Instruct",      "repository_id": "meta-llama/Llama-3.2-1B-Instruct",      "model_page_link": "https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct",      "last_updated_date": "2024-10-24",      "downloads_last_30_days": 3970913    },    {      "task": "Text Classification",      "likes": 428,      "author": "meta-llama",      "license": "llama3.1",      "model_name": "Prompt-Guard-86M",      "repository_id": "meta-llama/Prompt-Guard-86M",      "model_page_link": "https://huggingface.co/meta-llama/Prompt-Guard-86M",      "last_updated_date": "2025-11-12",      "downloads_last_30_days": 2376548    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
huggingface.co/search_models
Returns
model name, author, task, downloads last 30 days, likes, last updated date, license, model page link, repository ID

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method huggingface.co/search_models with the inputs above.

Ask your agent

  • Find the most downloaded speech recognition models on Hugging Face, top 10 please
  • Which open models for image classification are trending right now?
  • I need text generation models with an Apache license, sorted by likes
  • Show me recently updated sentiment analysis models on huggingface.co
  • List 50 models matching whisper, ordered by most liked
  • Finds public Hugging Face datasets by name or topic, ordered by downloads, likes, trending score or last update.

    huggingface.co/search_datasets
  • Lists Hugging Face models in trending order this week, optionally filtered to one task. Downloads cover the last 30 days.

    huggingface.co/list_trending_models
  • Finds public Hugging Face Spaces demos for a task, with descriptions, likes, running status and update dates.

    huggingface.co/search_spaces
  • Looks up one Hugging Face model by name, repository ID or link and returns its public details, model card summary and file sizes. For a name, the first matching model is returned.

    huggingface.co/get_model
  • Lists public OpenRouter models with per-million-token prices, context size, input types, release date and model page. Results can be sorted by newest, input price or popularity.

    openrouter.ai/list_models
  • Finds public Kaggle datasets on a topic, with size, file formats, usability, popularity and license. Lists at most 100 results in Kaggle's order; files are not downloaded.

    kaggle.com/search_datasets
  • Finds Rust crates on crates.io by keywords, sorted by relevance, total downloads, recent downloads, or newest creation.

    crates.io/search_crates
  • Searches public Bluesky posts for words, optionally ordered by latest or top and filtered by date, author or language. Search indexing may lag behind new posts.

    bsky.app/search_posts