{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Listings Scraper: Prices, Ratings, Hosts",
    "description": "Extract Airbnb listings for short-term rental investors, property managers and revenue analysts: stay price for your dates, rating, review count, property type, location and photos. Add descriptions, amenities and hosts, and tile the map past the search cap. By MrBridge (mr-bridge.com)",
    "version": "0.1",
    "x-build-id": "XlWU2xjY90jDgMciV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mrbridge~airbnb-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mrbridge-airbnb-listings-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/mrbridge~airbnb-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mrbridge-airbnb-listings-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/mrbridge~airbnb-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mrbridge-airbnb-listings-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": {
          "mode": {
            "title": "Search mode",
            "enum": [
              "search",
              "searchUrls",
              "listingUrls"
            ],
            "type": "string",
            "description": "search: one search per place below. searchUrls: one search per pasted URL (the filters below are then ignored, the URL carries them). listingUrls: read the listing pages you paste (only the dates and adults below apply).",
            "default": "search"
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Mode search. 1 to 20 places, for example Paris or New York, NY, United States. One search each.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Mode searchUrls. 1 to 20 URLs of the form https://www.airbnb.com/s/<place>/homes?... Their parameters are kept, currency is added when missing and the language is set to English.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Mode listingUrls. 1 to 1000 URLs of the form https://www.airbnb.com/rooms/<id>. A query string is ignored: the dates and adults below are used. Listing pages carry no price. Rows stop at Maximum listings (default 100).",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Read the listing page of each row: description, amenities, rating by category, coordinates, host (name, rating, years hosting, response) and co-hosts. Billed as Listing details on top of Listing for each row that receives them. The description is plain text. Texts, including phone numbers and e-mails written by hosts, come out as published. Host photos are never returned. In search mode this can add up to one request per row, so long runs take longer.",
            "default": false
          },
          "checkIn": {
            "title": "Check-in",
            "type": "string",
            "description": "Mode search. Date YYYY-MM-DD, today (UTC) or later. Give it with the check-out date."
          },
          "checkOut": {
            "title": "Check-out",
            "type": "string",
            "description": "Mode search. Date YYYY-MM-DD, after the check-in date, at most 90 nights."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Mode search. From 1 to 16.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 16,
            "type": "integer",
            "description": "Mode search. From 0 to 16.",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 16,
            "type": "integer",
            "description": "Mode search. From 0 to 16.",
            "default": 0
          },
          "pets": {
            "title": "Pets",
            "minimum": 0,
            "maximum": 16,
            "type": "integer",
            "description": "Mode search. From 0 to 16.",
            "default": 0
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Mode search. Lowest price per night, in the currency below. Not above the maximum price."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Mode search. Highest price per night, in the currency below."
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD"
            ],
            "type": "string",
            "description": "Currency of the prices.",
            "default": "USD"
          },
          "splitMap": {
            "title": "Split map",
            "type": "boolean",
            "description": "Modes search and searchUrls. Checks page 1 of each search: when it has 15 pages, its map area is cut into 4 quarters, each checked the same way, up to 4 cuts. Each tile is then searched like a search. Listings found in several tiles are returned once. Checking costs one extra request per tile.",
            "default": false
          },
          "maxTiles": {
            "title": "Maximum map tiles",
            "minimum": 1,
            "maximum": 256,
            "type": "integer",
            "description": "Split map on: tiles searched at most, all searches together, from 1 to 256. The request cap of the run becomes tiles x 16, plus one request per possible cut, plus 40 for second checks and spare. Empty pages read a second time come on top, at most one request in ten. About 70 minutes for 64 tiles, about 4 hours 30 minutes for 256 (raise the run timeout). A full tile that cannot be cut within this limit is searched whole. Searches beyond the limit are skipped entirely and counted in tilesDropped.",
            "default": 64
          },
          "maxPagesPerSearch": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Pages read per search, from 1 to 15 (about 18 listings a page).",
            "default": 15
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on the listing rows returned and billed, from 1 to 10000, all searches together. The run stops once that many rows are delivered.",
            "default": 100
          },
          "capturePlan": {
            "title": "Capture plan",
            "type": "string",
            "description": "Maintainer only. Name of a closed diagnostic capture campaign (four names in the code). Requires Internal capture mode. The allowlist lives in the code: any other value is rejected without issuing a request."
          },
          "internalCaptureMode": {
            "title": "Internal capture mode",
            "type": "boolean",
            "description": "Maintainer only. When true, captures raw responses to a named key-value store for building test fixtures. Not for normal use.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}