{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Availability Calendar",
    "description": "Airbnb Availability Calendar SD - Airbnb Availability Calendar is a travel data tool that extracts the day-by-day calendar of Airbnb listings: available and booked days, minimum and maximum nights, check-in / check-out days, occupancy and optional prices, fees and taxes for your dates.",
    "version": "1.0",
    "x-build-id": "qCGArk8xKN2c9bMDw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~airbnb-availability-calendar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-airbnb-availability-calendar",
        "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/neuro-scraper~airbnb-availability-calendar/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-airbnb-availability-calendar",
        "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/neuro-scraper~airbnb-availability-calendar/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-airbnb-availability-calendar",
        "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": {
          "startUrls": {
            "title": "Airbnb listing URLs",
            "type": "array",
            "description": "Room pages, e.g. https://www.airbnb.com/rooms/12537150 (any airbnb.<country> domain). One calendar per listing.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Listing ids",
            "type": "array",
            "description": "Airbnb listing ids (the number in /rooms/<id>), e.g. 12537150. Same as the URLs above.",
            "items": {
              "type": "string"
            }
          },
          "calendarMonths": {
            "title": "Months to fetch",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "How many calendar months per listing, starting with the start month. Airbnb opens about 12 months ahead; up to 12 months come per request, more months take a second request.",
            "default": 12
          },
          "startMonth": {
            "title": "Start month (1-12)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "First month of the calendar. Empty = the month of the start date (or this month)."
          },
          "startYear": {
            "title": "Start year",
            "minimum": 2020,
            "maximum": 2100,
            "type": "integer",
            "description": "Year of the start month, e.g. 2026. Empty = this year."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Only days from this date on (YYYY-MM-DD). Also sets the start month when that is empty."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Only days up to this date (YYYY-MM-DD)."
          },
          "includeDays": {
            "title": "One row per day",
            "type": "boolean",
            "description": "Adds one row per calendar day (date, available, check-in / check-out allowed, min / max nights, price). Off = only the listing summary rows.",
            "default": true
          },
          "includeListingSummary": {
            "title": "Listing summary row",
            "type": "boolean",
            "description": "One row per listing first: title, ratings, capacity, host, occupancy, available / booked days, availability by month, the whole calendar as an array and the price breakdown.",
            "default": true
          },
          "onlyAvailableDays": {
            "title": "Only available days",
            "type": "boolean",
            "description": "Day rows only for days that can be booked.",
            "default": false
          },
          "enrichWithPricing": {
            "title": "Add prices",
            "type": "boolean",
            "description": "Gets the price for a stay (your check-in / check-out, or the first free check-in day plus its minimum stay): price shown, strike-through price, cleaning fee, service fee, taxes, total, cancellation options and the nightly rate. One extra request per priced stay.",
            "default": false
          },
          "checkIn": {
            "title": "Check-in for the price",
            "type": "string",
            "description": "Stay to price (YYYY-MM-DD). Empty = the first free check-in day."
          },
          "checkOut": {
            "title": "Check-out for the price",
            "type": "string",
            "description": "End of the stay to price (YYYY-MM-DD). Empty = check-in + the minimum stay."
          },
          "pricingSamples": {
            "title": "More priced check-in days",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Also price this many further free check-in days (minimum stay each) and write their nightly rate into the day rows. One request per day.",
            "default": 0
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Guests for the price.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Children for the price.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Infants for the price.",
            "default": 0
          },
          "pets": {
            "title": "Pets",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Pets for the price.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency of every price, e.g. USD, EUR, GBP.",
            "default": "USD"
          },
          "locale": {
            "title": "Language",
            "type": "string",
            "description": "Language of texts and labels, e.g. en, de, fr.",
            "default": "en"
          },
          "maxListings": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings (0 = all given).",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows in total (a 12-month calendar is about 366 day rows + 1 summary row per listing).",
            "default": 1000
          },
          "locationQueries": {
            "title": "Places to search (instead of listing links)",
            "type": "array",
            "description": "Places such as 'Seminyak, Bali, Indonesia' or 'Lisbon, Portugal', one per line. The Actor searches Airbnb for each place (following the search's own page cursors) and reads the calendar of up to Max listings (default 20) listings per place.",
            "items": {
              "type": "string"
            }
          },
          "searchUrl": {
            "title": "Airbnb search URL",
            "type": "string",
            "description": "A search page copied from your browser (https://www.airbnb.com/s/...), with all its filters (price, type, amenities, dates). The listings of that search are read like listing links, up to Max listings (default 20)."
          },
          "boundingBox": {
            "title": "Map area",
            "type": "object",
            "description": "A map rectangle {\"neLat\": 38.75, \"neLng\": -9.10, \"swLat\": 38.70, \"swLng\": -9.18}: the listings Airbnb shows in that area are read, up to Max listings (default 20)."
          },
          "onlyAvailableListings": {
            "title": "Only listings that are available",
            "type": "boolean",
            "description": "Skip listings with no free day in the scanned months - or, with check-in / check-out dates, listings that are not free for every night of that stay. Skipped listings give no rows and cost nothing.",
            "default": false
          },
          "requestsPerSecond": {
            "title": "Requests per second",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Pace of the requests (1-5 per second). 0 = the default pace of about 0.8 requests per second, which Airbnb answers reliably.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies (the default) are recommended. The Actor switches to a new IP when a request is blocked.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}