# Get metric distributions for a dynamic set

`GET /sets/{set_id}/distribution`

> Wheelhouse Comp Set API. Web version: https://docs.usewheelhouse.com/comp-set/reference/get-set-distribution · OpenAPI spec: https://docs.usewheelhouse.com/comp-set/openapi.yaml · Operation ID: `getSetDistribution` · Tag: Set Analytics · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

Returns the distribution of metrics across listing-days for a dynamic set within a given month.

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/comp_set/sets/{set_id}/distribution`

Authentication: send your Comp Set API key in the `X-Integration-Api-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/comp-set/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `set_id` | integer | yes | ID of the dynamic set. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `metric` | array of string | no | Array of metric names to return. Defaults to all available metrics. Send more than one in brackets (`?metric[]=asking_rate_w_fees&metric[]=occupancy`); a key repeated without brackets keeps only its last value. |
| `month` | string (date) | no | Month to compute distributions for (YYYY-MM-DD format, first day of month). Defaults to the current month. |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/comp_set/sets/{set_id}/distribution' \
  -H 'X-Integration-Api-Key: <your Comp Set API key>' \
  -H 'X-User-API-Key: <your user API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 200

Successfully retrieved distribution data.

Body (`application/json`): object

Example shape (generated from the schema; placeholder values, not a real response):

```json
{}
```

### 400

Invalid month

### 401

API key authorization failed

### 404

Dynamic set not found
