{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Revenue Estimator API: ADR, Occupancy, Dynamic Prices",
    "description": "Airbnb and short-term rental revenue estimator for any address or lat/lng: annual and monthly revenue, ADR and occupancy at 25th to 90th percentiles by bedroom count, plus daily dynamic prices, listings and neighborhood market data through the PriceLabs API. Bring your own key.",
    "version": "0.1",
    "x-build-id": "oWbaaA1auiJglhwVZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~airbnb-revenue-estimator-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-airbnb-revenue-estimator-api",
        "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/nabeelbaghoor~airbnb-revenue-estimator-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-airbnb-revenue-estimator-api",
        "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/nabeelbaghoor~airbnb-revenue-estimator-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-airbnb-revenue-estimator-api",
        "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",
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "revenueEstimate",
              "listings",
              "listingPrices",
              "neighborhoodData"
            ],
            "type": "string",
            "description": "Each mode calls one documented PriceLabs read endpoint. The revenue estimate needs a Revenue Estimator API key; the three listing modes need a Customer API key for your own PriceLabs account. Nothing is ever written to PriceLabs.",
            "default": "revenueEstimate"
          },
          "locations": {
            "title": "Addresses or coordinates",
            "type": "array",
            "description": "Revenue estimate. One full street address, or one latitude,longitude pair in decimal degrees, per line. Each line is estimated for every bedroom count below, and PriceLabs bills every request it receives.",
            "items": {
              "type": "string"
            }
          },
          "bedrooms": {
            "title": "Bedroom counts",
            "type": "array",
            "description": "Revenue estimate. One bedroom count per line: 0 for a studio, 1, 2, 3 and so on. Each count is a separate PriceLabs request per location.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Revenue estimate. Three letter currency code for revenue and ADR, such as USD, EUR, GBP, INR or AUD.",
            "default": "USD"
          },
          "monthlyBreakdown": {
            "title": "Monthly breakdown",
            "type": "boolean",
            "description": "Revenue estimate. Include the month by month revenue, ADR and occupancy percentiles and listing counts.",
            "default": true
          },
          "rowLayout": {
            "title": "Row layout",
            "enum": [
              "estimate",
              "months"
            ],
            "type": "string",
            "description": "Revenue estimate. One row per location and bedroom count holding the annual figures and a months list, or one row per month.",
            "default": "estimate"
          },
          "poolFilter": {
            "title": "Pool filter",
            "enum": [
              "",
              "1",
              "0"
            ],
            "type": "string",
            "description": "Optional, revenue estimate. Compare only listings with a pool (1), only listings without (0), or all of them (empty).",
            "default": ""
          },
          "hotTubFilter": {
            "title": "Hot tub filter",
            "enum": [
              "",
              "1",
              "0"
            ],
            "type": "string",
            "description": "Optional, revenue estimate. Compare only listings with a hot tub (1), only listings without (0), or all of them (empty).",
            "default": ""
          },
          "ratingAbove": {
            "title": "Rating above",
            "minimum": 0,
            "type": "number",
            "description": "Optional, revenue estimate. Only compare listings whose rating is greater than this (sent as \"gt\")."
          },
          "ratingBelow": {
            "title": "Rating below",
            "minimum": 0,
            "type": "number",
            "description": "Optional, revenue estimate. Only compare listings whose rating is less than this (sent as \"lt\")."
          },
          "reviewCountAbove": {
            "title": "Review count above",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, revenue estimate. Only compare listings whose review count is greater than this (sent as \"gt\")."
          },
          "reviewCountBelow": {
            "title": "Review count below",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, revenue estimate. Only compare listings whose review count is less than this (sent as \"lt\")."
          },
          "bathroomsAbove": {
            "title": "Bathrooms above",
            "minimum": 0,
            "type": "number",
            "description": "Optional, revenue estimate. Only compare listings whose bathrooms is greater than this (sent as \"gt\")."
          },
          "bathroomsBelow": {
            "title": "Bathrooms below",
            "minimum": 0,
            "type": "number",
            "description": "Optional, revenue estimate. Only compare listings whose bathrooms is less than this (sent as \"lt\")."
          },
          "maxGuestsAbove": {
            "title": "Max guests above",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, revenue estimate. Only compare listings whose max guests is greater than this (sent as \"gt\")."
          },
          "maxGuestsBelow": {
            "title": "Max guests below",
            "minimum": 0,
            "type": "integer",
            "description": "Optional, revenue estimate. Only compare listings whose max guests is less than this (sent as \"lt\")."
          },
          "skipHidden": {
            "title": "Skip hidden listings",
            "type": "boolean",
            "description": "Account listings mode. Leave out listings hidden on the PriceLabs pricing dashboard.",
            "default": false
          },
          "onlySyncingListings": {
            "title": "Only syncing listings",
            "type": "boolean",
            "description": "Account listings mode. Return only listings whose price sync is turned on.",
            "default": false
          },
          "listingRefs": {
            "title": "Listings (listingId,pms)",
            "type": "array",
            "description": "Dynamic prices and neighborhood data modes. One listing per line as its PriceLabs listing ID and PMS name separated by a comma, exactly as the account listings mode returns them in its query column. Each listing must already be in your PriceLabs account.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Prices from",
            "type": "string",
            "description": "Optional, dynamic prices mode. yyyy-mm-dd start date; used only if it falls inside the listing's pricing calendar, else the calendar start is used."
          },
          "dateTo": {
            "title": "Prices to",
            "type": "string",
            "description": "Optional, dynamic prices mode. yyyy-mm-dd end date; used only if it falls inside the listing's pricing calendar, else the calendar end is used."
          },
          "includeReason": {
            "title": "Include pricing reasons",
            "type": "boolean",
            "description": "Optional, dynamic prices mode. Add the per date pricing reason breakdown (listing info, market factors, customizations, thresholds) to each row's values.",
            "default": false
          },
          "useDefaultData": {
            "title": "Use default data source",
            "type": "boolean",
            "description": "Optional, neighborhood data mode. Use the default nearby listings source instead of the comp set selected in the PriceLabs interface.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. A revenue estimate is one row (twelve in the one row per month layout); a listing's price calendar is about one row per day for the year ahead.",
            "default": 500
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Pacing for calls to PriceLabs. Customer API keys allow 60 a minute and every key 1,000 an hour; throttled calls are retried.",
            "default": 30
          },
          "apiKey": {
            "title": "PriceLabs API key",
            "type": "string",
            "description": "Your PriceLabs Revenue Estimator API key for the revenue estimate, or your Customer API key (Account Settings, API Details) for the listing modes. Stored as a secret, sent only in the X-API-Key header to api.pricelabs.co and never logged. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}