Skip to content

Hugging Face API: Search datasets

Finds public Hugging Face datasets by name or topic, ordered by downloads, likes, trending score or last update.

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

Result order, for example most_downloaded.

most_downloaded (default)

One of most_downloaded, most_liked, trending, recently_updated.

Query, requiredquery

Topic or dataset name, for example medical questions.

squad

Max Results optionalmax_results

Maximum number of datasets, for example 20.

20 (default)

Whole number from 1 to 100.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "datasets": [    {      "rows": 98169,      "size": "16.3 MB",      "likes": 877,      "tasks": [        "Question answering"      ],      "author": "rajpurkar",      "license": "cc-by-sa-4.0",      "languages": [        "English"      ],      "page_link": "https://huggingface.co/datasets/rajpurkar/squad",      "dataset_name": "SQuAD",      "last_updated": "2024-03-04",      "repository_id": "rajpurkar/squad",      "downloads_last_30_days": 183587    },    {      "rows": null,      "size": "1.9 GB",      "likes": 3,      "tasks": [        "Question answering"      ],      "author": "lmqg",      "license": "cc-by-4.0",      "languages": [        "English"      ],      "page_link": "https://huggingface.co/datasets/lmqg/qa_squadshifts_synthetic",      "dataset_name": "Synthetic QA dataset on SQuADShifts.",      "last_updated": "2023-01-15",      "repository_id": "lmqg/qa_squadshifts_synthetic",      "downloads_last_30_days": 64743    },    {      "rows": 142192,      "size": "17.7 MB",      "likes": 272,      "tasks": [        "Question answering"      ],      "author": "rajpurkar",      "license": "cc-by-sa-4.0",      "languages": [        "English"      ],      "page_link": "https://huggingface.co/datasets/rajpurkar/squad_v2",      "dataset_name": "SQuAD2.0",      "last_updated": "2024-03-04",      "repository_id": "rajpurkar/squad_v2",      "downloads_last_30_days": 48171    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
huggingface.co/search_datasets
Returns
dataset name, author, tasks, rows, size, languages, downloads, likes, last update, license, 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_datasets with the inputs above.

Ask your agent

  • Find the top 15 most downloaded datasets about sentiment analysis in English
  • Which datasets on the Hub are trending right now for speech recognition?
  • Show me recently updated datasets related to medical question answering, limit 30
  • I need the most liked datasets for image captioning with their licenses and sizes
  • List 10 datasets matching legal contract summarization sorted by last update
  • 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/search_models
  • Finds public Hugging Face Spaces demos for a task, with descriptions, likes, running status and update dates.

    huggingface.co/search_spaces
  • 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
  • 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
  • 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 public GitHub repositories by keywords, with an optional language filter and sort order. Returns up to 100 matches.

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

    crates.io/search_crates
  • Searches PyPI by keywords and returns matching packages in relevance order, each with its latest version and that version's release date. Returns up to 100 results.

    pypi.org/search_packages