# getTopic

**Identifier:** `producthunt_getTopic`

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

Get detailed information about a single topic by ID or slug. Returns topic metadata including follower count, post count, and creation date.

## Run it with the CLI

```bash
kirha tools run producthunt_getTopic \
  --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_getTopic",
  "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": "Topic ID",
      "type": "string"
    },
    "slug": {
      "description": "Topic slug (e.g., 'artificial-intelligence')",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "followersCount": {
      "type": "number"
    },
    "id": {
      "type": "string"
    },
    "image": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "postsCount": {
      "type": "number"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "id",
    "name",
    "slug",
    "url",
    "followersCount",
    "postsCount"
  ],
  "type": "object"
}
```

-----

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