# getCollection

**Identifier:** `producthunt_getCollection`

**Provider:** [Product Hunt](https://kirha.com/providers/producthunt.md)

Get detailed information about a single collection by ID or slug. Returns collection metadata and creator information.

## Run it with the CLI

```bash
kirha tools run producthunt_getCollection \
  --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": "producthunt_getCollection",
  "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": {
    "id": {
      "description": "Collection ID",
      "type": "string"
    },
    "slug": {
      "description": "Collection slug",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "coverImage": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "featuredAt": {
      "type": "string"
    },
    "followersCount": {
      "type": "number"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "user": {
      "additionalProperties": false,
      "properties": {
        "headline": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "profileImage": {
          "type": "string"
        },
        "username": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "username"
      ],
      "type": "object"
    }
  },
  "required": [
    "context",
    "id",
    "name",
    "url",
    "followersCount",
    "createdAt",
    "user"
  ],
  "type": "object"
}
```

## Related tools

Other Product Hunt tools that this tool refers to, or that refer to it.

- [`getCollectionProducts`](https://kirha.com/providers/producthunt/getCollectionProducts.md)

-----

[All Product Hunt tools](https://kirha.com/providers/producthunt.md) · [< Back to tools list](https://kirha.com/tools.md)