# List topics

Discover current public Explore topics, grouped by section, with available media counts. Results are fetched live from Instagram.

- Platform: [Instagram](https://docs.upscrape.com/docs/platforms/instagram)
- Capability ID: `instagram.topics.list`
- Cost: 1 credit per request
- Maximum runtime: 60 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": {
    "category": "Music"
  },
  "capability": "instagram.topics.list"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `string` | No | Optional case-insensitive match against the live section, topic name or keyword. |

### Example input

```json
{
  "category": "Music"
}
```

## 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
{
  "count": 2,
  "source": "instagram_explore",
  "topics": [
    {
      "category": "Find what you're into",
      "name": "Music and Concerts",
      "slug": "music and concerts",
      "url": "https://www.instagram.com/popular/music%20and%20concerts/"
    },
    {
      "category": "What's happening now",
      "media_count": 5,
      "name": "iheartradio music festival 2026",
      "slug": "iheartradio music festival 2026",
      "url": "https://www.instagram.com/popular/iheartradio%20music%20festival%202026/"
    }
  ]
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `count` | `integer` | 2 |
| `source` | `string` | instagram_explore |
| `topics` | `array` | 2 items |
| `topics` | `array` | 2 items |

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