{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Scraper",
    "description": "Crawl the Airbnb site and extract data about rentals. Scrape rental details for any location with many filters. Download and use the data in whatever way you want.",
    "version": "0.0",
    "x-build-id": "DnuCapDpKR1C5hden"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/onidivo~airbnb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-onidivo-airbnb-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/onidivo~airbnb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-onidivo-airbnb-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/onidivo~airbnb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-onidivo-airbnb-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",
        "required": [
          "currency",
          "proxyConfiguration"
        ],
        "properties": {
          "location": {
            "title": "Destination",
            "type": "string",
            "description": "The location to search.",
            "default": "Malaga, Spain"
          },
          "startUrls": {
            "title": "Airbnb room URLs",
            "type": "array",
            "description": "A list of room URLs (e.g., https://www.airbnb.com/rooms/31671872).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Number of homes",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum number of homes to scrape.",
            "default": 100
          },
          "minPrice": {
            "title": "Minimum price",
            "type": "integer",
            "description": "Filter listings based on a minimum price per night."
          },
          "maxPrice": {
            "title": "Maximum price",
            "type": "integer",
            "description": "Filter listings based on a maximum price per night."
          },
          "checkIn": {
            "title": "Check-in date (YYYY-MM-DD)",
            "type": "string",
            "description": ""
          },
          "checkOut": {
            "title": "Check-out date (YYYY-MM-DD)",
            "type": "string",
            "description": ""
          },
          "extraData": {
            "title": "Get more data",
            "type": "boolean",
            "description": "Get more data from the details page.",
            "default": true
          },
          "maxReviews": {
            "title": "Number of reviews",
            "type": "integer",
            "description": "The maximum number of reviews per home to scrape."
          },
          "calendarMonths": {
            "title": "Availability for next months",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Scrape the host's calendar to monitor the listing's availability for future months. E.g. set 12 to get data for the whole year, set 0 to skip the calendar altogether.",
            "default": 0
          },
          "addMoreHostInfo": {
            "title": "Include host info",
            "type": "boolean",
            "description": "Scrape primary host info such as host URL and number of listings. This works in sync with the <i> Keep the dataset Excel friendly </i> toggle &#8593;",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "ADP",
              "AED",
              "AFA",
              "AFN",
              "ALK",
              "ALL",
              "AMD",
              "ANG",
              "AOA",
              "AOK",
              "AON",
              "AOR",
              "ARA",
              "ARP",
              "ARS",
              "ARY",
              "ATS",
              "AUD",
              "AWG",
              "AYM",
              "AZM",
              "AZN",
              "BAD",
              "BAM",
              "BBD",
              "BDT",
              "BEC",
              "BEF",
              "BEL",
              "BGJ",
              "BGK",
              "BGL",
              "BGN",
              "BHD",
              "BIF",
              "BMD",
              "BND",
              "BOB",
              "BOP",
              "BOV",
              "BRB",
              "BRC",
              "BRE",
              "BRL",
              "BRN",
              "BRR",
              "BSD",
              "BTN",
              "BUK",
              "BWP",
              "BYB",
              "BYN",
              "BYR",
              "BZD",
              "CAD",
              "CDF",
              "CHC",
              "CHE",
              "CHF",
              "CHW",
              "CLF",
              "CLP",
              "CNX",
              "CNY",
              "COP",
              "COU",
              "CRC",
              "CSD",
              "CSJ",
              "CSK",
              "CUC",
              "CUP",
              "CVE",
              "CYP",
              "CZK",
              "DDM",
              "DEM",
              "DJF",
              "DKK",
              "DOP",
              "DZD",
              "ECS",
              "ECV",
              "EEK",
              "EGP",
              "ERN",
              "ESA",
              "ESB",
              "ESP",
              "ETB",
              "EUR",
              "FIM",
              "FJD",
              "FKP",
              "FRF",
              "GBP",
              "GEK",
              "GEL",
              "GHC",
              "GHP",
              "GHS",
              "GIP",
              "GMD",
              "GNE",
              "GNF",
              "GNS",
              "GQE",
              "GRD",
              "GTQ",
              "GWE",
              "GWP",
              "GYD",
              "HKD",
              "HNL",
              "HRD",
              "HRK",
              "HTG",
              "HUF",
              "IDR",
              "IEP",
              "ILP",
              "ILR",
              "ILS",
              "INR",
              "IQD",
              "IRR",
              "ISJ",
              "ISK",
              "ITL",
              "JMD",
              "JOD",
              "JPY",
              "KES",
              "KGS",
              "KHR",
              "KMF",
              "KPW",
              "KRW",
              "KWD",
              "KYD",
              "KZT",
              "LAJ",
              "LAK",
              "LBP",
              "LKR",
              "LRD",
              "LSL",
              "LSM",
              "LTL",
              "LTT",
              "LUC",
              "LUF",
              "LUL",
              "LVL",
              "LVR",
              "LYD",
              "MAD",
              "MDL",
              "MGA",
              "MGF",
              "MKD",
              "MLF",
              "MMK",
              "MNT",
              "MOP",
              "MRO",
              "MTL",
              "MTP",
              "MUR",
              "MVQ",
              "MVR",
              "MWK",
              "MXN",
              "MXP",
              "MXV",
              "MYR",
              "MZE",
              "MZM",
              "MZN",
              "NAD",
              "NGN",
              "NIC",
              "NIO",
              "NLG",
              "NOK",
              "NPR",
              "NZD",
              "OMR",
              "PAB",
              "PEH",
              "PEI",
              "PEN",
              "PES",
              "PGK",
              "PHP",
              "PKR",
              "PLN",
              "PLZ",
              "PTE",
              "PYG",
              "QAR",
              "RHD",
              "ROK",
              "ROL",
              "RON",
              "RSD",
              "RUB",
              "RUR",
              "RWF",
              "SAR",
              "SBD",
              "SCR",
              "SDD",
              "SDG",
              "SDP",
              "SEK",
              "SGD",
              "SHP",
              "SIT",
              "SKK",
              "SLL",
              "SOS",
              "SRD",
              "SRG",
              "SSP",
              "STD",
              "SUR",
              "SVC",
              "SYP",
              "SZL",
              "THB",
              "TJR",
              "TJS",
              "TMM",
              "TMT",
              "TND",
              "TOP",
              "TPE",
              "TRL",
              "TRY",
              "TTD",
              "TWD",
              "TZS",
              "UAH",
              "UAK",
              "UGS",
              "UGW",
              "UGX",
              "USD",
              "USN",
              "USS",
              "UYI",
              "UYN",
              "UYP",
              "UYU",
              "UZS",
              "VEB",
              "VEF",
              "VNC",
              "VND",
              "VUV",
              "WST",
              "XAF",
              "XAG",
              "XAU",
              "XBA",
              "XBB",
              "XBC",
              "XBD",
              "XCD",
              "XDR",
              "XEU",
              "XFO",
              "XFU",
              "XOF",
              "XPD",
              "XPF",
              "XPT",
              "XRE",
              "XSU",
              "XTS",
              "XUA",
              "XXX",
              "YDD",
              "YER",
              "YUD",
              "YUM",
              "YUN",
              "ZAL",
              "ZAR",
              "ZMK",
              "ZMW",
              "ZRN",
              "ZRZ",
              "ZWC",
              "ZWD",
              "ZWL",
              "ZWN",
              "ZWR"
            ],
            "type": "string",
            "description": "Currency for displayed prices.",
            "default": "USD"
          },
          "limitPoints": {
            "title": "Limit Geo points",
            "minimum": 1,
            "type": "integer",
            "description": "The maximum number of geo points of location (got using nominatim API).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Use Apify Proxy or your custom Proxy.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Defines how many pages can be processed by the scraper in parallel. The scraper automatically increases and decreases concurrency based on available system resources. Use this option to set a hard limit.",
            "default": 50
          },
          "timeoutMs": {
            "title": "Timeout milliseconds",
            "minimum": 60000,
            "type": "integer",
            "description": "Override the timeout for request fetching.",
            "default": 60000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}