{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Competitor Analysis: Comps, Price & Occupancy",
    "description": "One Airbnb listing vs its 20 most comparable listings nearby: price percentile, occupancy range, ratings, amenity gaps and recommendations, each number with its n, plus a paste-ready report.",
    "version": "0.1",
    "x-build-id": "rZKaJLVF0MjjtG6v3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thelastscraper~airbnb-competitor-analysis/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thelastscraper-airbnb-competitor-analysis",
        "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/thelastscraper~airbnb-competitor-analysis/runs": {
      "post": {
        "operationId": "runs-sync-thelastscraper-airbnb-competitor-analysis",
        "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/thelastscraper~airbnb-competitor-analysis/run-sync": {
      "post": {
        "operationId": "run-sync-thelastscraper-airbnb-competitor-analysis",
        "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": [
          "listing"
        ],
        "properties": {
          "listing": {
            "title": "Your Airbnb listing",
            "type": "string",
            "description": "Required. ONE listing URL (https://www.airbnb.com/rooms/<id>, any Airbnb domain, or a share link) or its ID as text (\"1290695487984975140\"; a JSON number loses digits). Not a profile: put that in hostProfileUrl. Cost: one analysis per run (US$0.38 Free plan), whatever radius the comps need, plus at most 8 weeks scanned ($0.0125 each): at most $0.48. Nothing charged with fewer than 5 comps."
          },
          "hostProfileUrl": {
            "title": "Another profile of yours (optional)",
            "type": "string",
            "description": "Optional. An Airbnb profile link exactly as Airbnb shows it (/users/show/<id> or /users/profile/<id>; they use different IDs, never rewrite one as the other). The listing's own host is always read, so this is only for a second account or a co-host: its listings are left out of the comps too."
          },
          "excludeListings": {
            "title": "Your other listings to leave out (optional)",
            "type": "array",
            "description": "Optional. Your listings on other accounts or that you co-host: listing URLs or IDs as text. They are never compared with your listing.",
            "items": {
              "type": "string"
            }
          },
          "dates": {
            "title": "Dates",
            "enum": [
              "auto",
              "explicit"
            ],
            "type": "string",
            "description": "auto (default): the stay is picked from your listing's calendar, the 5-night stay nearest to today + 30 days that it can sell (check-in within 90 days, no night on 20 Dec-3 Jan; 4 or 3 nights if no 5-night stay is free, never below your minimum stay), so your listing has a price. explicit: checkIn and checkOut used as given (a checkIn alone also means explicit). OUTPUT.dates says which dates and why.",
            "default": "auto"
          },
          "checkIn": {
            "title": "Check-in date (explicit dates)",
            "type": "string",
            "description": "YYYY-MM-DD, e.g. 2027-01-12. Only with explicit dates; leave empty for auto."
          },
          "checkOut": {
            "title": "Check-out date (explicit dates)",
            "type": "string",
            "description": "YYYY-MM-DD, the day after the last night. Empty with a check-in = 5 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Default 2, 1-16. Every price (yours and the comps') is quoted for this party.",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Default USD. ISO 4217 code for every amount, e.g. EUR, GBP, AED.",
            "default": "USD"
          },
          "weekScan": {
            "title": "Scan other weeks",
            "enum": [
              "if_needed",
              "off"
            ],
            "type": "string",
            "description": "if_needed (default): when your listing has no price on the dates or fewer than 5 comps do, the same run quotes up to 8 other weeks (same weekday and nights) where your calendar and at least 5 comps' calendars are free, charged $0.0125 per week answered (Free plan; at most $0.10). off: never runs; OUTPUT.missing offers it with its cost.",
            "default": "if_needed"
          },
          "actorVariant": {
            "title": "Actor variant",
            "type": "string",
            "description": "Internal: which Store Actor this is (do not change).",
            "default": "competitor-analysis"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}