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

Fetch Cat

Fetch Cat

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Export public Hugging Face dataset catalog metadata from search keywords or exact dataset IDs. Get downloads, likes, licenses, tags and access flags for dataset discovery, research and enrichment—not the dataset's underlying rows or files.

Quick start

  1. Enter a search query or one or more exact dataset IDs in the Input tab.
  2. Start with a small result limit, then run the Actor.
  3. Open the Dataset tab and export JSON, CSV or Excel.
{
"searchQueries": ["finance"],
"maxItems": 20,
"sort": "downloads"
}

No Hugging Face login or token is required. At least one non-empty query or dataset ID is required. Form examples are not supplied automatically to API calls.

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

Ready-to-run examples

Choose a public example to see its settings before starting a run:

What you get

One public catalog-metadata row per returned dataset, with its stable ID, source URL, available popularity and revision fields, tags and access metadata. Optional public card text can be included. This exports descriptions of datasets rather than their underlying rows or files, and unknown fields remain null or empty arrays.

Who is it for?

  • ML and data researchers assembling candidate dataset lists for later inspection.
  • Evaluation and RAG teams reviewing topic and task metadata before choosing data separately.
  • Data-governance reviewers collecting reported license and access metadata for source review.
  • Catalog-data engineers enriching known IDs and comparing their own metadata exports.

How you can use the data

  • Prepare a finance-dataset shortlist. Use the existing finance search with a small cap and downloads sorting. Keep datasetId, url, downloads, likes and tags together without interpreting popularity as a quality or suitability score.
  • Enrich a known dataset pair. Use the existing squad and HuggingFaceH4/ultrachat_200k IDs with a two-record cap and card text enabled. Exact IDs run before searches under the shared cap, with duplicate suppression enabled by default.
  • Review recently modified medical-imaging metadata. Use the existing medical imaging query with last-modified sorting, retaining revision, dates and source tags. Sort applies per search rather than making a globally ranked merged list.
  • Compare your own catalog snapshots. Join dataset IDs with last-modified dates, revisions and collection times in your own system. Inspect reported license/access tags at the source before making a use decision. Catalog flags do not grant access to protected content, and the Actor does not download dataset contents or send change alerts.

Input settings

Exact dataset lookup

{
"datasetIds": ["squad", "HuggingFaceH4/ultrachat_200k"],
"maxItems": 2,
"includeCardData": true
}

Recently modified medical imaging datasets

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

More input configuration

SettingJSON keyPurpose
Search queriessearchQueriesKeywords for public catalog searches.
Dataset IDsdatasetIdsExact IDs. Processed before searches.
Maximum dataset recordsmaxItemsShared result limit. Form default 20, omitted API value 50.
Sort ordersortDescending order per search. Default downloads.
Minimum downloadsminDownloadsExclude records below a download threshold.
Minimum likesminLikesExclude records below a like threshold.
Include dataset card READMEincludeCardDataAdd public card text. Default false.
De-duplicate resultsdedupeSkip repeated IDs. Default true.

Provide queries, IDs, or both. Detailed choices and limitations are in each field's help. Search results are combined in input order, not globally sorted. Keep dedupe enabled for a predictable unique-result limit.

Output data

One dataset metadata record is saved per result. Missing source values remain null or empty arrays. Optional cardData appears only when requested. The following is a shape-only illustration, not a measured dataset snapshot:

{
"datasetId": "squad",
"url": "https://huggingface.co/datasets/squad",
"author": null,
"name": "squad",
"downloads": null,
"likes": null,
"license": null,
"tags": [],
"languages": [],
"tasks": [],
"accessStatus": "unknown",
"sourceQuery": "dataset:squad",
"schemaVersion": "1.0.0"
}
FieldsMeaning
datasetId, url, author, nameStable catalog identity and parsed owner/name.
description, descriptionTruncatedDescription, capped at 2000 characters, and truncation flag.
downloads, likes, trendingScoreSource popularity metrics when available.
createdAt, lastModified, shaSource timestamps and revision.
gated, private, disabled, accessStatusAccess metadata, not permission to download protected content.
tagsRaw source tags.
license, languages, tasks, sizeCategoryConvenience values derived from tags.
formats, libraries, modalities, regionAdditional tag-derived metadata.
cardDataOptional public README text, capped at 12000 characters. Null if unavailable.
sourceQuery, fetchedAt, schemaVersionInput provenance, collection time and record schema version.

Per-source status, found/saved counts and available error details are stored separately in the DIAGNOSTICS key-value record, not in dataset rows.

Download your results

Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See Apify's download and export guide for the available formats and field options.

Pricing

Pay-per-event pricing charges start once when a run begins and item for each saved dataset-metadata row. Diagnostic entries remain separate from saved results.

See the Pricing tab for current rates and discounts.

Tips for best results

  • Start with a small shared cap and one query. Exact IDs are processed before searches, so account for them when combining input types.
  • Keep card text off unless it is useful. Card retrieval adds work even for candidates later excluded by download or like thresholds.
  • Keep duplicate suppression enabled for a predictable unique-result cap. Repeated IDs can otherwise affect your export.
  • Review source tags alongside convenience fields. License, language and task fields are derived from available tags rather than independent assessments.
  • Check DIAGNOSTICS before interpreting missing records. A failed request does not establish privacy or deletion.

Limits and caveats

Only public catalog metadata and optional public card text are collected. Underlying dataset rows and files, private-content access and gated-content bypass are outside scope. Access flags do not grant permission or technical access to protected content, and reported licenses are not a legal assessment of permitted use.

Source tags, metrics and cards can be absent or change. Descriptions are capped at two thousand characters and requested card text at twelve thousand, with unavailable cards null. Search input order is preserved and sorting applies separately to each search rather than globally across the merged results.

A search can complete without matches. Upstream request failures can produce partial output or a failed run, and missing values remain null or empty arrays. DIAGNOSTICS stores per-source status, counts and available error details separately from dataset rows. Your own workflow handles repeat-snapshot comparisons, alerts and any downstream data acquisition.

Automation and integrations

Save your settings for next time

Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.

Run on a schedule

Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

Send results to your other tools

Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.

For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.

For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.

cURL

curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~hugging-face-datasets-scraper/runs' \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H 'Content-Type: application/json' \
--data @- <<'JSON'
{
"searchQueries": [
"finance"
],
"maxItems": 20,
"sort": "downloads"
}
JSON

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"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/hugging-face-datasets-scraper').call(run_input={'searchQueries': ['finance'], 'maxItems': 20, 'sort': 'downloads'})
print(client.dataset(run['defaultDatasetId']).list_items().items)

API usage notes

The asynchronous REST call returns a run record. Once it completes, use its defaultDatasetId to retrieve results.

MCP and AI agents notes

An agent should supply a non-empty query or exact ID and a small explicit maxItems, then read the dataset rather than treating the run ID as the results. This Actor does not download training data.

MCP and AI agents

You can ask your AI assistant to collect data with Hugging Face Datasets Scraper and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.

Easier setup with an Apify plugin

If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

Use Apify AI in Console

Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's Hugging Face Datasets Scraper. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

Choose your assistant

Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

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

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

Use Apify's general server

Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use Hugging Face Datasets Scraper by Fetch Cat, or give it the identifier fetch_cat/hugging-face-datasets-scraper.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

Example requests

  • “Use Fetch Cat’s Hugging Face Datasets Scraper to collect up to 5 finance dataset catalog records sorted by downloads, with card text off. Show dataset IDs, source links and available popularity and license metadata without downloading data rows.”
  • “Retrieve catalog records for squad and HuggingFaceH4/ultrachat_200k with a shared cap of 2 and public card text enabled. Keep access flags and missing values explicit without requesting gated or private contents.”
  • “Collect up to 5 medical imaging dataset catalog records sorted by last modification. Keep dataset IDs, revisions and dates for my own later comparison, and check diagnostics before interpreting missing records.”

Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.

Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.

Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

Other ways for agents to pay

Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.

FAQ

Is this a Hugging Face datasets API alternative?

It provides an Apify-hosted workflow for exporting public catalog metadata. It does not replace the Hugging Face datasets library or download dataset contents.

Can I download dataset rows or private data?

No. The output is catalog metadata and optional publicly available card text. Access flags do not grant access to gated or private contents.

Why are fields empty or results missing?

The source may omit metadata, or your search and thresholds may exclude candidates. Try a smaller, broader query without thresholds and inspect the DIAGNOSTICS record. A failed request is not proof that a dataset is private or deleted.

Can I export CSV or use this from an AI agent?

Yes. Export from Apify's Dataset tab or read results through its API. MCP clients can use the official Apify server with the bounded input shown above.

How is a run charged?

There is a start event and an item event for each saved metadata row. Check the Pricing tab for current rates before running larger inputs.

Support and feedback

For custom additions or integrations, email hello@fetchcat.dev.

Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥