# getDataset

**Identifier:** `huggingface_getDataset`

**Provider:** [Hugging Face](https://kirha.com/providers/huggingface.md)

Get comprehensive metadata for a specific dataset by repo ID. Returns schema, splits, example counts, configurations, task categories, and licensing.

## Run it with the CLI

```bash
kirha tools run huggingface_getDataset \
  --input '{
    "repoId": "rajpurkar/squad"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "huggingface_getDataset",
  "input": {
    "repoId": "rajpurkar/squad"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "repoId": {
      "description": "e.g., rajpurkar/squad, openai/gsm8k",
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "repoId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "author": {
      "type": "string"
    },
    "citation": {
      "type": "string"
    },
    "configs": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "downloadSizeBytes": {
      "type": "number"
    },
    "downloads": {
      "type": "number"
    },
    "features": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "dtype": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "id": {
      "type": "string"
    },
    "languages": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "lastModified": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "likes": {
      "type": "number"
    },
    "sizeCategory": {
      "type": "string"
    },
    "splits": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "numExamples": {
            "type": "number"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "taskCategories": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalExamples": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "id",
    "downloads",
    "likes",
    "createdAt",
    "lastModified"
  ],
  "type": "object"
}
```

## Related tools

Other Hugging Face tools that this tool refers to, or that refer to it.

- [`getTrending`](https://kirha.com/providers/huggingface/getTrending.md)
- [`searchDatasets`](https://kirha.com/providers/huggingface/searchDatasets.md)

-----

[All Hugging Face tools](https://kirha.com/providers/huggingface.md) · [< Back to tools list](https://kirha.com/tools.md)