# Hugging Face dataset details API

Get Hugging Face Dataset Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including full dataset identifier, declared dataset license identifiers, hub task category tags, files count, and splits to verify dataset compliance, inspect split and feature structure, and audit dataset popularity and freshness.

Documentation: https://openany.si/hugging-face/hugging-face-dataset-details-api/4e878f39-fb97-46ba-ac4f-04d37fda9466/
API ID: 4e878f39-fb97-46ba-ac4f-04d37fda9466
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/dataset
Page update time: 2026-12-03T02:43:38.157Z
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.657Z. 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 Details API

Pass required id as an owner/name dataset slug (such as rajpurkar/squad) or a huggingface.co dataset URL, plus optional include=splits to attach configuration, split, row-count and feature structure. The response exposes card\_data, licenses, languages, task\_categories, download metrics and repository file metadata.

## What You Can Build

- **Verify dataset compliance**: Check licenses, gated status and languages before ingesting a dataset into training or evaluation pipelines.
- **Inspect split and feature structure**: Pass include=splits to inspect configurations, split row counts and column schemas without downloading Parquet files.
- **Audit dataset popularity and freshness**: Read downloads\_last\_month, likes and last\_modified to compare candidate benchmarks.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Full dataset identifier (owner/name) |
| `author` | Dataset owner username or organization |
| `description` | Summary text from the dataset record |
| `licenses` | Declared dataset license identifiers |
| `languages` | Documented language codes for the dataset |
| `task_categories` | Hub task category tags |
| `downloads_last_month` | Reported downloads over the last 30 days |
| `files_count` | Total number of files in the dataset repository |
| `card_data.dataset_info.splits` | Documented split names, sizes and example counts |
| `url` | Canonical Hugging Face Hub URL for the dataset |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face dataset details 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": {
        "id": {
          "type": "string",
          "description": "The dataset id (owner/name) or its huggingface.co link."
        },
        "include": {
          "type": "string",
          "description": "`splits`: also return `structure` (configs, splits, row counts, sizes and column features).",
          "enum": [
            "splits"
          ]
        },
        "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."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "arxiv": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "author": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "card_data": {
      "type": "object",
      "properties": {
        "annotations_creators": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "configs": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "config_name": {
                "type": "string"
              },
              "data_files": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "…": {
                      "type": "string"
                    }
                  }
                }
              },
              "default": {
                "type": "boolean"
              }
            }
          }
        },
        "dataset_info": {
          "type": "object",
          "properties": {
            "config_name": {
              "type": "string"
            },
            "dataset_size": {
              "type": "integer"
            },
            "download_size": {
              "type": "integer"
            },
            "features": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "dtype": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "string"
                  }
                ]
              }
            },
            "splits": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "num_bytes": {
                    "type": "integer"
                  },
                  "num_examples": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "language": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "language_creators": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "license": {
          "type": "string"
        },
        "multilinguality": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "paperswithcode_id": {
          "type": "string"
        },
        "pretty_name": {
          "type": "string"
        },
        "size_categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_datasets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "task_categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "task_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "train-eval-index": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "col_mapping": {
                "type": "object",
                "properties": {
                  "answers": {
                    "type": "object",
                    "properties": {
                      "…": {
                        "type": "string"
                      }
                    }
                  },
                  "context": {
                    "type": "string"
                  },
                  "question": {
                    "type": "string"
                  }
                }
              },
              "config": {
                "type": "string"
              },
              "metrics": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "…": {
                      "type": "string"
                    }
                  }
                }
              },
              "splits": {
                "type": "object",
                "properties": {
                  "eval_split": {
                    "type": "string"
                  },
                  "train_split": {
                    "type": "string"
                  }
                }
              },
              "task": {
                "type": "string"
              },
              "task_id": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "citation": {
      "type": "null"
    },
    "created_at": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    },
    "downloads_all_time": {
      "type": "integer"
    },
    "downloads_last_month": {
      "type": "integer"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "files_count": {
      "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": {
      "type": "string"
    },
    "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"
    },
    "used_storage_bytes": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/dataset?id=rajpurkar%2Fsquad&output=json' \
  -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
{
  "arxiv": [
    "1606.05250"
  ],
  "author": "rajpurkar",
  "cached": false,
  "card_data": {
    "annotations_creators": [
      "crowdsourced"
    ],
    "configs": [
      {
        "config_name": "plain_text",
        "data_files": [
          {
            "…": "2 fields"
          },
          {
            "…": "2 fields"
          }
        ],
        "default": true
      }
    ],
    "dataset_info": {
      "config_name": "plain_text",
      "dataset_size": 89819092,
      "download_size": 16278203,
      "features": [
        {
          "dtype": "string",
          "name": "id"
        },
        {
          "dtype": "string",
          "name": "title"
        },
        "… 3 more"
      ],
      "splits": [
        {
          "name": "train",
          "num_bytes": 79346108,
          "num_examples": 87599
        },
        {
          "name": "validation",
          "num_bytes": 10472984,
          "num_examples": 10570
        }
      ]
    },
    "language": [
      "en"
    ],
    "language_creators": [
      "crowdsourced",
      "found"
    ],
    "license": "cc-by-sa-4.0",
    "multilinguality": [
      "monolingual"
    ],
    "paperswithcode_id": "squad",
    "pretty_name": "SQuAD",
    "size_categories": [
      "10K<n<100K"
    ],
    "source_datasets": [
      "extended|wikipedia"
    ],
    "task_categories": [
      "question-answering"
    ],
    "task_ids": [
      "extractive-qa"
    ],
    "train-eval-index": [
      {
        "col_mapping": {
          "answers": {
            "…": "2 fields"
          },
          "context": "context",
          "question": "question"
        },
        "config": "plain_text",
        "metrics": [
          {
            "…": "2 fields"
          }
        ],
        "splits": {
          "eval_split": "validation",
          "train_split": "train"
        },
        "task": "question-answering",
        "task_id": "extractive_question_answering"
      }
    ]
  },
  "citation": null,
  "created_at": "2022-03-02T23:29:22.000Z",
  "credits_used": 1,
  "description": "Dataset Card for SQuAD Dataset Summary Stanford Question Answering Dataset (SQuAD) is a reading comprehension dataset, consisting of questio…",
  "disabled": false,
  "downloads_all_time": 8291521,
  "downloads_last_month": 165701,
  "files": [
    ".gitattributes",
    "README.md",
    "… 2 more"
  ],
  "files_count": 4,
  "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",
  "used_storage_bytes": 16279705
}
```

## 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
### What formats are accepted for the dataset id parameter?
You can pass an owner/name identifier such as rajpurkar/squad or a full huggingface.co/datasets URL.

### What does include=splits add to the response?
Setting include=splits returns additional structure data covering configs, splits, row counts, byte sizes and column features.

### Does this endpoint download the dataset rows or Parquet files?
No. It returns dataset metadata, card fields and file references only; raw dataset records are not embedded.

### How can I browse every file path inside the dataset repository?
Use the Hugging Face Repo File Tree API with type=dataset to list all files, sizes and download URLs recursively.

### Can I inspect private or gated dataset contents?
This endpoint returns public Hub metadata and gated flags; it does not accept buyer Hugging Face tokens for private repositories.

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

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-dataset-details-api/4e878f39-fb97-46ba-ac4f-04d37fda9466/

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