Hugging Face Datasets Scraper avatar

Hugging Face Datasets Scraper

Pricing

from $0.30 / 1,000 dataset metadata records

Go to Apify Store
Hugging Face Datasets Scraper

Hugging Face Datasets Scraper

Scrape public Hugging Face dataset metadata, tags, access flags, downloads, likes, and recency signals.

Pricing

from $0.30 / 1,000 dataset metadata records

Rating

0.0

(0)

Developer

Hanna Nosova

Hanna Nosova

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Export public Hugging Face dataset catalog metadata to structured datasets. Use it to find training/RAG datasets, compare licenses and tags, monitor updates, or enrich a list of known dataset IDs.

At a glance

  • Primary job: Search Hugging Face datasets and save clean metadata rows.
  • Input: Search keywords and/or exact dataset IDs, plus result limits and filters.
  • Output: One row per dataset with IDs, URL, author, downloads, likes, tags, license/task/format fields, access flags, timestamps, and diagnostics.
  • Best for: AI teams, data scientists, compliance reviewers, research analysts, RAG builders, and fine-tuning dataset discovery.

Common workflows

  • Dataset discovery: Search topics such as finance, medical imaging, or instruction tuning and sort by downloads, likes, recency, or trending score.
  • License review prep: Export raw Hugging Face tags plus parsed license, task, language, size, format, and library fields for spreadsheet review.
  • Known-ID enrichment: Provide exact dataset IDs such as squad or HuggingFaceH4/ultrachat_200k and receive current public metadata.
  • Monitoring: Schedule repeat runs with sort: "lastModified" and compare output datasets over time.

Input recipes

Popular finance datasets

{
"searchQueries": ["finance"],
"maxItems": 20,
"sort": "downloads",
"dedupe": true
}

Exact dataset lookup

{
"datasetIds": ["squad", "HuggingFaceH4/ultrachat_200k"],
"maxItems": 5,
"dedupe": true
}

Recently modified medical imaging datasets

{
"searchQueries": ["medical imaging"],
"maxItems": 20,
"sort": "lastModified",
"dedupe": true
}

What data can you extract?

FieldDescription
datasetIdStable Hugging Face dataset ID, for example squad or org/name.
urlDataset page URL on Hugging Face.
author, nameParsed owner and repository name when available.
descriptionPublic API description, truncated when very long.
downloads, likes, trendingScorePopularity and trending metrics exposed by Hugging Face.
createdAt, lastModified, shaRepository recency and revision metadata.
gated, private, disabled, accessStatusAccess flags; the Actor does not bypass gated/private access.
tagsRaw Hugging Face tags preserved for auditability.
license, languages, tasks, sizeCategory, formats, libraries, modalities, regionParsed convenience fields from raw tags.
cardDataOptional public README dataset card text, truncated and off by default.
sourceQuery, fetchedAt, schemaVersionRun provenance fields.

Input configuration

SettingJSON keyUse it forExample
Search queriessearchQueriesFind datasets by public catalog keyword.["finance"]
Dataset IDsdatasetIdsFetch exact dataset metadata.["squad"]
Maximum recordsmaxItemsCap output rows and cost.50
Sort ordersortRank search results."downloads"
Minimum downloadsminDownloadsSkip low-download records.1000
Minimum likesminLikesSkip low-like records.10
Include dataset cardincludeCardDataAdd bounded README text for saved records.false
De-duplicatededupeSkip repeated dataset IDs across inputs.true

Example input

{
"searchQueries": ["finance"],
"datasetIds": ["squad"],
"maxItems": 25,
"sort": "downloads",
"dedupe": true
}

Example output

{
"datasetId": "squad",
"url": "https://huggingface.co/datasets/squad",
"author": null,
"name": "squad",
"description": "Stanford Question Answering Dataset...",
"descriptionTruncated": false,
"downloads": 12345,
"likes": 100,
"trendingScore": 0,
"createdAt": "2022-03-02T00:00:00.000Z",
"lastModified": "2024-01-01T00:00:00.000Z",
"sha": "...",
"gated": false,
"private": false,
"disabled": false,
"accessStatus": "public",
"tags": ["task_categories:question-answering", "language:en"],
"license": null,
"languages": ["en"],
"tasks": ["question-answering"],
"formats": ["parquet"],
"sourceQuery": "dataset:squad",
"fetchedAt": "2026-07-17T00:00:00.000Z",
"schemaVersion": "1.0.0"
}

Pricing

EventPriceCharged when
Run start$0.005 per runOnce when the Actor starts.
Dataset metadata recordTiered from $0.000575 down to $0.00014 per saved dataset rowEach dataset metadata item is saved.

Store discount tiers for dataset metadata records: Free $0.000575, Bronze $0.0005, Silver $0.00039, Gold $0.0003, Platinum $0.0002, Diamond $0.00014.

Tips for best results

  • Start small: Use maxItems: 10-50 while tuning queries.
  • Use focused terms: Domain phrases such as legal documents or medical imaging are usually better than one-word broad searches.
  • Leave card data off by default: Enable includeCardData only when you need README text because it adds one request per saved item.
  • Respect access flags: Gated datasets are marked; this Actor does not fetch gated contents.

API usage

Node.js:

import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("fetch_cat/hugging-face-datasets-scraper").call({
searchQueries: ["finance"],
maxItems: 20,
sort: "downloads"
});
console.log(run.defaultDatasetId);

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("fetch_cat/hugging-face-datasets-scraper").call(run_input={
"searchQueries": ["finance"],
"maxItems": 20,
"sort": "downloads",
})
print(run["defaultDatasetId"])

cURL:

curl -X POST "https://api.apify.com/v2/acts/fetch_cat~hugging-face-datasets-scraper/runs?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries":["finance"],"maxItems":20,"sort":"downloads"}'

MCP and AI agents

Use this Actor from MCP-compatible tools through the official Apify MCP Server.

$claude mcp add --transport http apify "https://mcp.apify.com?tools=fetch_cat/hugging-face-datasets-scraper"
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=fetch_cat/hugging-face-datasets-scraper"
}
}
}

Example prompt: "Find 20 popular finance datasets on Hugging Face and summarize their licenses, tasks, and access flags."

Limits and caveats

  • Public metadata only: The Actor uses public Hugging Face catalog endpoints and public README files only.
  • No gated-content bypass: Gated/private/disabled flags are exported as metadata; protected dataset contents are not downloaded.
  • Source changes: Hugging Face fields and tags can change over time.
  • Diagnostics: Per-source run diagnostics are stored in the DIAGNOSTICS key-value record.

Legality and responsible use

Process only data you are allowed to access. Follow Hugging Face terms, dataset licenses, Apify's terms, and applicable laws.

FAQ

Can it download dataset rows?

No. This Actor is for public metadata discovery and monitoring, not dataset content extraction.

Why are some fields empty?

Hugging Face does not expose every tag or metric for every dataset. Missing fields are left empty instead of guessed.

Can I export results?

Yes. Apify datasets support JSON, CSV, Excel, XML, RSS, and API access.

Support

Open an issue from the Actor page if a run fails or output looks wrong. Include the run ID or URL, input JSON, expected output, actual output, and one reproducible public URL such as https://huggingface.co/datasets/squad.