{
  "openapi": "3.0.1",
  "info": {
    "title": "Short-Term Rental Revenue Analyzer — AirDNA Alternative",
    "description": "Analyze supplied short-term rental observations for occupancy, ADR, RevPAR, revenue, and comparable ranges. Add a property scenario to estimate income, expenses, cap rate, and break-even occupancy from your assumptions.",
    "version": "0.2",
    "x-build-id": "IVCURIGmBOmNq8ubM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~airdna-alternative/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-airdna-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/khadinakbar~airdna-alternative/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-airdna-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/khadinakbar~airdna-alternative/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-airdna-alternative",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "marketName",
          "monthlyObservations"
        ],
        "properties": {
          "marketName": {
            "title": "Market name",
            "minLength": 2,
            "maxLength": 160,
            "type": "string",
            "description": "Name the market, comp set, or portfolio being summarized, for example 'Austin, TX — 2-bedroom entire homes'. This label is returned unchanged and does not trigger a geographic search. Use a stable name when comparing repeated reports; it is not an Airbnb destination URL."
          },
          "monthlyObservations": {
            "title": "Authorized monthly observations",
            "minItems": 1,
            "maxItems": 10000,
            "type": "array",
            "description": "Monthly actual or authorized comp-set observations. Each item needs month, listingId, availableNights, bookedNights, grossRevenue, and currency; optional bedrooms and source are retained as provenance. Enter JSON with month '2026-06', listingId 'host-unit-1', availableNights 30, bookedNights 21, grossRevenue 4830, currency 'USD'. Do not use blocked calendar nights as booked nights and do not include guest names, calendar URLs, or credentials.",
            "items": {
              "type": "object",
              "properties": {
                "month": {
                  "title": "Month",
                  "type": "string",
                  "description": "Observation month in YYYY-MM format."
                },
                "listingId": {
                  "title": "Listing ID",
                  "type": "string",
                  "description": "Stable internal or authorized source listing identifier."
                },
                "availableNights": {
                  "title": "Available nights",
                  "type": "integer",
                  "description": "Nights available for sale, excluding booked nights.",
                  "minimum": 0,
                  "maximum": 31
                },
                "bookedNights": {
                  "title": "Booked nights",
                  "type": "integer",
                  "description": "Actual booked nights from an authorized record.",
                  "minimum": 0,
                  "maximum": 31
                },
                "grossRevenue": {
                  "title": "Gross revenue",
                  "type": "number",
                  "description": "Actual gross revenue attributed to booked nights.",
                  "minimum": 0,
                  "maximum": 100000000
                },
                "currency": {
                  "title": "Currency",
                  "type": "string",
                  "description": "Three-letter currency matching the report currency."
                },
                "bedrooms": {
                  "title": "Bedrooms",
                  "type": "number",
                  "description": "Optional bedroom count used by targetBedrooms filtering."
                },
                "source": {
                  "title": "Source label",
                  "type": "string",
                  "description": "Optional provenance label such as pms_export."
                }
              }
            }
          },
          "targetBedrooms": {
            "title": "Target bedroom count",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Optionally limit the comp set to one bedroom count, for example 2. The default analyzes all valid observations; rows without a bedroom count are excluded only when this filter is set. This is a comp-set filter, not a minimum-bedroom search on a booking site."
          },
          "currency": {
            "title": "Report currency",
            "minLength": 3,
            "maxLength": 3,
            "type": "string",
            "description": "Three-letter currency required for every included observation, for example USD. The Actor rejects mixed currencies instead of converting them with an undisclosed exchange rate. Defaults to USD and is not a request to fetch live foreign-exchange data.",
            "default": "USD"
          },
          "minimumListingsPerMonth": {
            "title": "Minimum listings per month",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum distinct listings needed before a monthly market metric is labelled sufficient, for example 5. The default is 5; lower samples are still calculated but marked low_coverage. This threshold changes report confidence only, not the input rows used in arithmetic.",
            "default": 5
          },
          "propertyScenario": {
            "title": "Property revenue scenario",
            "type": "object",
            "description": "Optionally calculate a transparent Rentalizer-style annual property scenario from the supplied comp set. By default it uses the comp set's weighted occupancy and ADR. Override either value to test a conservative or aggressive case. This is deterministic scenario math, not an address lookup, appraisal, or demand forecast.",
            "properties": {
              "name": {
                "title": "Scenario name",
                "type": "string",
                "description": "Label for the target property or scenario.",
                "minLength": 2,
                "maxLength": 160
              },
              "availableNightsPerYear": {
                "title": "Available nights per year",
                "type": "integer",
                "description": "Annual nights offered for sale.",
                "minimum": 1,
                "maximum": 366,
                "default": 365
              },
              "nightlyRate": {
                "title": "Nightly rate override",
                "type": "number",
                "description": "Optional nightly rate assumption; omit to use comp-set ADR.",
                "minimum": 0,
                "maximum": 100000000
              },
              "occupancyRate": {
                "title": "Occupancy override",
                "type": "number",
                "description": "Optional 0–1 occupancy assumption; omit to use comp-set occupancy.",
                "minimum": 0,
                "maximum": 1
              },
              "averageStayNights": {
                "title": "Average stay nights",
                "type": "number",
                "description": "Average nights per stay used to estimate stay count.",
                "minimum": 0.1,
                "maximum": 366,
                "default": 3
              },
              "cleaningFeePerStay": {
                "title": "Cleaning fee per stay",
                "type": "number",
                "description": "Gross cleaning-fee revenue per estimated stay.",
                "minimum": 0,
                "maximum": 100000000,
                "default": 0
              },
              "variableExpenseRate": {
                "title": "Variable expense rate",
                "type": "number",
                "description": "Variable operating expenses as a 0–1 share of projected gross revenue.",
                "minimum": 0,
                "maximum": 1,
                "default": 0
              },
              "annualFixedCosts": {
                "title": "Annual fixed costs",
                "type": "number",
                "description": "Annual fixed operating costs included in projected NOI.",
                "minimum": 0,
                "maximum": 100000000,
                "default": 0
              },
              "purchasePrice": {
                "title": "Purchase price",
                "type": "number",
                "description": "Optional property price used to calculate projected cap rate.",
                "minimum": 0,
                "maximum": 100000000
              }
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}