# searchTopics

**Identifier:** `producthunt_searchTopics`

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

Search for topics on Product Hunt by name. Topics are categories like "artificial-intelligence", "productivity", etc. Returns topic details including follower and product counts.

## Run it with the CLI

```bash
kirha tools run producthunt_searchTopics \
  --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_searchTopics",
  "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": {
    "after": {
      "description": "Cursor for pagination",
      "type": "string"
    },
    "first": {
      "default": 20,
      "description": "Number of results (max 20)",
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    },
    "order": {
      "description": "Topic ordering",
      "type": "string"
    },
    "query": {
      "description": "Search query for topic name/aliases",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "pageInfo": {
      "additionalProperties": false,
      "properties": {
        "endCursor": {
          "type": "string"
        },
        "hasNextPage": {
          "type": "boolean"
        }
      },
      "required": [
        "hasNextPage"
      ],
      "type": "object"
    },
    "topics": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "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": [
          "id",
          "name",
          "slug",
          "url",
          "followersCount",
          "postsCount"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalCount": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalCount",
    "pageInfo",
    "topics"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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