# getTrending

**Identifier:** `huggingface_getTrending`

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

Get currently trending models, datasets, or Spaces on the Hugging Face Hub. Reflects what the AI community is most interested in right now.

## Run it with the CLI

```bash
kirha tools run huggingface_getTrending \
  --input '{}'
```

`--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_getTrending",
  "input": {}
}'
```

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": {
    "limit": {
      "default": 10,
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    },
    "type": {
      "default": "model",
      "enum": [
        "model",
        "dataset",
        "space"
      ],
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "ids": {
      "description": "Repo IDs for use with getModel, getDataset, or searchSpaces",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "author": {
            "type": "string"
          },
          "downloads": {
            "type": "number"
          },
          "id": {
            "type": "string"
          },
          "likes": {
            "type": "number"
          },
          "numParameters": {
            "type": "number"
          },
          "pipelineTag": {
            "type": "string"
          },
          "repoType": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "repoType"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "items",
    "ids"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getModel`](https://kirha.com/providers/huggingface/getModel.md)
- [`getDataset`](https://kirha.com/providers/huggingface/getDataset.md)
- [`searchSpaces`](https://kirha.com/providers/huggingface/searchSpaces.md)

-----

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