{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Availability Calendar Scraper",
    "description": "Extract day-by-day Airbnb calendar availability, nightly rates, total prices, min nights, check-in/out rules, and Instant Book status in any currency (EUR, USD, GBP). Fast, browserless API extraction with transparent $2.00 / 1,000 days pricing — $0.00 for failed lookups.",
    "version": "1.0",
    "x-build-id": "l0z4XRfek72n0vsR8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vedarai~airbnb-availability-calendar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vedarai-airbnb-availability-calendar-scraper",
        "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/vedarai~airbnb-availability-calendar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vedarai-airbnb-availability-calendar-scraper",
        "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/vedarai~airbnb-availability-calendar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vedarai-airbnb-availability-calendar-scraper",
        "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": {
          "listingUrls": {
            "title": "Airbnb Listing URLs or Room IDs (Bulk List)",
            "type": "array",
            "description": "Paste one or more Airbnb listing URLs (e.g. https://www.airbnb.com/rooms/860663943931949474) or numeric Room IDs. Duplicates are automatically removed.",
            "items": {
              "type": "string"
            }
          },
          "listingUrl": {
            "title": "Single Listing URL or ID (Drop-in Compatibility)",
            "type": "string",
            "description": "Optional single Airbnb listing URL or ID for 1-to-1 backward compatibility with agenscrape/airbnb-availability-calendar."
          },
          "currency": {
            "title": "Currency (True Local Currency Support)",
            "enum": [
              "EUR",
              "USD",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "PLN",
              "SEK",
              "NOK",
              "DKK",
              "CZK",
              "JPY",
              "AED",
              "BRL",
              "MXN"
            ],
            "type": "string",
            "description": "Currency code for nightly rates, taxes, and total price (e.g. EUR, USD, GBP, CAD, AUD, CHF, PLN, SEK, NOK, DKK, JPY).",
            "default": "EUR"
          },
          "startDate": {
            "title": "Start Date (YYYY-MM-DD or Rolling 'today+N')",
            "type": "string",
            "description": "Start date in YYYY-MM-DD format OR rolling expression such as 'today', 'today+1', 'today+7', 'today+30d'. Defaults to 'today'.",
            "default": "today"
          },
          "endDate": {
            "title": "End Date (YYYY-MM-DD or Rolling 'today+N' — Optional)",
            "type": "string",
            "description": "Optional end date in YYYY-MM-DD format or rolling expression (e.g. 'today+30', 'today+90'). If omitted, `daysCount` is used instead."
          },
          "daysCount": {
            "title": "Number of Days to Check (Rolling Window)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Number of consecutive calendar days to check starting from Start Date (used when End Date is not specified).",
            "default": 30
          },
          "enrichWithPricing": {
            "title": "Include Nightly Rates, Taxes & Total Price",
            "type": "boolean",
            "description": "Fetch exact nightly rates, taxes, total price, guest capacity, and instant-book status for available check-in dates in your selected currency — with NO extra surcharge event!",
            "default": true
          },
          "adults": {
            "title": "Number of Adult Guests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Number of adult guests used when calculating nightly rates and taxes.",
            "default": 1
          },
          "maxRecords": {
            "title": "Max Calendar Records (Spend Cap Guardrail)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on the total number of calendar day records returned and billed in a single run ($2.00 / 1,000 records). Protects your balance.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy configuration for high-volume runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}