# Time series metrics

`GET /{market_id}/time_series`

> Wheelhouse Market Report API. Web version: https://docs.usewheelhouse.com/market-report/reference/time-serie · OpenAPI spec: https://docs.usewheelhouse.com/market-report/openapi.yaml · Operation ID: `TimeSerie` · Tag: Time Series · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

Daily market metrics for a range of stay dates.

**Same time last year.** Pass `basis=stly` to get each stay date's values as they stood around the same time last year: the market's figures for the stay date 52 weeks earlier, returned under this year's `stay_date` with the same fields, so the rows of both bases can be joined on `stay_date`. `updated_at` is then when last year's figures were generated. A value is `null` where last year has no data for that stay date, and a bedroom group last year's market was not broken down by returns 204. Last year's figures are refreshed weekly, so the last few days of the one-year horizon can be missing from the response, and a range that lies entirely within them returns 204. `basis=stly` is in early access: accounts without early access get a 403, and a market whose last year figures are not available yet returns a 404.

## Request

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

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`, `nights_bookable`, `asking_rate_w_fees`, `adr_w_fees`, `lead_time`, `revpar_adjusted_w_fees`, `revpar_w_fees`, `revenue_w_fees`) |
| `start_date` | string (date) | no | The start date (inclusive) of the time series (YYYY-MM-DD). (default: `Today`, min: Today - 2.years, max: Today + 1.year) |
| `end_date` | string (date) | no | The end date (inclusive) of the time series (YYYY-MM-DD). The `end_date` must be after the `start_date`. (default: `Today + 1.year`, 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`) |
| `basis` | string | no | Today's values (`current`) or the values as they stood around the same time last year (`stly`). See the description above for what `stly` returns. `stly` is in early access. (one of: `current`, `stly`, default: `current`) |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/market_report/{market_id}/time_series' \
  -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 time series.

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

- `currency` (string, example: `USD`): The ISO-4217 3-letter currency code.
- `data` (array of object)
  - `stay_date` (string (date)): Stay date (YYYY-MM-DD).
  - `occupancy` (number, min: 0, max: 1, example: `0.5`): Average number of booked nights divided by calendar nights.
  - `occupancy_adjusted` (number, min: 0, max: 1, example: `0.55`): Average number of booked nights divided by bookable nights.
  - `nights_bookable` (integer, min: 0, example: `500`): Number of available nights + booked nights, excluding blocked nights.
  - `asking_rate_w_fees` (number, min: 0, example: `500`): Average price (including fees) of booked- and available nights.
  - `adr_w_fees` (number, min: 0, example: `150`): Average price (including fees) of booked nights.
  - `revpar_adjusted_w_fees` (number, min: 0, example: `100`): Revenue (including fees) divided by number of bookable nights.
  - `revpar_w_fees` (number, min: 0, example: `90`): Revenue (including fees) divided by number of calendar nights.
  - `revenue_w_fees` (number, min: 0, example: `34000`): Sum of prices (including fees) of booked nights.
  - `lead_time` (number, min: -365, max: 0, example: `-25`): Average number of days between first stay date of a booking and booking date.

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

```json
{
  "currency": "USD",
  "data": [
    {
      "stay_date": "2026-01-01",
      "occupancy": 0.5,
      "occupancy_adjusted": 0.55,
      "nights_bookable": 500,
      "asking_rate_w_fees": 500,
      "adr_w_fees": 150,
      "revpar_adjusted_w_fees": 100,
      "revpar_w_fees": 90,
      "revenue_w_fees": 34000,
      "lead_time": -25
    }
  ]
}
```

### 204

There is not enough data in the selected subset.

### 400

Bad request. Can be one of:

  * Invalid `market_id`
  * Invalid `start_date`
  * Invalid `end_date`
  * Invalid `start_date`/`end_date`. `end_date` should always be greater than `start_date`
  * Invalid `bedrooms`. The message names the groups this market is broken down by

### 401

API key authorization failed.

### 403

`basis=stly` was requested by an account without early access to it.

### 404

With `basis=stly`, last year's figures for this market are not available yet.
