{
  "openapi": "3.0.1",
  "info": {
    "title": "Chilepropiedades Scraper — Chile Real Estate Listings",
    "description": "Scrape Chilepropiedades.cl property listings for sale and rent across Chile: price in UF/CLP/USD plus normalized CLP, m², bedrooms, comuna, GPS, broker and photos. Filter by type, region, comuna, price and rooms. From US$2 per 1,000 properties.",
    "version": "0.1",
    "x-build-id": "6zeJ41PlE7ttjcMf7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~chilepropiedades-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-chilepropiedades-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/fabrikit~chilepropiedades-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-chilepropiedades-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/fabrikit~chilepropiedades-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-chilepropiedades-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent",
              "rent_daily"
            ],
            "type": "string",
            "description": "`sale` = Venta, `rent` = Arriendo mensual (monthly rent), `rent_daily` = Arriendo diario (holiday / short-term rentals).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartment",
              "house",
              "studio",
              "loft",
              "office",
              "retail",
              "warehouse",
              "industrial_shed",
              "parking",
              "plot",
              "lot",
              "land",
              "agricultural_land",
              "forest_land",
              "industrial_land",
              "hotel",
              "tourism_business",
              "cemetery_plot"
            ],
            "type": "string",
            "description": "Chilepropiedades.cl property type (one per run).",
            "default": "apartment"
          },
          "region": {
            "title": "Region",
            "enum": [
              "rm",
              "all",
              "valparaiso",
              "biobio",
              "coquimbo",
              "ohiggins",
              "maule",
              "nuble",
              "araucania",
              "los_rios",
              "los_lagos",
              "antofagasta",
              "atacama",
              "tarapaca",
              "arica",
              "aysen",
              "magallanes"
            ],
            "type": "string",
            "description": "Chilean region. `All of Chile` runs the search region by region, largest markets first, until Max properties is reached.",
            "default": "rm"
          },
          "comuna": {
            "title": "Comuna",
            "type": "string",
            "description": "Optional comuna, e.g. `Ñuñoa`, `Las Condes`, `Viña del Mar`, `Puerto Varas` (accents optional). Resolved with the site's own location search and checked against the selected region; the run fails with the closest matches if it can't be resolved — it never silently searches somewhere else.",
            "default": ""
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in the currency below. 0 = no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in the currency below. 0 = no maximum.",
            "default": 0
          },
          "priceCurrency": {
            "title": "Price filter currency",
            "enum": [
              "UF",
              "CLP",
              "USD"
            ],
            "type": "string",
            "description": "Currency of the price filter. UF (Unidad de Fomento) is the usual unit for sales, CLP for rentals. The site converts, so a UF range also matches listings published in CLP or USD.",
            "default": "UF"
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "At least this many bedrooms (0–6). 0 = any.",
            "default": 0
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "At least this many bathrooms (0–6). 0 = any.",
            "default": 0
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "oldest",
              "price_asc",
              "price_desc",
              "area_asc",
              "area_desc"
            ],
            "type": "string",
            "description": "`newest` is the right choice for monitoring pipelines. `relevance` is the site default (featured listings first).",
            "default": "newest"
          },
          "startUrls": {
            "title": "Direct URLs (optional)",
            "type": "array",
            "description": "Chilepropiedades.cl search URLs copied from your browser (e.g. `https://chilepropiedades.cl/propiedades/venta/casa/vina-del-mar/0?ordenar=2`) and/or single listing URLs (`https://chilepropiedades.cl/ver-publicacion/...`). When set, the filters above are ignored.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many properties. The site serves 10 listings per search page.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Fetch detail pages (add-on)",
            "type": "boolean",
            "description": "Open each listing's page (1 extra request per property) to add: GPS coordinates, street address, region, full description (phones and e-mails removed), full photo gallery, amenities, useful/built m², year built, floor, common expenses, furnished flag and the publisher type and brokerage name. Charged as a `property-details` event (US$1 per 1,000).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Chilepropiedades.cl answers plain requests from Apify's servers, so no proxy is needed. If the site ever returns 403, the Actor switches to Apify RESIDENTIAL proxies in Chile automatically.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}