{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.usewheelhouse.com/ss_api/v1/comp_set"
    }
  ],
  "info": {
    "license": {
      "name": "All Rights Reserved"
    },
    "description": "The Comparable (Comp) Set API allows users to retrieve candidate competitive sets for hypothetical listings.\n",
    "contact": {
      "email": "tech-support@usewheelhouse.com"
    },
    "title": "Wheelhouse Comp Set 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/comp_set/"
    },
    {
      "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": "Listing Discovery",
      "description": "Search for candidate listings by location or look up specific listings by ID.\nUse these endpoints to build a comp set by finding comparable properties near a\nhypothetical or existing listing.\n"
    },
    {
      "name": "Listing Analytics",
      "description": "Retrieve performance data for an individual listing. The nightly time series\nexposes a listing's calendar — asking price, availability, and booking status for\neach stay date — so you can analyse a single comparable property rather than a\nwhole set.\n"
    },
    {
      "name": "Sets",
      "description": "List, inspect, and manage dynamic comp sets owned or managed by the authenticated\nuser. Includes endpoints for associating and disassociating your own listings with\na set.\n"
    },
    {
      "name": "Set Analytics",
      "description": "Retrieve performance data for a dynamic comp set — aggregated metrics, nightly\ntime series, metric distributions, the membership changelog, and the set report.\n"
    },
    {
      "name": "Changelog",
      "description": "### 2026-11-10\n* Added `asking_rate_available` to `GET /sets/{set_id}/aggregated_metrics`: the Asking Rate over available nights only, excluding fees. Booked and blocked nights count in neither the sum nor the count, and it is `null` rather than `0` when no available night has a price. `asking_rate` averages booked and available nights; its description now says so, with no change to its value.\n\n### 2026-11-09\n* Added `market_name` to the listings returned by `GET`, `PUT` and `DELETE /sets/{set_id}/associated_listings`: the human-readable name of the listing's `market_id`.\n\n### 2026-10-23\n* **Behavior change:** `GET /candidates/listing/{listing_id}` and `GET /candidates/listings` return only comparables Wheelhouse tracks on booking channels, plus listings you own or manage. Any other listing id returns a 404 from `GET /candidates/listing/{listing_id}` and is left out of the `GET /candidates/listings` response.\n\n### 2026-10-17\n* Documentation fix: an array query parameter takes more than one value only in brackets, for example `?metric[]=asking_rate_w_fees&metric[]=occupancy`. These docs previously showed `dates` repeated without brackets (`?dates=2026-05-01&dates=2026-06-01`), which keeps only the last value. This applies to `dates` and `metric` on the set analytics endpoints and `listing_ids` on `GET /candidates/listings`. A single value can still be sent without brackets. The API's behavior is unchanged.\n\n### 2026-10-15\n* Bug fix: `amenities` on `GET /candidates`, `GET /candidates/listing/{listing_id}`, and `GET /candidates/listings` lists each amenity as its own array element. Since 2026-09-21 some responses returned the whole list as a single element.\n\n### 2026-10-07\n* Added the `sources` query parameter to `GET /candidates` to return candidates from specific channels only: `A` (Airbnb), `V` (Vrbo), `B` (Booking.com). Omitting it returns candidates from all three, as before.\n\n### 2026-10-01\n* **Behavior change:** `PUT /sets/{set_id}/associated_listings` now requires manage access to each shared listing, as in the Wheelhouse app. A user with *viewer* access to a shared listing could previously associate it with a set, and now gets `403`. Removing a listing from a set with `DELETE` is unchanged. Owners, editors, restricted editors and managers are unaffected.\n\n### 2026-09-21\n* **Behavior change:** `amenities` on `GET /candidates`, `GET /candidates/listing/{listing_id}`, and `GET /candidates/listings` is now an array of amenity names. It was previously a single comma-separated string.\n\n### 2026-08-28\n* Added the `include_host_ids` query parameter to `GET /candidates`, `GET /candidates/listing/{listing_id}`, and `GET /candidates/listings`. When `true`, each listing in the response includes a `host_id` field with the id assigned by the source channel to the listing's host (null when unknown).\n\n### 2026-08-13\n* Added the `offset` query parameter to `GET /candidates` for paging through large result sets.\n* `GET /candidates` now caps `limit` at 1000 when `include_photo_urls=true`. Larger `limit` values are silently reduced to 1000; use `offset` to page through the rest.\n\n### 2026-08-10\n* Added the `include_photo_urls` query parameter to `GET /candidates`, `GET /candidates/listing/{listing_id}`, and `GET /candidates/listings`. When `true`, each listing in the response includes a `photo_urls` array with every known photo URL for that listing.\n\n### 2026-08-05\n* The `listing_ids` on `PUT` and `DELETE /sets/{set_id}/associated_listings` can now be **Wheelhouse listing IDs** as well as channel listing IDs. Pass `channel=wheelhouse` to switch. Wheelhouse IDs are unique across channels, so no channel needs naming alongside them. Existing calls are unaffected.\n\n### 2026-07-31\n* Added `GET /candidates/listing/{listing_id}/time_series` to fetch a single listing's nightly calendar — price, availability, and booking status per stay date — over a date range that defaults to one year back and one year forward.\n\n### 2026-06-25\n* Added the Dynamic Sets endpoints: `GET /sets`, `GET /sets/{set_id}`, `GET /sets/{set_id}/aggregated_metrics`, `GET /sets/{set_id}/listings`, `GET /sets/{set_id}/associated_listings`, `PUT /sets/{set_id}/associated_listings`, `DELETE /sets/{set_id}/associated_listings`, `GET /sets/{set_id}/changelog`, `GET /sets/{set_id}/report`, `GET /sets/{set_id}/time_series`, and `GET /sets/{set_id}/distribution`. Comp Set API users can access their paid dynamic sets.\n\n### 2025-06-16\n* Extended the `GET /candidates` response schema with additional historical fields: `distance_meters`, `updated_at`, `los_365_0`, `market_id`, `nrevenue_365_0`, `nrevpar_365_0`, `nrevpar_open_365_0`, `occupancy_365_0`, `open_occupancy_365_0`, and `openness_365_0`.\n* Added `GET /candidates/listings` endpoint to fetch comp set candidate details for a set of listings by ID.\n\n### 2025-06-10\n* Added `min_bookable_nights_0_365` and `min_open_occupancy_0_365` filter parameters to `GET /candidates`.\n* Added `GET /candidates/listing/{listing_id}` endpoint to fetch comp set candidate details for a single listing by ID.\n\n### 2025-02-18\n* Initial release of the Wheelhouse Comp Set API.\n* Endpoints: `GET /candidates` to search for candidate listings by location (lat/long/radius) or market ID, with filters for bedrooms, bathrooms, and room type.\n"
    }
  ],
  "security": [
    {
      "CompSetApiKey": [],
      "UserApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "CompSetApiKey": {
        "name": "X-Integration-Api-Key",
        "in": "header",
        "type": "apiKey",
        "description": "All comp set integrations will be given a comp set integration API key. [Contact\nus](mailto:tech-support@usewheelhouse.com) with a description of your use-case to get one.\n"
      },
      "UserApiKey": {
        "name": "X-User-API-Key",
        "in": "header",
        "type": "apiKey",
        "description": "Requests to the API must be made in a specific User's context. Specifically, the user to whom the\nUserApiKey belongs must be the owner of the listing/comp set being queried.\n\n**BOTH API key headers are required** to make Comp Set API calls     \n"
      }
    },
    "schemas": {
      "Listing": {
        "type": "object",
        "properties": {
          "listing_id": {
            "type": "integer",
            "description": "Unique identifier for the listing."
          },
          "distance_meters": {
            "type": "integer",
            "description": "Distance in meters from the search location."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last time the listing data was updated."
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of amenities available at the listing."
          },
          "anr_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Average nightly rate for the last 365 days. Null if not applicable."
          },
          "apr_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Average price per night for the last 365 days. Null if not applicable."
          },
          "available_nights_365_0": {
            "type": "integer",
            "description": "Number of available nights in the last 365 days."
          },
          "bathrooms": {
            "type": "number",
            "description": "Number of bathrooms, can be a decimal for half baths."
          },
          "bedrooms": {
            "type": "integer",
            "description": "Number of bedrooms."
          },
          "beds": {
            "type": "integer",
            "description": "Number of beds."
          },
          "blocked_nights_365_0": {
            "type": "integer",
            "description": "Number of blocked nights in the last 365 days."
          },
          "bookable_nights_365_0": {
            "type": "integer",
            "description": "Number of bookable nights in the last 365 days."
          },
          "booked_nights_365_0": {
            "type": "integer",
            "description": "Number of booked nights in the last 365 days."
          },
          "cleaning_fee": {
            "type": "number",
            "description": "Cleaning fee in the specified currency."
          },
          "currency": {
            "type": "string",
            "description": "Currency code for the listing's prices."
          },
          "guests_included": {
            "type": "integer",
            "description": "Number of guests included in the base price."
          },
          "lat": {
            "type": "number",
            "format": "float",
            "description": "Latitude of the listing location."
          },
          "long": {
            "type": "number",
            "format": "float",
            "description": "Longitude of the listing location."
          },
          "lead_time_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Lead time for booking for the last 365 days. Null if not applicable."
          },
          "listing_created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the listing was created."
          },
          "listing_last_updated": {
            "type": "string",
            "format": "date-time",
            "description": "The last time the listing was updated."
          },
          "los_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Average length of stay for the last 365 days. Null if not applicable."
          },
          "market_id": {
            "type": "integer",
            "description": "Identifier for the market where the listing is located."
          },
          "nrevenue_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Net revenue for the last 365 days. Null if not applicable."
          },
          "nrevpar_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Net revenue per available room for the last 365 days. Null if not applicable."
          },
          "nrevpar_open_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Net revenue per available room for open nights in the last 365 days. Null if not applicable."
          },
          "occupancy_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Occupancy rate for the last 365 days. Null if not applicable."
          },
          "open_occupancy_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Occupancy rate for open nights in the last 365 days. Null if not applicable."
          },
          "openness_365_0": {
            "type": "number",
            "nullable": true,
            "description": "Openness rate for the last 365 days. Null if not applicable."
          },
          "openness_90_0": {
            "type": "number",
            "nullable": true,
            "description": "Openness rate for the last 90 days. Null if not applicable."
          },
          "property_type": {
            "type": "string",
            "description": "Type of property (e.g., house, apartment)."
          },
          "review_count": {
            "type": "number",
            "nullable": true,
            "description": "Number of reviews for the listing. Null if no reviews."
          },
          "room_type": {
            "type": "string",
            "description": "Type of room (e.g., house, private room)."
          },
          "sleeps": {
            "type": "integer",
            "description": "Maximum number of people the listing can accommodate."
          },
          "star_rating": {
            "type": "number",
            "nullable": true,
            "description": "Star rating of the listing. Null if not rated."
          },
          "thumb_url": {
            "type": "string",
            "nullable": true,
            "description": "URL for the thumbnail image of the listing."
          },
          "title": {
            "type": "string",
            "description": "Title of the listing."
          },
          "url": {
            "type": "string",
            "description": "URL to view the listing."
          },
          "owner_name": {
            "type": "string",
            "description": "Name of the listing owner."
          },
          "photo_urls": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Full list of photo URLs for the listing. Only returned when the request sets `include_photo_urls=true`."
          },
          "host_id": {
            "type": "string",
            "nullable": true,
            "description": "Id assigned by the source channel to the listing's host. Only returned when the request sets `include_host_ids=true`; null when unknown."
          },
          "source": {
            "type": "string",
            "description": "Short id of the channel the listing comes from, such as `A` (Airbnb), `V` (Vrbo), or `B` (Booking.com). `GET /candidates` returns only these three; the lookups by listing id can return other channels."
          },
          "status": {
            "type": "string",
            "description": "Status of the listing (e.g., active, hidden, review, removed)."
          }
        }
      },
      "ListingCalendarDay": {
        "type": "object",
        "description": "A single night of a listing's calendar.",
        "properties": {
          "stay_date": {
            "type": "string",
            "format": "date",
            "description": "The night this entry describes."
          },
          "price": {
            "type": "integer",
            "nullable": true,
            "description": "Nightly asking price for the stay date, in `currency`. Null when no price was observed."
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "Currency code the price is expressed in."
          },
          "is_available": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the night is bookable on the channel."
          },
          "status": {
            "type": "string",
            "description": "Booking status of the night — `available`, `booked`, or `blocked`."
          },
          "booking_probability": {
            "type": "number",
            "description": "Confidence that the night is booked rather than blocked, from 0 to 1. Nights that were never observed as taken report 0."
          },
          "block_time": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Timestamp at which the night was first observed as taken (booked or blocked). Null while the night is still available."
          }
        }
      },
      "AggregatedMetric": {
        "type": "object",
        "properties": {
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "Start of the aggregation period."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "End of the aggregation period."
          },
          "occupancy": {
            "type": "number",
            "nullable": true,
            "description": "Occupancy rate over the period."
          },
          "occupancy_adjusted": {
            "type": "number",
            "nullable": true,
            "description": "Open occupancy rate (excludes blocked nights) over the period."
          },
          "nights_percent_open": {
            "type": "number",
            "nullable": true,
            "description": "Percentage of nights that were open over the period."
          },
          "revenue": {
            "type": "number",
            "nullable": true,
            "description": "Total net revenue over the period."
          },
          "adr": {
            "type": "number",
            "nullable": true,
            "description": "Average daily rate over the period."
          },
          "asking_rate": {
            "type": "number",
            "nullable": true,
            "description": "Asking Rate (Booked + Available Nights): average nightly price across booked and available nights, excluding fees. A booked night counts at the rate it was booked for, an available night at its current price. Blocked nights are left out. `null` when no night qualifies. See `asking_rate_available` for available nights only."
          },
          "asking_rate_available": {
            "type": "number",
            "nullable": true,
            "description": "Asking Rate (Available Nights): sum of nightly prices on available nights / number of available nights, excluding fees. Booked and blocked nights, and nights without a price, count in neither. `null`, not `0`, when no available night has a price."
          },
          "revpar": {
            "type": "number",
            "nullable": true,
            "description": "Revenue per available room over the period."
          },
          "revpar_adjusted": {
            "type": "number",
            "nullable": true,
            "description": "Revenue per available room excluding blocked nights."
          },
          "revenue_available": {
            "type": "number",
            "nullable": true,
            "description": "Revenue earned from available nights."
          },
          "revenue_blocked": {
            "type": "number",
            "nullable": true,
            "description": "Potential revenue from blocked nights."
          },
          "lead_time": {
            "type": "number",
            "nullable": true,
            "description": "Average lead time for bookings in days."
          },
          "length_of_stay": {
            "type": "number",
            "nullable": true,
            "description": "Average length of stay in nights."
          },
          "nights_available": {
            "type": "number",
            "nullable": true,
            "description": "Number of available nights."
          },
          "nights_blocked": {
            "type": "number",
            "nullable": true,
            "description": "Number of blocked nights."
          },
          "nights_booked": {
            "type": "number",
            "nullable": true,
            "description": "Number of booked nights."
          },
          "nights_bookable": {
            "type": "number",
            "nullable": true,
            "description": "Number of bookable nights."
          },
          "nights_calendar": {
            "type": "integer",
            "nullable": true,
            "description": "Total number of nights in the calendar period."
          },
          "count_bookings": {
            "type": "integer",
            "nullable": true,
            "description": "Number of bookings over the period."
          }
        }
      },
      "DynamicSet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the dynamic set."
          },
          "user_id": {
            "type": "integer",
            "description": "ID of the user who owns the dynamic set."
          },
          "name": {
            "type": "string",
            "description": "Name of the dynamic set."
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Optional description of the dynamic set."
          },
          "kind": {
            "type": "string",
            "description": "Kind of dynamic set (e.g., other)."
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "Currency code for the dynamic set."
          },
          "is_static": {
            "type": "boolean",
            "description": "Whether the set has static (manually curated) membership."
          },
          "filters": {
            "type": "object",
            "nullable": true,
            "description": "Filter criteria for dynamic set membership."
          },
          "boundary": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            },
            "description": "Geographic boundary polygon coordinates."
          },
          "listing_counts": {
            "type": "object",
            "description": "Count of member listings grouped by status."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Last time the dynamic set was updated."
          }
        }
      },
      "ChangelogEntry": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "description": "The changelog action (e.g., added, removed)."
          },
          "edit_details": {
            "type": "object",
            "nullable": true,
            "description": "Additional details about the change."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the change was recorded."
          },
          "listing_id": {
            "type": "integer",
            "nullable": true,
            "description": "ID of the listing involved in the change."
          }
        }
      },
      "PricingApiListing": {
        "type": "object",
        "description": "A user-owned listing as returned by the associated_listings endpoints.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Channel-scoped listing identifier."
          },
          "wheelhouse_id": {
            "type": "integer",
            "nullable": true,
            "description": "Wheelhouse internal listing ID."
          },
          "base_min_night_stay": {
            "type": "integer",
            "nullable": true,
            "description": "Minimum night stay requirement."
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "Currency code for the listing."
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "Listing title."
          },
          "owner_name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the listing owner."
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Listing description."
          },
          "nickname": {
            "type": "string",
            "nullable": true,
            "description": "Internal nickname for the listing."
          },
          "num_bathrooms": {
            "type": "number",
            "nullable": true,
            "description": "Number of bathrooms."
          },
          "num_bedrooms": {
            "type": "integer",
            "nullable": true,
            "description": "Number of bedrooms."
          },
          "room_type": {
            "type": "string",
            "nullable": true,
            "description": "Type of room."
          },
          "property_type": {
            "type": "string",
            "nullable": true,
            "description": "Type of property."
          },
          "is_active": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the listing is currently active."
          },
          "channel_ids": {
            "type": "object",
            "nullable": true,
            "description": "Platform-specific listing IDs."
          },
          "location": {
            "type": "object",
            "nullable": true,
            "description": "Location information for the listing."
          },
          "access_level": {
            "type": "string",
            "nullable": true,
            "description": "How the authenticated user accesses this listing (owner, viewer, restricted_editor, editor, or manager)."
          },
          "amenities": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "List of amenities."
          },
          "num_beds": {
            "type": "integer",
            "nullable": true,
            "description": "Number of beds."
          },
          "num_reviews": {
            "type": "integer",
            "nullable": true,
            "description": "Number of reviews."
          },
          "star_rating": {
            "type": "number",
            "nullable": true,
            "description": "Star rating of the listing."
          },
          "num_photos": {
            "type": "integer",
            "nullable": true,
            "description": "Number of photos."
          },
          "security_deposit": {
            "type": "number",
            "nullable": true,
            "description": "Security deposit amount."
          },
          "source_user_id": {
            "type": "string",
            "nullable": true,
            "description": "Source platform user ID."
          },
          "thumb_url": {
            "type": "string",
            "nullable": true,
            "description": "Thumbnail image URL."
          },
          "listing_preferences": {
            "type": "object",
            "nullable": true,
            "description": "Listing preferences and fee structure."
          },
          "meta": {
            "type": "object",
            "nullable": true,
            "description": "Additional metadata."
          },
          "market_id": {
            "type": "integer",
            "nullable": true,
            "description": "Market identifier."
          },
          "market_name": {
            "type": "string",
            "nullable": true,
            "description": "Human-readable name of the market identified by `market_id`, e.g. `San Francisco, CA, United States`."
          },
          "channel": {
            "type": "string",
            "nullable": true,
            "description": "Channel/platform name."
          },
          "links": {
            "type": "object",
            "nullable": true,
            "description": "Useful links (calendar, upgrade)."
          },
          "wheelhouse_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the listing was created in Wheelhouse."
          }
        }
      }
    }
  },
  "paths": {
    "/candidates": {
      "get": {
        "tags": [
          "Listing Discovery"
        ],
        "summary": "Fetch Comp Set Candidate Listings",
        "description": "Given the search params, retrieve a list of candidate listings that could be added to a comp set.",
        "operationId": "getCompSetCandidates",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "lat",
            "in": "path",
            "required": true,
            "description": "Latitude of hypothetical listing.",
            "schema": {
              "type": "float"
            }
          },
          {
            "name": "long",
            "in": "path",
            "required": true,
            "description": "Longitude of hypothetical listing.",
            "schema": {
              "type": "float"
            }
          },
          {
            "name": "radius",
            "in": "path",
            "required": true,
            "description": "Radius in meters to search for candidate listings.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "path",
            "required": true,
            "description": "Maximum number of candidate listings. When `include_photo_urls=true`, values above 1000 are silently reduced to 1000; use `offset` to page through the rest.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Number of results to skip before returning `limit` candidates. Combine with `limit` to page through results. Results are ordered by distance (when a location is provided) then by listing id, so a stable `offset` walks each candidate at most once.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "min_bedrooms",
            "in": "path",
            "required": false,
            "description": "Minimum number of bedrooms in returned listings.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "max_bedrooms",
            "in": "path",
            "required": false,
            "description": "Maximum number of bedrooms in returned listings.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "min_bathrooms",
            "in": "path",
            "required": false,
            "description": "Minimum number of bathroomss in returned listings. Includes half-baths as decimals.",
            "schema": {
              "type": "float"
            }
          },
          {
            "name": "max_bathrooms",
            "in": "path",
            "required": false,
            "description": "Maximum number of bathrooms in returned listings. Includes half-baths as decimals.",
            "schema": {
              "type": "float"
            }
          },
          {
            "name": "room_types",
            "in": "path",
            "required": false,
            "description": "Array of room types to include in results. Possible values ['castle', 'apartment', 'camper', 'bus', 'tower', 'bnb', 'island', 'boat', 'hostel', 'houseboat', 'hotel', 'house', 'holiday_home', 'cabin', 'mill', 'other', 'room', 'camping', 'shared']",
            "schema": {
              "type": "array"
            }
          },
          {
            "name": "sources",
            "in": "query",
            "required": false,
            "description": "Channels to return candidates from. Possible values are `A` (Airbnb), `V` (Vrbo), and `B` (Booking.com). Pass several as a comma-separated list (`sources=A,V`) or with brackets (`sources[]=A&sources[]=V`). Repeating the plain parameter (`sources=A&sources=V`) keeps only the last value. Omit it to return candidates from all three channels. Any other value returns `400`.",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "A",
                  "V",
                  "B"
                ]
              }
            }
          },
          {
            "name": "min_bookable_nights_0_365",
            "in": "path",
            "required": false,
            "description": "Minimum number of bookable nights in the next 365 days.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "min_open_occupancy_0_365",
            "in": "path",
            "required": false,
            "description": "Minimum open occupancy in the next 365 days (percentage)",
            "schema": {
              "type": "float"
            }
          },
          {
            "name": "include_photo_urls",
            "in": "query",
            "required": false,
            "description": "When `true`, each returned listing includes a `photo_urls` array with every known photo URL. Defaults to `false` to keep the response small.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "include_host_ids",
            "in": "query",
            "required": false,
            "description": "When `true`, each returned listing includes a `host_id` field with the id assigned by the source channel to the listing's host (null when unknown). Defaults to `false`.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved comp sets.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          }
        }
      }
    },
    "/sets": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "List all dynamic sets for the authenticated user",
        "description": "Returns a paginated list of dynamic comp sets owned or managed by the authenticated user. Only paid or admin-granted sets are returned.",
        "operationId": "listSets",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination (default 1).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Number of results per page (default 50, max 100).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved dynamic sets.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DynamicSet"
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          }
        }
      }
    },
    "/sets/{set_id}": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "Get a single dynamic set",
        "description": "Returns detailed information about a specific dynamic comp set.",
        "operationId": "getSet",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the dynamic set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DynamicSet"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/aggregated_metrics": {
      "get": {
        "tags": [
          "Set Analytics"
        ],
        "summary": "Get aggregated metrics for a dynamic set",
        "description": "Returns aggregated performance metrics for the active member listings of a dynamic set. Optionally filtered by specific dates.",
        "operationId": "getSetAggregatedMetrics",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency code for the returned metrics. Defaults to the set's currency.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dates",
            "in": "query",
            "required": false,
            "description": "Array of specific dates to aggregate over. Send more than one in brackets (`?dates[]=2026-05-01&dates[]=2026-06-01`); a key repeated without brackets keeps only its last value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "date"
              }
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved aggregated metrics.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AggregatedMetric"
                      }
                    },
                    "currency": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/listings": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "Get listings in a dynamic set grouped by status",
        "description": "Returns the member listings of a dynamic set organized by their membership status.",
        "operationId": "getSetListings",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved listings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Object keyed by status, each value being an array of listings."
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/associated_listings": {
      "get": {
        "tags": [
          "Sets"
        ],
        "summary": "Get user listings associated with a dynamic set",
        "description": "Returns the authenticated user's own listings that have been associated with the dynamic set.",
        "operationId": "getSetAssociatedListings",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved associated listings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PricingApiListing"
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      },
      "put": {
        "tags": [
          "Sets"
        ],
        "summary": "Associate user listings with a dynamic set",
        "description": "Associates one or more of the authenticated user's channel listings with a dynamic set. Requires manage-level access to the set, and to each listing named that is shared with the user rather than owned by them.",
        "operationId": "addSetAssociatedListings",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "listing_ids"
                ],
                "properties": {
                  "listing_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Channel listing IDs to associate, or Wheelhouse listing IDs when `channel` is `wheelhouse` (at most 500 per request)."
                  },
                  "channel": {
                    "type": "string",
                    "description": "Channel name (required when no X-Integration-Api-Key channel is set), or the literal `wheelhouse` to read `listing_ids` as Wheelhouse listing IDs instead."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully associated listings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PricingApiListing"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Insufficient permissions to manage this set, or to manage one of the listings named"
          },
          "404": {
            "description": "Dynamic set or listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this resource"
          },
          "422": {
            "description": "Missing channel parameter (channel must be provided when no channel is implied by the integration key)"
          }
        }
      },
      "delete": {
        "tags": [
          "Sets"
        ],
        "summary": "Remove associated user listings from a dynamic set",
        "description": "Removes one or more of the authenticated user's listings from a dynamic set. Requires manage-level access to the set.",
        "operationId": "removeSetAssociatedListings",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "listing_ids"
                ],
                "properties": {
                  "listing_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Channel listing IDs to disassociate, or Wheelhouse listing IDs when `channel` is `wheelhouse` (at most 500 per request)."
                  },
                  "channel": {
                    "type": "string",
                    "description": "Channel name (required when no X-Integration-Api-Key channel is set), or the literal `wheelhouse` to read `listing_ids` as Wheelhouse listing IDs instead."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully removed associated listings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PricingApiListing"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Insufficient permissions to manage this set"
          },
          "404": {
            "description": "Dynamic set or listing not found"
          },
          "422": {
            "description": "Missing channel parameter (channel must be provided when no channel is implied by the integration key)"
          }
        }
      }
    },
    "/sets/{set_id}/changelog": {
      "get": {
        "tags": [
          "Set Analytics"
        ],
        "summary": "Get the changelog of a dynamic set",
        "description": "Returns the membership changelog for a dynamic set, optionally filtered by date range.",
        "operationId": "getSetChangelog",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "description": "Start date (inclusive) — only return changes on or after this date.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "before",
            "in": "query",
            "required": false,
            "description": "End date (exclusive) — only return changes before this date.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved changelog.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChangelogEntry"
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/report": {
      "get": {
        "tags": [
          "Set Analytics"
        ],
        "summary": "Get the report URL for a dynamic set",
        "description": "Returns a signed URL to download the report for the dynamic set.",
        "operationId": "getSetReport",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved report URL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Signed URL to download the report."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/time_series": {
      "get": {
        "tags": [
          "Set Analytics"
        ],
        "summary": "Get time series metrics for a dynamic set",
        "description": "Returns time series metric data for the member listings of a dynamic set over a date range.",
        "operationId": "getSetTimeSeries",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Start date for the time series (inclusive). Defaults to today.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "End date for the time series (exclusive). Defaults to one year from today.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved time series data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid date range"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/sets/{set_id}/distribution": {
      "get": {
        "tags": [
          "Set Analytics"
        ],
        "summary": "Get metric distributions for a dynamic set",
        "description": "Returns the distribution of metrics across listing-days for a dynamic set within a given month.",
        "operationId": "getSetDistribution",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "set_id",
            "in": "path",
            "required": true,
            "description": "ID of the dynamic set.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "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.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "description": "Month to compute distributions for (YYYY-MM-DD format, first day of month). Defaults to the current month.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved distribution data.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid month"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Dynamic set not found"
          }
        }
      }
    },
    "/candidates/listing/{listing_id}": {
      "get": {
        "tags": [
          "Listing Discovery"
        ],
        "summary": "Fetch Comp Set candidate details for a specific listing",
        "description": "Given a listing id in the path, retrieve the listing details.\n\nThe listing must be a comparable Wheelhouse tracks on a booking channel, or a\nlisting you own or manage. Any other listing returns a 404.\n",
        "operationId": "getCompSetCandidateById",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "Wheelhouse listing id.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "include_photo_urls",
            "in": "query",
            "required": false,
            "description": "When `true`, the returned listing includes a `photo_urls` array with every known photo URL. Defaults to `false`.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "include_host_ids",
            "in": "query",
            "required": false,
            "description": "When `true`, the returned listing includes a `host_id` field with the id assigned by the source channel to the listing's host (null when unknown). Defaults to `false`.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved comp set listing details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found, or not a comparable or a listing you own or manage"
          }
        }
      }
    },
    "/candidates/listing/{listing_id}/time_series": {
      "get": {
        "tags": [
          "Listing Analytics"
        ],
        "summary": "Get a listing's nightly calendar time series",
        "description": "Returns the calendar of a single listing over a date range — one entry per stay\ndate, ordered by stay date, carrying the nightly asking price, whether the night\nis available, and its booking status.\n\nBoth `start_date` and `end_date` are inclusive, so passing the same date for both\nreturns that single night. The range defaults to one year back and one year\nforward, and may span from three years back to one year forward. Historical\ncalendar data is retained for roughly the last twelve months, so earlier stay\ndates return no entries. When no calendar data exists for the requested range,\nthe response is an empty array.\n\nThe listing must be a comparable Wheelhouse tracks on Airbnb, Vrbo, or\nBooking.com. Anything else returns a 404 — including your own listings, even on\nthose channels, since a listing you have connected to Wheelhouse is not a\ncomparable; read its calendar with the Wheelhouse RM API instead.\n",
        "operationId": "getCompSetCandidateTimeSeries",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "Wheelhouse listing id.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "First stay date to return (inclusive). Defaults to one year ago.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Last stay date to return (inclusive). Defaults to one year from today.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency code for the returned prices. Defaults to the listing's currency.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the listing's calendar time series.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ListingCalendarDay"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid date range or currency"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Listing not found, or not a listing on Airbnb, Vrbo, or Booking.com"
          }
        }
      }
    },
    "/candidates/listings": {
      "get": {
        "tags": [
          "Listing Discovery"
        ],
        "summary": "Fetch Comp Set candidate details for a set of listings",
        "description": "Given listing ids in the query, retrieve the details of each listing.\n\nOnly comparables Wheelhouse tracks on booking channels and listings you own or\nmanage are returned. Any other id is left out of the response.\n",
        "operationId": "getCompSetCandidatesByIds",
        "security": [
          {
            "CompSetApiKey": [],
            "UserApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "listing_ids",
            "in": "query",
            "required": true,
            "description": "Array of Wheelhouse listing ids. Send more than one in brackets (`?listing_ids[]=123&listing_ids[]=456`); a key repeated without brackets keeps only its last value.",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            }
          },
          {
            "name": "include_photo_urls",
            "in": "query",
            "required": false,
            "description": "When `true`, each returned listing includes a `photo_urls` array with every known photo URL. Defaults to `false` to keep the response small.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "include_host_ids",
            "in": "query",
            "required": false,
            "description": "When `true`, each returned listing includes a `host_id` field with the id assigned by the source channel to the listing's host (null when unknown). Defaults to `false`.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved comp set listing details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          }
        }
      }
    }
  }
}
