# Monthly metric distribution

`GET /{market_id}/distribution`

> Wheelhouse Market Report API. Web version: https://docs.usewheelhouse.com/market-report/reference/market-reports-distribution · OpenAPI spec: https://docs.usewheelhouse.com/market-report/openapi.yaml · Operation ID: `marketReportsDistribution` · Tag: Distributions · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/market_report/{market_id}/distribution`

Authentication: send your Market Report API key in the `X-Integration-Api-Key` header (see https://docs.usewheelhouse.com/market-report/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `market_id` | string | yes | Unique identifier of the market. See response of [/market_reports](https://docs.usewheelhouse.com/market-report/reference/market-reports.md). |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `metric` | array of string | no | See the response for an explanation of the different metrics. If omitted all metrics are included. See also the [Wheelhouse Metrics Lexicon](https://www.usewheelhouse.com/research-metrics). (each item one of: `occupancy`, `occupancy_adjusted`, `asking_rate_w_fees`, `adr_w_fees`, `lead_time`, `revpar_adjusted_w_fees`, `revpar_w_fees`, `length_of_stay`) |
| `month` | string (date) | no | The month of the given distribution (YYYY-MM-01). (default: `Today.month`, min: Today - 2.years, max: Today + 1.year) |
| `bedrooms` | string | no | Bedroom group to restrict the data to. If omitted all bedrooms are included. Which groups a market is broken down by depends on the listings in it, so they differ from market to market: a market with many larger listings is broken down further (`0`, `1`, `2`, `3`, `4`, `5`, `6+`) than one without them (`0`, `1`, `2+`). Read a market's groups from its bedroom groups endpoint rather than assuming a fixed set. A group the market has no data for is rejected, and the error names the groups it does have. The top group holds every listing with at least that many bedrooms. A request for a top group is answered from the exact bedroom count it names where the market is broken down past it, so `4+` returns the 4 bedroom group in a market broken down into `4`, `5` and `6+`.  (pattern: `^\d{1,2}\+?$`, example: `2`) |
| `performance` | string | no | If omitted all performance groups are included. Custom performance metric by Wheelhouse. For each listing in the market we calculate RevPAR per room. In order to deal with outliers we find the 95th-percentile, and define three equidistant bins based on that. For example, let us say that there are 100 listings in a market, and RevPAR per room ranges from $50 to $500, and that the 95th percentile equals $300. That means that 95% of the listings have a RevPAR per room less than $300, and 5% of the listings have a RevPAR per room greater than $300. The three equidistant bins will be 0-100, 100-200 and 200-300. In this case the three performance bucket will be the following:   - **Low:** All listings that have a RevPAR per room less than $100   - **Average:** All listings that have a RevPAR per room between $100 and $200   - **High:** All listings that have a RevPAR per room greater than $200  (one of: `low`, `average`, `high`) |
| `property_type` | string | no | Description of the property this rental is in. If omitted all property types are included. (one of: `apartment`, `bnb`, `boat`, `bus`, `cabin`, `camper`, `camping`, `castle`, `hostel`, `hotel`, `house`, `houseboat`, `island`, `mill`, `room`, `shared`, `tower`) |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/market_report/{market_id}/distribution' \
  -H 'X-Integration-Api-Key: <your Market Report 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.

Body (`application/json`): object `marketReportDistributionResponse`

- `currency` (string): The ISO-4217 3-letter currency code.
- `month` (string (date)): Month (YYYY-MM-01).
- `data` (object)
  - `occupancy` (array of object `distribution`): Average number of booked nights divided by calendar nights.
    - Fields: see `distribution` under Schemas.
  - `occupancy_adjusted` (array of object `distribution`): Average number of booked nights divided by bookable nights.
    - Fields: see `distribution` under Schemas.
  - `asking_rate_w_fees` (array of object `distribution`): Average price (including fees) of booked- and available nights.
    - Fields: see `distribution` under Schemas.
  - `adr_w_fees` (array of object `distribution`): Average price (including fees) of booked nights.
    - Fields: see `distribution` under Schemas.
  - `revpar_adjusted_w_fees` (array of object `distribution`): Revenue (including fees) divided by number of bookable nights.
    - Fields: see `distribution` under Schemas.
  - `revpar_w_fees` (array of object `distribution`): Revenue (including fees) divided by number of calendar nights.
    - Fields: see `distribution` under Schemas.
  - `lead_time` (array of object `distribution`): Average number of days between first stay date of a booking and booking date.
    - Fields: see `distribution` under Schemas.
  - `length_of_stay` (array of object `distribution`): Average number of consecutive nights a guest stays.
    - Fields: see `distribution` under Schemas.

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

```json
{
  "currency": "string",
  "month": "2026-01-01",
  "data": {
    "occupancy": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "occupancy_adjusted": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "asking_rate_w_fees": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "adr_w_fees": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "revpar_adjusted_w_fees": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "revpar_w_fees": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "lead_time": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ],
    "length_of_stay": [
      {
        "bucket_min_incl": 0,
        "bucket_max_excl": 0,
        "probability": 0,
        "percentile": 0
      }
    ]
  }
}
```

### 204

There is not enough data in the selected subset.

### 400

Bad request. Can be one of:

  * Invalid `month`
  * Invalid `bedrooms`. The message names the groups this market is broken down by

### 401

API key authorization failed.

## Schemas

Shared by more than one field above.

### `distribution`

Type: object `distribution`

- `bucket_min_incl` (number): Minimum value in bucket (inclusive).
- `bucket_max_excl` (number): Maximum value in bucket (exclusive).
- `probability` (number, min: 0, max: 1): The number of listings in this bucket divided by
  the total number of listings. A listing falls
  in this bucket if and only if its value
  is greater than or equal to `bucket_min_incl` and
  less than `bucket_max_excl`.
- `percentile` (number, min: 0, max: 1): The number of listings where the value is less than
  `bucket_max_excl` divided by the total number of listings.
