# searchProducts

**Identifier:** `producthunt_searchProducts`

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

Search for products on Product Hunt with filters. Filter by topic slug, URL, or date range. Returns product details including votes, comments, topics, and makers.

## Run it with the CLI

```bash
kirha tools run producthunt_searchProducts \
  --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_searchProducts",
  "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"
    },
    "postedAfter": {
      "description": "ISO 8601 datetime - filter products posted after this date",
      "type": "string"
    },
    "postedBefore": {
      "description": "ISO 8601 datetime - filter products posted before this date",
      "type": "string"
    },
    "topic": {
      "description": "Topic slug to filter by (e.g., 'artificial-intelligence')",
      "type": "string"
    },
    "url": {
      "description": "Filter by product URL",
      "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"
    },
    "products": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "commentsCount": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "featuredAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "makers": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "headline": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "username": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "username"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "reviewsCount": {
            "type": "number"
          },
          "reviewsRating": {
            "type": "number"
          },
          "slug": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "thumbnail": {
            "additionalProperties": false,
            "properties": {
              "url": {
                "type": "string"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "topics": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "slug"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "url": {
            "type": "string"
          },
          "votesCount": {
            "type": "number"
          },
          "website": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "slug",
          "tagline",
          "url",
          "votesCount",
          "commentsCount",
          "createdAt",
          "topics",
          "makers"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalCount": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalCount",
    "pageInfo",
    "products"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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