# Get category

Fetch a Product Hunt category with subcategories, parent category, and ranked product listing.

- Platform: [Product Hunt](https://docs.upscrape.com/docs/platforms/producthunt)
- Capability ID: `producthunt.category`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "max_products": 5,
    "url": "ai-meeting-notetakers"
  },
  "capability": "producthunt.category"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `max_products` | `integer` | No | Max products to return (omit for no cap, max: 500) From 1 to 500. |
| `url` | `string` | Yes | Category URL or slug |

### Example input

```json
{
  "max_products": 5,
  "url": "ai-meeting-notetakers"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "description": "AI notetakers capture meetings, calls, and voice memos, then transcribe, summarize, and extract tasks for teams, sellers, and learners across tools and languages.",
  "id": "1288",
  "name": "AI notetakers",
  "parent_category": {
    "id": "34",
    "name": "Productivity",
    "path": "/categories/productivity",
    "slug": "productivity"
  },
  "path": "/categories/ai-meeting-notetakers",
  "products": [
    {
      "id": "584337",
      "logo_url": "https://ph-files.imgix.net/c471aadb-c3d9-4676-8fe8-0089ad45779a.png?auto=format&fit=crop&h=240&w=240",
      "name": "Granola",
      "reviews_count": 51,
      "reviews_rating": 4.8,
      "slug": "granola",
      "tagline": "The AI notepad for people in back-to-back meetings",
      "url": "https://www.producthunt.com/products/granola"
    },
    {
      "id": "106091",
      "logo_url": "https://ph-files.imgix.net/ff3e2acf-884a-4f4c-a383-6edfe3de0d88.png?auto=format&fit=crop&h=240&w=240",
      "name": "Notion",
      "reviews_count": 1385,
      "reviews_rating": 4.83,
      "slug": "notion",
      "tagline": "The all-in-one workspace",
      "url": "https://www.producthunt.com/products/notion"
    },
    {
      "id": "112265",
      "logo_url": "https://ph-files.imgix.net/0bfd17ff-fb9d-48ed-8b08-88459d154734.png?auto=format&fit=crop&h=240&w=240",
      "name": "Grain",
      "reviews_count": 16,
      "reviews_rating": 4.81,
      "slug": "grain",
      "tagline": "AI-powered meeting recording for everyone, not just sales. ",
      "url": "https://www.producthunt.com/products/grain"
    }
  ],
  "reviews_count": 2702,
  "slug": "ai-meeting-notetakers",
  "url": "https://www.producthunt.com/categories/ai-meeting-notetakers"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `description` | `string` | AI notetakers capture meetings, calls, and voice memos, then transcribe… |
| `id` | `string` | 1288 |
| `name` | `string` | AI notetakers |
| `parent_category` | `object` | 4 fields |
| `parent_category.id` | `string` | 34 |
| `parent_category.name` | `string` | Productivity |
| `parent_category.path` | `string` | /categories/productivity |
| `parent_category.slug` | `string` | productivity |
| `path` | `string` | /categories/ai-meeting-notetakers |
| `products` | `array` | 3 items |
| `products` | `array` | 3 items |
| `reviews_count` | `integer` | 2702 |
| `slug` | `string` | ai-meeting-notetakers |
| `url` | `string` | https://www.producthunt.com/categories/ai-meeting-notetakers |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
