{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.usewheelhouse.com/ss_api/v1/demand_signal"
    }
  ],
  "info": {
    "license": {
      "name": "All Rights Reserved"
    },
    "description": "The Demand Signal API allows users to query for demand insights for future stay dates. The\nresponse provides a demand signal for each stay date to indicate high and low demand periods,\nblending asking-price and booking-pace information into a single value.\n",
    "contact": {
      "email": "tech-support@usewheelhouse.com"
    },
    "title": "Wheelhouse Demand Signal 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": "Rate Limit",
      "description": "By default, our API is limited to 20 requests / minute.  This can be adjusted so\nplease [reach out to us](mailto:tech-support@usewheelhouse.com) with any questions.\n"
    },
    {
      "name": "Host",
      "description": "https://api.usewheelhouse.com/ss_api/v1/demand_signal/"
    },
    {
      "name": "Local Demand",
      "description": "This endpoint provides the local demand based on a latitude/longitude coordinate.\n"
    },
    {
      "name": "Changelog",
      "description": "### 2026-09-01\n* Remove the deprecated `predictive_demand`, `reactive_demand` and `reactive_weight` fields.\n  Use `demand` instead.\n\n### 2026-07-30\n* Add `demand`, one demand signal per stay date that blends asking-price and booking-pace data.\n  `predictive_demand` and `reactive_demand` now mirror it and are deprecated, and\n  `reactive_weight` is fixed at 0.5.\n\n### 2025-10-09\n* Add the optional `baths` and `guests_included` parameters.\n\n### 2021-09-09\n* Initial release of the Demand Signal API.\n"
    }
  ],
  "security": [
    {
      "IntegrationApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "IntegrationApiKey": {
        "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": {
      "demandReponse": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "stay_date": {
              "description": "Stay date (YYYY-MM-DD).",
              "type": "string",
              "format": "date"
            },
            "demand": {
              "description": "Demand for the stay date, blending asking-price and booking-pace data (< 1.0 low demand, 1.0 average demand, > 1.0 high demand).",
              "type": "number",
              "minimum": 0
            }
          }
        }
      }
    }
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Local demand",
        "tags": [
          "Local Demand"
        ],
        "operationId": "localDemand",
        "security": [
          {
            "IntegrationApiKey": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "country_code",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "required": true,
            "description": "The ISO-3166 2 letter country code."
          },
          {
            "in": "query",
            "name": "latitude",
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            },
            "required": true,
            "description": "The latitude coordinate of this location."
          },
          {
            "in": "query",
            "name": "longitude",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            },
            "required": true,
            "description": "The longitude coordinate of this location."
          },
          {
            "in": "query",
            "name": "baths",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            },
            "required": false,
            "description": "The number of bathrooms in the property. (default 1)"
          },
          {
            "in": "query",
            "name": "guests_included",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "required": false,
            "description": "The number of guests included in the nightly price of the unit. (default 2)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved demand signals.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/demandReponse"
                }
              }
            }
          },
          "204": {
            "description": "Not enough data in the provided location."
          },
          "401": {
            "description": "API key authorization failed."
          },
          "422": {
            "description": "Location not covered by a market."
          }
        }
      }
    }
  }
}
