---
title: "Facet the Product Hunt products dataset"
method: GET
path: "/datasets/producthunt-products/facets"
tags: ["Datasets"]
---

# Facet the Product Hunt products dataset

`GET /datasets/producthunt-products/facets`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/datasets/producthunt-products/facets`
- Auth: API key in header `x-api-key`

Returns distribution counts over the Product Hunt products dataset (dataset id enum value `producthunt-products`), honoring the same filters as search. Facet enum: `topic`, `launch_year`, `pricing_type`, `product_state`.

## Query parameters

- `facet` 'topic' | 'launch_year' | 'pricing_type' | 'product_state', required
- `q` string
- `topic` string
- `maker` string
- `launched_after` string
- `launched_before` string
- `min_votes` integer
- `min_rating` number
- `pricing_type` string
- `has_website` boolean
- `is_online` boolean

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsProducthuntProductsFacetResponseDoc
  - `code` integer
  - `data` DatasetsProductHuntProductsFacetResponse
    - `dataset` string: Identifier of the dataset queried (`producthunt-products`).
    - `facet` string: Facet that was aggregated.
    - `items` EsProductHuntProductsFacetItem[]: Facet values with the number of matching records for each.
      - `count` integer: Number of products in this bucket.
      - `value` string: Bucket value, such as a topic slug, a four-digit launch year, a pricing type or a product state.
  - `msg` string

## Other responses

- `400`: Bad Request
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/028417aa35bb?raw)
