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

# Facet the Product Hunt trends dataset

`GET /datasets/producthunt-trends/facets`

## Request

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

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

## Query parameters

- `facet` 'topic' | 'launch_year', required
- `group_by` 'topic_month' | 'topic_year' | 'topic'
- `topic` string
- `launched_after` string
- `launched_before` string
- `min_votes` integer
- `min_launches` integer

## Headers

- `x-api-key` string, required

## Response `200`

OK

- DatasetsProducthuntTrendsFacetResponseDoc
  - `code` integer
  - `data` DatasetsProductHuntTrendsFacetResponse
    - `dataset` string: Identifier of the dataset queried (`producthunt-trends`).
    - `facet` string: Facet that was aggregated.
    - `items` EsProductHuntTrendsFacetItem[]: Facet values with the number of matching records for each.
      - `count` integer: Number of products in this bucket.
      - `value` string: Bucket value, either a topic slug or a four-digit launch year.
  - `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)
