{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.usewheelhouse.com/ss_api/v1/market_report"
    }
  ],
  "info": {
    "license": {
      "name": "All Rights Reserved"
    },
    "description": "The Market Report API allows users to query market performance data\nin the past or in the future.\nUsers can segment data by property types, bedrooms, and performance.\n",
    "contact": {
      "email": "tech-support@usewheelhouse.com"
    },
    "title": "Wheelhouse Market Report API",
    "termsOfService": "http://help.usewheelhouse.com/privacy-and-terms/terms-of-service",
    "version": "1.0",
    "x-logo": {
      "url": "https://app.usewheelhouse.com/api/logo.png",
      "backgroundColor": "#ffffff",
      "altText": "Wheelhouse logo",
      "href": "https://www.usewheelhouse.com/contact"
    }
  },
  "tags": [
    {
      "name": "Host",
      "description": "https://api.usewheelhouse.com/ss_api/v1/"
    },
    {
      "name": "Rate Limit",
      "description": "By default, our API is limited to 20 requests / minute.  This can be adjusted so please [reach out to us](mailto:tech-support@usewheelhouse.com) with any questions."
    },
    {
      "name": "Markets",
      "description": "This endpoint provides details about which markets are available and their unique id. This\nway, you can discover what markets are available and how to access them. New markets will be\nadded regularly, but existing markets will keep their current id.\n"
    },
    {
      "name": "Bedroom Groups",
      "description": "This endpoint provides the bedroom groups a market's report is broken down by, and how\nmany listings sit behind each one. The groups are derived from the listings in the market\nand so differ from market to market; use this endpoint to discover which values the\n`bedrooms` parameter accepts for a given market.\n"
    },
    {
      "name": "Time Series",
      "description": "This endpoint provides timeseries data (daily granularity) for a variety of metrics like\noccupancy, asking rate, revpar, etc. It allows to define the scope by restricting the market\ndata to a certain number of bedrooms, certain property types, or a performance level.\n\nFor full metric definitions see the [Wheelhouse Metrics Lexicon](https://www.usewheelhouse.com/research-metrics).\n"
    },
    {
      "name": "Distributions",
      "description": "This endpoint provides probability distributions for a given metric in a given month. It\nallows to define the scope by restricting the market data to a certain number of bedrooms,\ncertain property types, or a performance level.\n\nFor full metric definitions see the [Wheelhouse Metrics Lexicon](https://www.usewheelhouse.com/research-metrics).\n"
    },
    {
      "name": "Changelog",
      "description": "### 2026-09-03\n* Add `GET /{market_id}/bedroom_groups`, which lists the bedroom groups a market's report is\n  broken down by. The `bedrooms` parameter takes these groups, including the top group (e.g. `6+`).\n\n### 2026-06-09\n* Rename the metrics to say whether they include fees: `nightly_rate` is now `adr_w_fees`,\n  `asking_rate` is `asking_rate_w_fees`, `revenue` is `revenue_w_fees`, `revpar` is\n  `revpar_adjusted_w_fees`, and `available_rooms` is `nights_bookable`.\n* `occupancy` now divides booked nights by all calendar nights. The previous value, booked\n  nights divided by bookable nights, is now `occupancy_adjusted`.\n* Add `revpar_w_fees`: revenue (including fees) divided by all calendar nights.\n\n### 2021-08-27\n* Initial release of the Market Report API.\n"
    }
  ],
  "security": [
    {
      "MarketReportApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "MarketReportApiKey": {
        "name": "X-Integration-Api-Key",
        "in": "header",
        "type": "apiKey",
        "description": "All integrations will be given an integration API key. [Contact\nus](mailto:tech-support@usewheelhouse.com) with a description of your use-case to get one.\n"
      }
    },
    "schemas": {
      "marketReportReponse": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "market_id": {
              "description": "Unique identifier of the market.",
              "type": "integer",
              "minimum": 1
            },
            "market_name": {
              "description": "Name of the market.",
              "type": "string",
              "example": "San Francisco"
            }
          }
        }
      },
      "marketReportBedroomGroupsResponse": {
        "type": "object",
        "properties": {
          "bedroom_groups": {
            "description": "The market's bedroom groups, in ascending order.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bedrooms": {
                  "description": "Value to pass as the `bedrooms` parameter. A trailing `+` marks the top\ngroup, which holds every listing with at least that many bedrooms.\n",
                  "type": "string",
                  "example": "6+"
                },
                "listings": {
                  "description": "Number of listings in the group. Null where the report was generated before\nthe counts were published.\n",
                  "type": "integer",
                  "nullable": true,
                  "minimum": 0,
                  "example": 23
                }
              }
            }
          },
          "updated_at": {
            "description": "When the market's report was generated.",
            "type": "string",
            "example": "2026-08-30 04:17:22 UTC"
          }
        }
      },
      "marketReportTimeSerieResponse": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The ISO-4217 3-letter currency code.",
            "type": "string",
            "example": "USD"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "stay_date": {
                  "description": "Stay date (YYYY-MM-DD).",
                  "type": "string",
                  "format": "date"
                },
                "occupancy": {
                  "description": "Average number of booked nights divided by calendar nights.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1,
                  "example": 0.5
                },
                "occupancy_adjusted": {
                  "description": "Average number of booked nights divided by bookable nights.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1,
                  "example": 0.55
                },
                "nights_bookable": {
                  "description": "Number of available nights + booked nights, excluding blocked nights.",
                  "type": "integer",
                  "minimum": 0,
                  "example": 500
                },
                "asking_rate_w_fees": {
                  "description": "Average price (including fees) of booked- and available nights.",
                  "type": "number",
                  "minimum": 0,
                  "example": 500
                },
                "adr_w_fees": {
                  "description": "Average price (including fees) of booked nights.",
                  "type": "number",
                  "minimum": 0,
                  "example": 150
                },
                "revpar_adjusted_w_fees": {
                  "description": "Revenue (including fees) divided by number of bookable nights.",
                  "type": "number",
                  "minimum": 0,
                  "example": 100
                },
                "revpar_w_fees": {
                  "description": "Revenue (including fees) divided by number of calendar nights.",
                  "type": "number",
                  "minimum": 0,
                  "example": 90
                },
                "revenue_w_fees": {
                  "description": "Sum of prices (including fees) of booked nights.",
                  "type": "number",
                  "minimum": 0,
                  "example": 34000
                },
                "lead_time": {
                  "description": "Average number of days between first stay date of a booking and booking date.",
                  "type": "number",
                  "minimum": -365,
                  "maximum": 0,
                  "example": -25
                }
              }
            }
          }
        }
      },
      "distribution": {
        "type": "object",
        "properties": {
          "bucket_min_incl": {
            "type": "number",
            "description": "Minimum value in bucket (inclusive)."
          },
          "bucket_max_excl": {
            "type": "number",
            "description": "Maximum value in bucket (exclusive)."
          },
          "probability": {
            "type": "number",
            "description": "The number of listings in this bucket divided by\nthe total number of listings. A listing falls\nin this bucket if and only if its value\nis greater than or equal to `bucket_min_incl` and\nless than `bucket_max_excl`.\n",
            "minimum": 0,
            "maximum": 1
          },
          "percentile": {
            "type": "number",
            "description": "The number of listings where the value is less than\n`bucket_max_excl` divided by the total number of listings.\n",
            "minimum": 0,
            "maximum": 1
          }
        }
      },
      "marketReportDistributionResponse": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The ISO-4217 3-letter currency code.",
            "type": "string"
          },
          "month": {
            "description": "Month (YYYY-MM-01).",
            "type": "string",
            "format": "date"
          },
          "data": {
            "type": "object",
            "properties": {
              "occupancy": {
                "type": "array",
                "description": "Average number of booked nights divided by calendar nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "occupancy_adjusted": {
                "type": "array",
                "description": "Average number of booked nights divided by bookable nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "asking_rate_w_fees": {
                "type": "array",
                "description": "Average price (including fees) of booked- and available nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "adr_w_fees": {
                "type": "array",
                "description": "Average price (including fees) of booked nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "revpar_adjusted_w_fees": {
                "type": "array",
                "description": "Revenue (including fees) divided by number of bookable nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "revpar_w_fees": {
                "type": "array",
                "description": "Revenue (including fees) divided by number of calendar nights.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "lead_time": {
                "type": "array",
                "description": "Average number of days between first stay date of a booking and booking date.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              },
              "length_of_stay": {
                "type": "array",
                "description": "Average number of consecutive nights a guest stays.",
                "items": {
                  "$ref": "#/components/schemas/distribution"
                }
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/": {
      "get": {
        "summary": "List of markets in a given country",
        "description": "Get a list of all markets Wheelhouse covers in a given country.\n",
        "tags": [
          "Markets"
        ],
        "operationId": "marketReports",
        "security": [
          {
            "MarketReportApiKey": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "required": true,
            "description": "The ISO-3166 2 letter country code."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved markets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/marketReportReponse"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed."
          }
        }
      }
    },
    "/{market_id}/bedroom_groups": {
      "get": {
        "summary": "Bedroom groups of a market",
        "tags": [
          "Bedroom Groups"
        ],
        "operationId": "marketReportsBedroomGroups",
        "security": [
          {
            "MarketReportApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "market_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the market. See response of [/market_reports](#operation/marketReports).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved bedroom groups.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/marketReportBedroomGroupsResponse"
                }
              }
            }
          },
          "204": {
            "description": "No report has been generated for this market yet."
          },
          "400": {
            "description": "Invalid `market_id`"
          },
          "401": {
            "description": "API key authorization failed."
          }
        }
      }
    },
    "/{market_id}/time_series": {
      "get": {
        "summary": "Time series metrics",
        "description": "Daily market metrics for a range of stay dates.\n\n**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.\n",
        "tags": [
          "Time Series"
        ],
        "operationId": "TimeSerie",
        "security": [
          {
            "MarketReportApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "market_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the market. See response of [/market_reports](#operation/marketReports).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "occupancy",
                  "occupancy_adjusted",
                  "nights_bookable",
                  "asking_rate_w_fees",
                  "adr_w_fees",
                  "lead_time",
                  "revpar_adjusted_w_fees",
                  "revpar_w_fees",
                  "revenue_w_fees"
                ]
              }
            },
            "description": "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)."
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "The start date (inclusive) of the time series (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "Today",
              "minimum": "Today - 2.years",
              "maximum": "Today + 1.year"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "The end date (inclusive) of the time series (YYYY-MM-DD). The `end_date` must be after the `start_date`.",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "Today + 1.year",
              "minimum": "Today - 2.years",
              "maximum": "Today + 1.year"
            }
          },
          {
            "name": "bedrooms",
            "in": "query",
            "required": false,
            "description": "Bedroom group to restrict the data to. If omitted all bedrooms are included.\n\nWhich groups a market is broken down by depends on the listings in it, so they\ndiffer from market to market: a market with many larger listings is broken down\nfurther (`0`, `1`, `2`, `3`, `4`, `5`, `6+`) than one without them (`0`, `1`, `2+`).\nRead a market's groups from its bedroom groups endpoint rather than assuming a\nfixed set. A group the market has no data for is rejected, and the error names the\ngroups it does have.\n\nThe top group holds every listing with at least that many bedrooms. A request for a\ntop group is answered from the exact bedroom count it names where the market is\nbroken down past it, so `4+` returns the 4 bedroom group in a market broken down\ninto `4`, `5` and `6+`.\n",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,2}\\+?$",
              "example": "2"
            }
          },
          {
            "name": "performance",
            "in": "query",
            "required": false,
            "description": "If omitted all performance groups are included.\n\nCustom performance metric by Wheelhouse.\n\nFor each listing in the market we calculate RevPAR per room. In order to deal with\noutliers we find the 95th-percentile, and define three equidistant bins based on that.\n\nFor example, let us say that there are 100 listings in a market, and RevPAR per room\nranges from $50 to $500, and that the 95th percentile equals $300. That means\nthat 95% of the listings have a RevPAR per room less than $300, and 5% of the listings\nhave a RevPAR per room greater than $300. The three equidistant\nbins will be 0-100, 100-200 and 200-300.\n\nIn this case the three performance bucket will be the following:\n  - **Low:** All listings that have a RevPAR per room less than $100\n  - **Average:** All listings that have a RevPAR per room between $100 and $200\n  - **High:** All listings that have a RevPAR per room greater than $200\n",
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "average",
                "high"
              ]
            }
          },
          {
            "name": "property_type",
            "in": "query",
            "required": false,
            "description": "Description of the property this rental is in. If omitted all property types are included.",
            "schema": {
              "type": "string",
              "enum": [
                "apartment",
                "bnb",
                "boat",
                "bus",
                "cabin",
                "camper",
                "camping",
                "castle",
                "hostel",
                "hotel",
                "house",
                "houseboat",
                "island",
                "mill",
                "room",
                "shared",
                "tower"
              ]
            }
          },
          {
            "name": "basis",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "stly"
              ],
              "default": "current"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved time series.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/marketReportTimeSerieResponse"
                }
              }
            }
          },
          "204": {
            "description": "There is not enough data in the selected subset."
          },
          "400": {
            "description": "Bad request. Can be one of:\n\n  * Invalid `market_id`\n  * Invalid `start_date`\n  * Invalid `end_date`\n  * Invalid `start_date`/`end_date`. `end_date` should always be greater than `start_date`\n  * Invalid `bedrooms`. The message names the groups this market is broken down by\n"
          },
          "401": {
            "description": "API key authorization failed."
          },
          "403": {
            "description": "`basis=stly` was requested by an account without early access to it."
          },
          "404": {
            "description": "With `basis=stly`, last year's figures for this market are not available yet."
          }
        }
      }
    },
    "/{market_id}/distribution": {
      "get": {
        "summary": "Monthly metric distribution",
        "tags": [
          "Distributions"
        ],
        "operationId": "marketReportsDistribution",
        "security": [
          {
            "MarketReportApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "market_id",
            "in": "path",
            "required": true,
            "description": "Unique identifier of the market. See response of [/market_reports](#operation/marketReports).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "occupancy",
                  "occupancy_adjusted",
                  "asking_rate_w_fees",
                  "adr_w_fees",
                  "lead_time",
                  "revpar_adjusted_w_fees",
                  "revpar_w_fees",
                  "length_of_stay"
                ]
              }
            },
            "description": "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)."
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "description": "The month of the given distribution (YYYY-MM-01).",
            "schema": {
              "type": "string",
              "format": "date",
              "default": "Today.month",
              "minimum": "Today - 2.years",
              "maximum": "Today + 1.year"
            }
          },
          {
            "name": "bedrooms",
            "in": "query",
            "required": false,
            "description": "Bedroom group to restrict the data to. If omitted all bedrooms are included.\n\nWhich groups a market is broken down by depends on the listings in it, so they\ndiffer from market to market: a market with many larger listings is broken down\nfurther (`0`, `1`, `2`, `3`, `4`, `5`, `6+`) than one without them (`0`, `1`, `2+`).\nRead a market's groups from its bedroom groups endpoint rather than assuming a\nfixed set. A group the market has no data for is rejected, and the error names the\ngroups it does have.\n\nThe top group holds every listing with at least that many bedrooms. A request for a\ntop group is answered from the exact bedroom count it names where the market is\nbroken down past it, so `4+` returns the 4 bedroom group in a market broken down\ninto `4`, `5` and `6+`.\n",
            "schema": {
              "type": "string",
              "pattern": "^\\d{1,2}\\+?$",
              "example": "2"
            }
          },
          {
            "name": "performance",
            "in": "query",
            "required": false,
            "description": "If omitted all performance groups are included.\n\nCustom performance metric by Wheelhouse.\n\nFor each listing in the market we calculate RevPAR per room. In order to deal with\noutliers we find the 95th-percentile, and define three equidistant bins based on that.\n\nFor example, let us say that there are 100 listings in a market, and RevPAR per room\nranges from $50 to $500, and that the 95th percentile equals $300. That means\nthat 95% of the listings have a RevPAR per room less than $300, and 5% of the listings\nhave a RevPAR per room greater than $300. The three equidistant\nbins will be 0-100, 100-200 and 200-300.\n\nIn this case the three performance bucket will be the following:\n  - **Low:** All listings that have a RevPAR per room less than $100\n  - **Average:** All listings that have a RevPAR per room between $100 and $200\n  - **High:** All listings that have a RevPAR per room greater than $200\n",
            "schema": {
              "type": "string",
              "enum": [
                "low",
                "average",
                "high"
              ]
            }
          },
          {
            "name": "property_type",
            "in": "query",
            "required": false,
            "description": "Description of the property this rental is in. If omitted all property types are included.",
            "schema": {
              "type": "string",
              "enum": [
                "apartment",
                "bnb",
                "boat",
                "bus",
                "cabin",
                "camper",
                "camping",
                "castle",
                "hostel",
                "hotel",
                "house",
                "houseboat",
                "island",
                "mill",
                "room",
                "shared",
                "tower"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved distribution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/marketReportDistributionResponse"
                }
              }
            }
          },
          "204": {
            "description": "There is not enough data in the selected subset."
          },
          "400": {
            "description": "Bad request. Can be one of:\n\n  * Invalid `month`\n  * Invalid `bedrooms`. The message names the groups this market is broken down by\n"
          },
          "401": {
            "description": "API key authorization failed."
          }
        }
      }
    }
  }
}
