# Get topic

Fetch a Product Hunt topic with description, follower count, and ranked product listing.

- Platform: [Product Hunt](https://docs.upscrape.com/docs/platforms/producthunt)
- Capability ID: `producthunt.topic`
- 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": {
    "url": "artificial-intelligence"
  },
  "capability": "producthunt.topic"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | Topic URL or slug |

### Example input

```json
{
  "url": "artificial-intelligence"
}
```

## 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": "Artificial intelligence powers products that can write, reason, analyze data, and take action for you. These categories cover the main ways AI is being built and used today.\n\n- **[AI Agents](https://www.producthunt.com/categories/ai-agents)** – Tools that use AI to plan, reason, and take actions across tools and workflows, often completing multi-step tasks with minimal human input.\n- **[LLMs](http…",
  "id": "268",
  "name": "Artificial Intelligence",
  "products": [
    {
      "id": "126122",
      "name": "PostHog",
      "slug": "posthog",
      "tagline": "Literally every piece of SaaS that a product engineer needs",
      "url": "https://www.producthunt.com/products/posthog"
    },
    {
      "id": "584337",
      "name": "Granola",
      "slug": "granola",
      "tagline": "The AI notepad for people in back-to-back meetings",
      "url": "https://www.producthunt.com/products/granola"
    },
    {
      "id": "435808",
      "logo_url": "https://ph-files.imgix.net/593ff5e2-9d11-491c-ab63-9e929e894214.jpeg?auto=format&fit=crop&h=240&w=240",
      "name": "Vercel",
      "reviews_count": 990,
      "reviews_rating": 4.97,
      "slug": "vercel",
      "tagline": "The frontend cloud. Creators of Next.js. ",
      "url": "https://www.producthunt.com/products/vercel"
    }
  ],
  "slug": "artificial-intelligence",
  "url": "https://www.producthunt.com/topics/artificial-intelligence"
}
```
### 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` | Artificial intelligence powers products that can write, reason, analyze… |
| `id` | `string` | 268 |
| `name` | `string` | Artificial Intelligence |
| `products` | `array` | 3 items |
| `products` | `array` | 3 items |
| `slug` | `string` | artificial-intelligence |
| `url` | `string` | https://www.producthunt.com/topics/artificial-intelligence |

## 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)
