# Hugging Face dataset search API

Search Hugging Face Dataset via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including dataset identifier, short dataset description, task categories, hub community like count, and size category to filter open-license training data, discover parquet-ready benchmarks, and catalog organization releases.

Documentation: https://openany.si/hugging-face/hugging-face-dataset-search-api/1cde8f18-2690-4856-9a46-7e3b3d9acdf7/
API ID: 1cde8f18-2690-4856-9a46-7e3b3d9acdf7
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/datasets
Page update time: 2026-12-03T02:43:38.168Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:36.757Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Hugging Face Dataset Search API

Query public Hugging Face datasets using optional q, author, task, language, license, modality, format, size, library, tags, gated (true/false), sort (trending, downloads, likes, created or modified), limit (default 20, max 100) and cursor. Returned items\[\] include task tags, languages, licenses, size categories and monthly download counts.

## What You Can Build

- **Filter open-license training data**: Combine license, language, modality and gated=false to shortlist permissive corpora.
- **Discover Parquet-ready benchmarks**: Filter by format=parquet and task to find datasets ready for Polars, Pandas or Hugging Face datasets.
- **Catalog organization releases**: Pass author with sort=modified to monitor newly published datasets from a research lab.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].id` | Dataset identifier (owner/name) |
| `items[].author` | Dataset owner username or organization |
| `items[].description` | Short dataset description |
| `items[].task_categories` | Task category tags such as question-answering |
| `items[].languages` | Language codes associated with the dataset |
| `items[].licenses` | License identifiers declared on the Hub |
| `items[].downloads_last_month` | Download count over the past 30 days |
| `items[].likes` | Hub community like count |
| `items[].size_category` | Bucketed dataset size category such as 10K\<n\<100K |
| `next_cursor` | Opaque cursor for the next page, or null on the last page |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face dataset search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Words in the dataset id."
        },
        "author": {
          "type": "string",
          "description": "Only datasets of this user or organization."
        },
        "task": {
          "type": "string",
          "description": "Task categories, comma-separated, e.g. `question-answering`, `text-classification`."
        },
        "language": {
          "type": "string",
          "description": "Language codes, comma-separated."
        },
        "license": {
          "type": "string",
          "description": "License ids, comma-separated."
        },
        "modality": {
          "type": "string",
          "description": "Modalities, e.g. `text`, `image`, `audio`, `tabular`."
        },
        "format": {
          "type": "string",
          "description": "Formats, e.g. `parquet`, `json`, `csv`, `imagefolder`."
        },
        "size": {
          "type": "string",
          "description": "Size categories, e.g. `1K<n<10K`, `1M<n<10M`."
        },
        "library": {
          "type": "string",
          "description": "Libraries, e.g. `datasets`, `pandas`, `polars`."
        },
        "tags": {
          "type": "string",
          "description": "Any other Hub tags, comma-separated."
        },
        "gated": {
          "type": "string",
          "description": "`true` or `false`.",
          "enum": [
            "true",
            "false"
          ]
        },
        "sort": {
          "type": "string",
          "description": "Order: `trending` (default), `downloads`, `likes`, `created` or `modified` (newest first).",
          "enum": [
            "trending",
            "downloads",
            "likes",
            "created",
            "modified"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Results per page (default 20, max 100)."
        },
        "cursor": {
          "type": "string",
          "description": "`next_cursor` from the previous page; null on the last page."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "arxiv": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "author": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "downloads_last_month": {
                "type": "integer"
              },
              "formats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "gated": {
                "type": "boolean"
              },
              "id": {
                "type": "string"
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "last_modified": {
                "type": "string"
              },
              "libraries": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "licenses": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "likes": {
                "type": "integer"
              },
              "modalities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "name": {
                "type": "string"
              },
              "paperswithcode_id": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "private": {
                "type": "boolean"
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sha": {
                "type": "string"
              },
              "size_category": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "task_categories": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "trending_score": {
                "type": "number"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_cursor": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/datasets?output=json&q=squad' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "items": [
    {
      "arxiv": [
        "1606.05250"
      ],
      "author": "rajpurkar",
      "created_at": "2022-03-02T23:29:22.000Z",
      "description": "Dataset Card for SQuAD Dataset Summary Stanford Question Answering Dataset (SQuAD) is a reading comprehension dataset, consisting of questio…",
      "downloads_last_month": 165701,
      "formats": [
        "parquet"
      ],
      "gated": false,
      "id": "rajpurkar/squad",
      "languages": [
        "en"
      ],
      "last_modified": "2024-03-04T13:54:37.000Z",
      "libraries": [
        "datasets",
        "pandas",
        "… 2 more"
      ],
      "licenses": [
        "cc-by-sa-4.0"
      ],
      "likes": 892,
      "modalities": [
        "text"
      ],
      "name": "squad",
      "paperswithcode_id": "squad",
      "private": false,
      "regions": [
        "us"
      ],
      "sha": "7b6d24c440a36b6815f21b70d25016731768db1f",
      "size_category": "10K<n<100K",
      "tags": [
        "task_categories:question-answering",
        "task_ids:extractive-qa",
        "… 16 more"
      ],
      "task_categories": [
        "question-answering"
      ],
      "trending_score": 1.5,
      "url": "https://huggingface.co/datasets/rajpurkar/squad"
    },
    {
      "arxiv": [],
      "author": "christian-hoang-04",
      "created_at": "2026-08-17T12:43:14.000Z",
      "description": "Vietnamese Vi-SQuAD Benchmark Question-only release of the Vietnamese Vi-SQuAD benchmark used by the ViLLM evaluation project. Contents vi_s…",
      "downloads_last_month": 37,
      "formats": [],
      "gated": false,
      "id": "christian-hoang-04/vi-squad",
      "languages": [
        "vi"
      ],
      "last_modified": "2026-08-17T13:03:52.000Z",
      "libraries": [],
      "licenses": [],
      "likes": 1,
      "modalities": [],
      "name": "vi-squad",
      "paperswithcode_id": null,
      "private": false,
      "regions": [
        "us"
      ],
      "sha": "3c569e53bad163ad57af27211182bc292a21f966",
      "size_category": "1K<n<10K",
      "tags": [
        "task_categories:question-answering",
        "language:vi",
        "… 5 more"
      ],
      "task_categories": [
        "question-answering"
      ],
      "trending_score": 1,
      "url": "https://huggingface.co/datasets/christian-hoang-04/vi-squad"
    },
    "… 18 more"
  ],
  "next_cursor": "eyIkb3IiOlt7InRyZW5kaW5nU2NvcmUiOjAsIl9pZCI6eyIkZ3QiOiI2MjFmZmRkMjM2NDY4ZDcwOWYxODI3ZGUifX0seyJ0cmVuZGluZ1Njb3JlIjp7IiRsdCI6MH19LHsidHJlbmRp…",
  "query": "squad",
  "sort": "trending"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Can I combine multiple task, language or license filters?
Yes. Parameters such as task, language, license and tags accept comma-separated values.

### What modality, format and size values are supported?
Examples in the contract include modality values like text, image, audio or tabular; format values like parquet, json, csv or imagefolder; and size buckets such as 1K<n<10K or 1M<n<10M.

### How can I exclude gated datasets from search results?
Pass gated=false to return only non-gated public datasets, or gated=true to list gated ones.

### What sort options and page limits are available?
sort accepts trending (default), downloads, likes, created or modified; limit defaults to 20 with a maximum of 100 per page.

### How do I inspect full dataset cards and split statistics for a search hit?
Pass items[].id into the Hugging Face Dataset Details API, optionally with include=splits.

### How do caching and output parameters work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks, or fields to select specific keys.

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-dataset-search-api/1cde8f18-2690-4856-9a46-7e3b3d9acdf7/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
